@font-face {
  font-family: "SF Pro";
  src: url("/assets/fonts/SF-Pro.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src: url("/assets/fonts/SF-Pro-Display-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src: url("/assets/fonts/SF-Pro-Display-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src: url("/assets/fonts/SF-Pro-Display-Heavy.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tint: #70bec7;
  --red: #ff5950;
  --red-dark: #a33934;
  --text: #ffffff;
  --background: #494949;
  --background-inverted: #7f7f7f;
  --background-medium: #707070;
  --background-inverted-medium: #a3a3a3;
  --surface: #565656;
  --surface-strong: #626262;
  --ink-on-tint: #16383d;
  --line: rgba(255, 255, 255, 0.16);
  --card-radius: 34px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  content: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--tint);
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(73, 73, 73, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a,
.footer-column a {
  font-size: 15px;
  font-weight: 500;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 156px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.language-switcher button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-switcher button:active,
.button:active {
  transform: scale(0.96);
}

.language-switcher button.is-active {
  background: var(--tint);
  color: var(--ink-on-tint);
}

.hero {
  padding: 70px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(112, 190, 199, 0.45);
  border-radius: 999px;
  background: rgba(112, 190, 199, 0.10);
  color: var(--tint);
  font-size: 14px;
  font-weight: 600;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-on-tint);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, color 170ms ease;
}

.button:hover {
  background: #86d2da;
  color: var(--ink-on-tint);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(112, 190, 199, 0.65);
  background: rgba(112, 190, 199, 0.12);
  color: var(--text);
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-top: 6px;
}

.meta-pill {
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.meta-label {
  display: block;
  color: var(--background-inverted-medium);
  font-size: 13px;
  font-weight: 400;
}

.meta-value {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.app-shot-stage {
  position: relative;
  min-height: 650px;
  isolation: isolate;
}

.app-shot-stage::before {
  content: "";
  position: absolute;
  inset: 54px 42px 30px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  z-index: -1;
}

.shot-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1320 / 2868;
  border: 8px solid #3f3f3f;
  border-radius: 42px;
  background: #3f3f3f;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot-card-main {
  top: 0;
  left: 50%;
  width: min(278px, 48%);
  transform: translateX(-50%);
  z-index: 3;
}

.shot-card-left,
.shot-card-right {
  top: 106px;
  width: min(226px, 40%);
  opacity: 0.74;
  z-index: 2;
}

.shot-card-left {
  left: 4px;
  transform: rotate(-5deg);
}

.shot-card-right {
  right: 4px;
  transform: rotate(5deg);
}

.device-stage {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.device-stage::before {
  content: "";
  position: absolute;
  inset: 28px 8px 18px 38px;
  border: 1px solid rgba(112, 190, 199, 0.32);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(127, 127, 127, 0.20), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  z-index: -1;
}

.desktop-mock,
.phone-mock {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #4f4f4f;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.30);
}

.desktop-mock {
  right: 0;
  top: 64px;
  width: min(520px, 88%);
  min-height: 328px;
  border-radius: 18px;
}

.desktop-topbar,
.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
}

.desktop-topbar {
  min-height: 42px;
  padding: 0 14px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: var(--red);
}

.window-dots span:nth-child(2) {
  background: #f0bc4d;
}

.window-dots span:nth-child(3) {
  background: var(--tint);
}

.mock-title,
.phone-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.mock-toolbar {
  display: flex;
  gap: 8px;
}

.tool-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(112, 190, 199, 0.18);
}

.desktop-content {
  display: grid;
  grid-template-columns: 1fr 136px;
  gap: 14px;
  padding: 16px;
}

.panel-layout {
  position: relative;
  min-height: 242px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #5e5e5e;
  background-size: 28px 28px;
}

.cut-piece {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 5px;
  background: rgba(112, 190, 199, 0.58);
}

.cut-piece.one {
  left: 18px;
  top: 18px;
  width: 154px;
  height: 68px;
}

.cut-piece.two {
  left: 188px;
  top: 18px;
  width: 74px;
  height: 148px;
  background: rgba(255, 89, 80, 0.48);
}

.cut-piece.three {
  left: 18px;
  top: 102px;
  width: 118px;
  height: 108px;
}

.cut-piece.four {
  left: 152px;
  top: 184px;
  width: 146px;
  height: 42px;
  background: rgba(255, 255, 255, 0.20);
}

.mock-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.side-stat {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.side-stat strong {
  display: block;
  color: var(--tint);
  font-size: 22px;
  line-height: 1;
}

.side-stat span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 400;
}

.phone-mock {
  left: 0;
  bottom: 0;
  width: 218px;
  min-height: 414px;
  border: 7px solid #383838;
  border-radius: 32px;
  background: #4a4a4a;
}

.phone-topbar {
  min-height: 54px;
  padding: 0 14px;
}

.phone-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.phone-content {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.phone-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-on-tint);
  font-size: 13px;
  font-weight: 600;
}

.cut-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.cut-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 400;
}

.cut-row strong {
  font-size: 14px;
}

.note-pad {
  min-height: 94px;
  padding: 12px;
  border-radius: 8px;
  background: #686868;
}

.note-line {
  height: 2px;
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.40);
}

.note-line.short {
  width: 62%;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.045);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-header p {
  color: rgba(255, 255, 255, 0.80);
  font-size: 17px;
  font-weight: 400;
}

.feature-grid,
.support-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.support-card,
.legal-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(127, 127, 127, 0.58);
}

.feature-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: rgba(112, 190, 199, 0.16);
  color: var(--tint);
}

.feature-icon svg,
.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.feature-card p,
.support-card p,
.legal-card p,
.page-copy p,
.policy-content p,
.policy-content li {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}

.extension-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 89, 80, 0.15);
  color: #ffd9d6;
  font-size: 13px;
  font-weight: 600;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(127, 127, 127, 0.52);
}

.workflow-step span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink-on-tint);
  font-size: 14px;
  font-weight: 700;
}

.workflow-step h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.workflow-step p {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.page-hero {
  padding: 66px 0 44px;
  text-align: center;
}

.page-copy {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.page-copy h1 {
  text-align: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 26px;
  align-items: start;
}

.contact-block,
.form-panel,
.policy-content {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(127, 127, 127, 0.58);
}

.contact-block {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-row h2,
.legal-card h2,
.section-header.small h2 {
  text-align: left;
}

[dir="rtl"] .contact-row h2,
[dir="rtl"] .legal-card h2,
[dir="rtl"] .section-header.small h2 {
  text-align: right;
}

.contact-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(112, 190, 199, 0.16);
  color: var(--tint);
}

.form-panel {
  padding: 28px;
}

.section-header.small {
  justify-items: start;
  margin-bottom: 6px;
  text-align: left;
}

[dir="rtl"] .section-header.small {
  justify-items: end;
  text-align: right;
}

.support-form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--background-medium);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.input {
  min-height: 46px;
  padding: 0 16px;
}

.textarea {
  min-height: 150px;
  padding: 16px;
  border-radius: 28px;
  resize: vertical;
  line-height: 1.5;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--background-inverted-medium);
  opacity: 1;
}

.input:focus,
.textarea:focus {
  border-color: var(--tint);
  background: #666666;
}

select.input {
  appearance: none;
  cursor: pointer;
}

.setup-panel,
.status-message,
.empty-state {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
}

.setup-panel,
.status-message {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid rgba(112, 190, 199, 0.36);
  border-radius: 28px;
  background: rgba(112, 190, 199, 0.10);
}

.setup-panel h2,
.status-message h2 {
  margin: 0 0 8px;
  font-size: 22px;
  text-align: left;
}

.status-message {
  margin-top: 18px;
  text-align: center;
}

.status-message[data-tone="success"] {
  border-color: rgba(112, 190, 199, 0.62);
  background: rgba(112, 190, 199, 0.18);
}

.status-message[data-tone="danger"] {
  border-color: rgba(255, 89, 80, 0.55);
  background: rgba(255, 89, 80, 0.14);
}

.auth-layout,
.account-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.auth-card,
.profile-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(127, 127, 127, 0.58);
}

.auth-card h2,
.profile-card h2,
.new-thread-form h2,
.thread-list-wrap h2,
.chat-header h2 {
  font-size: 24px;
  text-align: left;
}

[dir="rtl"] .auth-card h2,
[dir="rtl"] .profile-card h2,
[dir="rtl"] .new-thread-form h2,
[dir="rtl"] .thread-list-wrap h2,
[dir="rtl"] .chat-header h2 {
  text-align: right;
}

.compact-card,
.signed-out-card {
  grid-column: 1 / -1;
}

.signed-out-card {
  width: min(560px, 100%);
  margin: 0 auto;
  text-align: center;
}

.signed-out-card h2 {
  text-align: center;
}

.form-stack,
.new-thread-form {
  display: grid;
  gap: 14px;
}

.file-control {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--background-medium);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.file-control input {
  width: 100%;
  color: var(--text);
  font-family: inherit;
}

.avatar-editor {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.avatar-editor img {
  width: 132px;
  height: 132px;
  border: 6px solid var(--tint);
  border-radius: 50%;
  object-fit: cover;
  background: var(--background-medium);
}

.avatar-editor span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(112, 190, 199, 0.16);
  color: var(--tint);
  font-weight: 700;
  text-transform: capitalize;
}

.suggestions-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.suggestion-sidebar,
.chat-panel {
  display: grid;
  gap: 18px;
}

.new-thread-form,
.thread-list-wrap,
.chat-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(127, 127, 127, 0.58);
}

.thread-list {
  display: grid;
  gap: 10px;
}

.thread-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.thread-card[data-active="true"] {
  border-color: rgba(112, 190, 199, 0.74);
  background: rgba(112, 190, 199, 0.16);
}

.thread-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thread-card-top span,
.message header span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-on-tint);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.thread-card small,
.chat-header p,
.message header small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

.chat-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: start;
}

.status-select {
  display: grid;
  gap: 8px;
}

.status-select span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.message-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  min-height: 300px;
  overflow: auto;
  padding: 4px;
}

.message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.message.is-me {
  background: rgba(112, 190, 199, 0.13);
}

.message.is-moderator {
  border: 1px solid rgba(112, 190, 199, 0.42);
}

.message img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--background-medium);
}

.message header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.message p {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 400;
  white-space: pre-wrap;
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.form-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

.support-card {
  min-height: 180px;
}

.legal-card {
  min-height: 184px;
}

.policy-content {
  display: grid;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
}

.policy-section {
  display: grid;
  gap: 10px;
}

.policy-section h2 {
  font-size: 24px;
  text-align: left;
}

[dir="rtl"] .policy-section h2 {
  text-align: right;
}

.policy-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-inline-start: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(58, 58, 58, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
  gap: 28px;
  padding: 38px 0;
}

.footer-brand {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-brand p,
.copyright {
  color: rgba(255, 255, 255, 0.70);
  font-size: 14px;
  font-weight: 400;
}

.footer-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-column h2 {
  color: var(--background-inverted-medium);
  font-size: 14px;
  text-align: left;
  text-transform: uppercase;
}

[dir="rtl"] .footer-column h2 {
  text-align: right;
}

.footer-column a {
  width: fit-content;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .nav-shell {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .nav-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-grid,
  .contact-panel,
  .auth-layout,
  .account-shell,
  .suggestions-shell {
    grid-template-columns: 1fr;
  }

  .device-stage {
    min-height: 500px;
  }

  .app-shot-stage {
    min-height: 650px;
  }

  .feature-grid,
  .support-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand,
  .copyright {
    grid-column: 1 / -1;
  }

  .chat-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .nav-shell {
    display: grid;
    gap: 14px;
  }

  .nav-actions {
    width: 100%;
    align-items: stretch;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .language-switcher {
    width: 100%;
  }

  .hero,
  .page-hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 25px;
  }

  .lead,
  .section-header p {
    font-size: 16px;
  }

  .hero-meta,
  .field-grid,
  .workflow,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    display: none;
  }

  .app-shot-stage {
    min-height: 250px;
  }

  .app-shot-stage::before {
    inset: 28px 10px 18px;
    border-radius: 32px;
  }

  .shot-card {
    border-width: 5px;
    border-radius: 28px;
  }

  .shot-card-main {
    width: min(186px, 47%);
    height: 240px;
  }

  .shot-card-left,
  .shot-card-right {
    top: 44px;
    width: min(148px, 38%);
    height: 206px;
  }

  .device-stage {
    min-height: 570px;
  }

  .device-stage::before {
    inset: 16px 0 26px;
    border-radius: 24px;
  }

  .desktop-mock {
    top: 30px;
    width: 100%;
    min-height: 310px;
  }

  .desktop-content {
    grid-template-columns: 1fr;
  }

  .mock-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-layout {
    min-height: 184px;
  }

  .cut-piece.one {
    width: 114px;
    height: 54px;
  }

  .cut-piece.two {
    left: 146px;
    width: 58px;
    height: 112px;
  }

  .cut-piece.three {
    top: 88px;
    width: 94px;
    height: 78px;
  }

  .cut-piece.four {
    left: 118px;
    top: 136px;
    width: 116px;
    height: 34px;
  }

  .phone-mock {
    left: 50%;
    bottom: 0;
    width: min(218px, 72vw);
    transform: translateX(-50%);
  }

  .section {
    padding: 48px 0;
  }

  .hero-actions,
  .button-row,
  .message-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .message-form .button {
    width: 100%;
  }

  .policy-content {
    padding: 24px;
  }

  .auth-card,
  .profile-card,
  .new-thread-form,
  .thread-list-wrap,
  .chat-panel {
    padding: 22px;
    border-radius: 28px;
  }

  .message-list {
    max-height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
