:root {
  --ink: #17191d;
  --ink-2: #2a2d33;
  --muted: #60646c;
  --line: rgba(23, 25, 29, 0.08);
  --blue: #007aff;
  --blue-2: #2f95ff;
  --blue-3: #0058c8;
  --soft: #f3f7fc;
  --white: #ffffff;
  --display: "Sora", "Noto Sans SC", "PingFang SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", "Sora", sans-serif;
  --shell: 1184px;
  --pad: 40px;
  --header: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fs-xs: 0.875rem;
  --fs-sm: 0.875rem;
  --fs-nav: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.75rem, 3.2vw, 2.625rem);
  --fs-h1: clamp(2.25rem, 5vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background: #f7f9fc;
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  display: block;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(0, 122, 255, 0.16), transparent 60%),
    radial-gradient(700px 420px at 0% 20%, rgba(47, 149, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 45%, #eef3f9 100%);
}

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.shell.narrow {
  max-width: 820px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.15);
  background: rgba(251, 252, 254, 0.78);
  border-bottom: 1px solid transparent;
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.header-bar {
  position: relative;
  min-height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 12px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  z-index: 2;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.22);
}

.brand span {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.nav {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  grid-column: 2;
}

.nav-links > a {
  padding: 12px 0;
  border-radius: 0;
  color: #50545b;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.25s var(--ease);
}

.nav-links > a:hover {
  color: var(--ink);
  background: transparent;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.header-auth {
  grid-column: 4;
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 25, 29, 0.08);
  box-shadow: 0 1px 2px rgba(23, 25, 29, 0.03);
  z-index: 4;
}

.lang {
  position: relative;
}

.lang-flag {
  display: block;
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(23, 25, 29, 0.08);
}

.lang-flag-auto {
  display: grid;
  place-items: center;
  width: 22px;
  height: 15px;
  font-size: 0.875rem;
  line-height: 1;
  box-shadow: none;
}

.lang-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.72);
}

.lang-btn .lang-flag {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(23, 25, 29, 0.1);
}

.lang-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.22), 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 168px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(23, 25, 29, 0.06);
  box-shadow: 0 16px 40px rgba(23, 25, 29, 0.12);
  z-index: 20;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu button,
.lang-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
}

.lang-menu button:hover,
.lang-menu a:hover {
  background: rgba(243, 247, 252, 0.95);
}

.lang-menu button.is-on,
.lang-menu a.is-on {
  background: #eaf2ff;
  color: var(--ink);
}

.lang-menu button.is-on::after,
.lang-menu a.is-on::after {
  content: none;
}

.lang-menu .lang-auto {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  color: var(--muted);
}

.link-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.link-login:hover {
  color: var(--blue);
}

.btn-login,
.btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-login {
  background: transparent;
  color: var(--ink);
}

.btn-login:hover {
  color: var(--blue);
  background: rgba(0, 122, 255, 0.06);
}

.btn-signup {
  background: var(--blue);
  color: #fff;
}

.btn-signup:hover {
  transform: none;
  background: var(--blue-3);
  box-shadow: none;
}

.nav-help {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-help svg {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.85;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  gap: 8px;
  background: linear-gradient(165deg, var(--blue-2), var(--blue) 48%, var(--blue-3));
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 122, 255, 0.28);
}

.btn-primary svg {
  width: 14px;
  height: 14px;
  display: block;
}

.btn-primary:hover {
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 122, 255, 0.16);
  color: var(--ink-2);
}

.btn-ghost:hover {
  border-color: rgba(0, 122, 255, 0.35);
  background: #fff;
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.link-quiet:hover {
  color: var(--blue);
}


/* Hero */
.hero {
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
  padding: 72px 0 58px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 1fr);
  gap: clamp(32px, 4vw, 48px);
  align-items: center;
  width: 100%;
}

.hero-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  white-space: nowrap;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand .brand-bar {
  display: block;
  width: 22px;
  height: 2px;
  flex: 0 0 22px;
  border-radius: 0;
  background: var(--blue);
}

.hero-brand span {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.7;
  color: var(--blue);
  white-space: nowrap;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  animation: rise 0.9s var(--ease) 0.06s both;
}

.hero-copy h1 span,
.hero-copy h1 em {
  display: block;
}

.hero-copy h1 em {
  margin-top: 0;
  font-style: normal;
  color: var(--blue);
}

.lead {
  margin: 0 0 28px;
  max-width: 28em;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
}

.hero-copy .lead {
  margin: 26px 0 0;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  animation: rise 0.9s var(--ease) 0.18s both;
}

.hero-cta .btn {
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 1rem;
}

.hero-cta .link-quiet {
  min-height: 52px;
  padding: 12px 0;
  font-size: 1rem;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 554px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: rise 1s var(--ease) 0.1s both;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.stage-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 149, 255, 0.2), transparent 68%);
  filter: blur(6px);
  animation: pulse 7s ease-in-out infinite;
}

.stage-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

.globe {
  position: absolute;
  inset: 11%;
  fill: none;
  stroke: rgba(120, 170, 230, 0.72);
  stroke-width: 1.15;
}

.routes {
  position: absolute;
  inset: 0;
  fill: none;
  stroke: rgba(0, 122, 255, 0.32);
  stroke-width: 1.4;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
}

.routes path {
  animation: dash 11s linear infinite;
}

.routes path:nth-child(2) { animation-delay: -2s; }
.routes path:nth-child(3) { animation-delay: -4s; }
.routes path:nth-child(4) { animation-delay: -6s; }
.routes path:nth-child(5) { animation-delay: -8s; }

.stage-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(0, 122, 255, 0.26);
  z-index: 3;
  animation: float 5.5s ease-in-out infinite;
}


.stage-tip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 25, 29, 0.06);
  box-shadow: 0 8px 22px rgba(23, 25, 29, 0.05);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.stage-tip strong {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.stage-tip span {
  color: var(--ink-2);
  font-weight: 600;
}

.stage-tip em {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  font-size: 0.6875rem;
  font-weight: 700;
}

.stage-tip i {
  font-style: normal;
  color: var(--muted);
  opacity: 0.85;
}

.pin {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(23, 25, 29, 0.06);
  box-shadow: 0 10px 28px rgba(23, 25, 29, 0.06);
  backdrop-filter: blur(10px);
  animation: bob 5.8s ease-in-out infinite;
}

.pin b {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
}

.pin > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pin strong {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.pin em {
  font-style: normal;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--muted);
}

.p1 { left: 4%; top: 22%; }
.p2 { left: 42%; top: 8%; animation-delay: 0.35s; }
.p3 { right: 2%; top: 30%; animation-delay: 0.7s; }
.p4 { right: 8%; bottom: 18%; animation-delay: 1.05s; }
.p5 { left: 10%; bottom: 16%; animation-delay: 1.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes dash {
  to { stroke-dashoffset: -100; }
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Sections */
.block {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.block.tint {
  background: linear-gradient(180deg, rgba(243, 247, 252, 0.9), rgba(255, 255, 255, 0.7));
}

.section-head {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head.wide {
  max-width: 640px;
}

.kicker {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.section-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-lead);
}

/* Feature sections: clients / scenarios / help */
.feature {
  position: relative;
}

.feature-head {
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 52px);
  text-align: center;
}

.feature-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  letter-spacing: 0.22em;
}

.feature-head .kicker::before,
.feature-head .kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.55), transparent);
}

.feature-head h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--ink);
}

.feature-head > p {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.85;
}

.feature-cta {
  margin: 28px auto 0;
  gap: 8px;
  border-radius: 999px;
}

.feature-cta svg {
  width: 14px;
  height: 14px;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scene-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border-radius: 20px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.scene-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 122, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 122, 255, 0.1);
}

.scene-card .num {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--blue);
}

.scene-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.scene-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* Clients: divider board */
.client-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 25, 29, 0.08);
  border-left: 1px solid rgba(23, 25, 29, 0.08);
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  padding: 24px;
  border-right: 1px solid rgba(23, 25, 29, 0.08);
  border-bottom: 1px solid rgba(23, 25, 29, 0.08);
  background: transparent;
  transition: background 0.3s var(--ease);
}

.client-item:hover {
  background: rgba(255, 255, 255, 0.72);
}

.client-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.client-go {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.client-go svg {
  width: 15px;
  height: 15px;
  display: block;
}

.client-item:hover .client-go {
  opacity: 1;
  color: var(--blue);
  transform: translate(2px, -2px);
}

#clients .kicker {
  letter-spacing: 0.06em;
  text-transform: none;
}

.help {
  padding: 64px 0;
  background: linear-gradient(180deg, rgba(243, 247, 252, 0.95), rgba(255, 255, 255, 0.75));
}

.help-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.help-head .section-head {
  margin: 0;
  text-align: left;
  max-width: 34em;
}

.help-head .kicker {
  margin-bottom: 12px;
  font-size: 0.875rem;
  letter-spacing: 0.045em;
  text-transform: none;
}

.help-head h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.help-head .section-head p:last-child {
  display: none;
}

.help-head .btn {
  flex: 0 0 auto;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.help-head .btn svg {
  width: 16px;
  height: 16px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.help-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 0;
  padding: 22px 20px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.help-grid:not(.client-grid) .help-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: initial;
}

.help-ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.help-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.help-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 122, 255, 0.08);
}

.help-text h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.help-text p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.help-card > i {
  align-self: center;
  margin-top: 0;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.help-card > i svg {
  width: 18px;
  height: 18px;
  display: block;
}

.help-card:hover > i {
  opacity: 1;
  color: var(--blue);
  transform: translate(2px, -2px);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 calc(24px + env(safe-area-inset-bottom));
  background: var(--white);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 35px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.footer-tagline {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.9;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-col h3 {
  margin: 8px 0 16px;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.3;
}

.footer-col a,
.footer-col button {
  width: fit-content;
  margin: 0;
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer-bottom p {
  margin: 0;
}

/* Sub pages: about / terms / privacy */
.legal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  grid-template-columns: none;
}

.legal-header-bar .header-actions {
  margin-left: auto;
  margin-right: 8px;
}

.legal-header-bar .legal-back {
  flex: 0 0 auto;
}

.sub-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sub-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sub-nav a:hover {
  color: var(--ink);
  background: rgba(0, 122, 255, 0.06);
}

.sub-nav a.is-on {
  color: var(--blue);
  background: rgba(0, 122, 255, 0.1);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  flex: 0 0 auto;
  color: var(--muted);
  background: rgba(23, 25, 29, 0.04);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.legal-back:hover {
  color: var(--ink);
  background: rgba(0, 122, 255, 0.08);
}

.legal-back-short {
  display: none;
}

.legal-back-full {
  display: inline;
}

.sub-main {
  padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 9vw, 110px);
}

.sub-hero {
  max-width: 720px;
  margin-bottom: 36px;
}

.sub-hero h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.sub-lead {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.85;
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.legal-meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 25, 29, 0.06);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(23, 25, 29, 0.05);
}

/* About page */
.about-page {
  background: #f8fafc;
}

.about-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(980px 560px at 50% -8%, rgba(0, 122, 255, 0.14), transparent 58%),
    radial-gradient(720px 420px at 100% 28%, rgba(47, 149, 255, 0.07), transparent 55%),
    radial-gradient(640px 380px at 0% 70%, rgba(0, 88, 200, 0.05), transparent 50%),
    linear-gradient(180deg, #fbfcfe 0%, #f5f8fc 42%, #eef3f9 100%);
}

.about-page .sub-nav a.is-on {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--blue);
  border-radius: 0;
  padding-inline: 4px;
}

.about-page .sub-nav a:hover {
  background: transparent;
  color: var(--ink);
}

.about-intro {
  padding: clamp(48px, 8vw, 88px) 0 clamp(64px, 10vw, 110px);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.about-intro-copy h1 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.about-intro-copy h1 span,
.about-intro-copy h1 em {
  display: block;
}

.about-intro-copy h1 em {
  margin-top: 0.04em;
  font-style: normal;
  color: var(--blue);
}

.about-intro-copy .lead {
  max-width: 24em;
}

.about-intro-panel {
  position: relative;
  justify-self: end;
  width: min(100%, 380px);
  padding: 36px 32px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 122, 255, 0.1);
  box-shadow: 0 24px 56px rgba(23, 25, 29, 0.06);
  overflow: hidden;
}

.about-intro-panel-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.about-intro-panel img {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(0, 122, 255, 0.24);
}

.about-intro-panel strong {
  position: relative;
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.about-intro-panel > span {
  position: relative;
  display: block;
  margin-top: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.about-intro-panel ul {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.about-intro-panel li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.about-intro-panel em {
  font-style: normal;
  color: var(--muted);
  font-size: var(--fs-xs);
}

.about-intro-panel b {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
}

.about-story,
.about-uses,
.about-promise,
.about-end {
  padding: clamp(72px, 11vw, 128px) 0;
}

.about-story-grid,
.about-promise-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.about-story-head,
.about-uses-head,
.about-promise-grid header,
.about-end-copy {
  display: grid;
  gap: 16px;
}

.about-story-head span,
.about-uses-head span,
.about-promise-grid header span,
.about-end-copy span {
  font-family: var(--display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.about-story-head h2,
.about-uses-head h2,
.about-promise-grid h2,
.about-end-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.about-story-lead {
  margin: 0 0 18px;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink);
}

.about-story-body p {
  margin: 0 0 16px;
  max-width: 40em;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.9;
}

.about-story-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(23, 25, 29, 0.08);
}

.about-story-meta dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}

.about-story-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.about-uses {
  background: rgba(255, 255, 255, 0.48);
  border-block: 1px solid rgba(23, 25, 29, 0.045);
}

.about-uses-head {
  max-width: 34em;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.about-uses-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.9;
}

.about-uses-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(23, 25, 29, 0.08);
  border-left: 1px solid rgba(23, 25, 29, 0.08);
}

.about-uses-board article {
  padding: clamp(28px, 4vw, 40px);
  border-right: 1px solid rgba(23, 25, 29, 0.08);
  border-bottom: 1px solid rgba(23, 25, 29, 0.08);
  transition: background 0.35s var(--ease);
}

.about-uses-board article:hover {
  background: rgba(255, 255, 255, 0.7);
}

.about-uses-board em {
  display: block;
  margin: 0 0 10px;
  font-family: var(--display);
  font-style: normal;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.about-uses-board p {
  margin: 0;
  max-width: 32em;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.about-promise-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-promise-grid li {
  padding: 26px 0;
  border-top: 1px solid rgba(23, 25, 29, 0.08);
}

.about-promise-grid li:last-child {
  padding-bottom: 0;
  border-bottom: 1px solid rgba(23, 25, 29, 0.08);
}

.about-promise-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.about-promise-grid p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.about-end {
  padding-bottom: clamp(88px, 12vw, 140px);
}

.about-end-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.7fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: end;
  padding: clamp(36px, 5vw, 56px);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.88)),
    radial-gradient(500px 260px at 100% 0%, rgba(0, 122, 255, 0.1), transparent 60%);
  border: 1px solid rgba(0, 122, 255, 0.08);
  box-shadow: 0 30px 70px rgba(23, 25, 29, 0.05);
}

.about-end-copy p {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.9;
}

.about-end-links {
  display: grid;
}

.about-end-links a,
.about-end-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid rgba(23, 25, 29, 0.08);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.about-end-links a:last-child,
.about-end-links button:last-child {
  border-bottom: 1px solid rgba(23, 25, 29, 0.08);
}

.about-end-links a:hover,
.about-end-links button:hover {
  color: var(--blue);
}

.about-end-links i {
  font-style: normal;
  color: var(--blue);
}

.about-footer {
  background: transparent;
  border-top: 1px solid rgba(23, 25, 29, 0.06);
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header) + 16px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
}

.legal-toc p {
  margin: 0 8px 10px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.legal-toc a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.4;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.legal-toc a:hover {
  color: var(--ink);
  background: rgba(0, 122, 255, 0.06);
}

.legal-article {
  padding: 36px 40px;
  color: var(--ink-2);
}

.legal-article section {
  scroll-margin-top: calc(var(--header) + 24px);
}

.legal-article section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-article h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.legal-article p {
  margin: 0 0 14px;
  line-height: 1.8;
}

.legal-article ul {
  margin: 0 0 14px;
  padding-left: 1.15em;
}

.legal-article li {
  margin: 0 0 8px;
  line-height: 1.75;
}

.legal-article li strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-note {
  margin: 36px 0 0 !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: var(--fs-sm);
}

.legal-footer-bottom {
  border-top: 0;
  padding-top: 0;
}

.legal-footer-links {
  display: flex;
  gap: 20px;
}

.legal-footer-links a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.legal-footer-links a:hover {
  color: var(--ink);
}

.sub-page .footer {
  padding-top: 28px;
}

.sub-page .footer-inner {
  gap: 0;
}

/* Mobile bottom dock */
.m-dock {
  display: none;
}

.m-dock-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  padding: 6px 4px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 253, 0.86) 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 26px rgba(23, 40, 70, 0.1);
  backdrop-filter: saturate(1.35) blur(22px);
  -webkit-backdrop-filter: saturate(1.35) blur(22px);
}

.m-dock-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.05);
}

.m-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 5px 2px 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #8b919c;
  font-family: var(--display);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.m-dock-item svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: block;
  stroke-width: 1.45;
  transition: transform 0.25s var(--ease);
}

.m-dock-item span {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding-inline: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.m-dock-item::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: transparent;
  transform: translateX(-50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.m-dock-item:hover,
.m-dock-item:focus-visible {
  color: #4a5160;
  outline: none;
}

.m-dock-item.is-on {
  color: var(--blue);
  font-weight: 600;
}

.m-dock-item.is-on::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 122, 255, 0.16), rgba(0, 122, 255, 0.05) 70%, transparent 100%);
}

.m-dock-item.is-on svg {
  transform: translateY(-0.5px);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(10px);
  max-width: min(90vw, 400px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #f8fafc;
  font-size: var(--fs-sm);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 60;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  :root {
    --pad: 20px;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 48px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-visual {
    width: min(100%, 440px);
    justify-self: center;
  }

  .stage-logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-brand {
    justify-content: flex-start;
  }

  .lead {
    max-width: 36ch;
  }

  .scene-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

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

  .help-head {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .help-head .section-head {
    text-align: center;
    max-width: none;
  }

  .help-head .btn {
    width: auto;
    max-width: none;
    justify-content: center;
  }







  .feature-cta {
    width: 100%;
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 14px;
    padding-bottom: 28px;
  }

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

  .footer-brand img {
    width: 30px;
    height: 30px;
  }

  .footer-brand strong {
    font-size: 1.3rem;
  }

  .footer-brand {
    gap: 7px;
  }

  .footer-tagline {
    margin-top: 14px;
  }

  .footer-col h3 {
    margin: 8px 0;
  }

  .footer-col a,
  .footer-col button {
    font-size: 0.875rem;
    padding: 7px 0;
  }

  .about-intro-grid,
  .about-story-grid,
  .about-promise-grid,
  .about-end-inner,
  .about-uses-board {
    grid-template-columns: 1fr;
  }

  .about-intro {
    padding-top: 28px;
  }

  .about-intro-panel {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .about-intro-copy h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .about-intro-copy .lead br {
    display: none;
  }

  .about-uses-board {
    gap: 12px;
  }

  .about-uses-board article {
    padding: 22px 20px;
  }

  .about-end-links {
    width: 100%;
  }

  .about-end-links a {
    width: 100%;
  }

  .about-promise-grid h2 br {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .legal-toc::-webkit-scrollbar {
    display: none;
  }

  .legal-toc p {
    display: none;
  }

  .legal-toc a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.06);
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .legal-toc a:hover {
    background: rgba(0, 122, 255, 0.12);
    color: var(--blue);
  }

  .legal-article {
    padding: 28px 22px;
  }

  .sub-main {
    padding-top: 28px;
  }

  .legal-hero {
    margin-bottom: 24px;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .m-dock {
    display: block;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 55;
  }

  .toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .sub-page {
    --header: 124px;
  }

  .sub-page .header-bar.legal-header-bar,
  .legal-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .legal-header-bar .brand {
    order: 1;
  }

  .legal-header-bar .brand span {
    font-size: 1.25rem;
  }

  .legal-header-bar .brand img {
    width: 32px;
    height: 32px;
  }

  .legal-header-bar .legal-back {
    order: 2;
    margin-left: auto;
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .legal-back-full {
    display: none;
  }

  .legal-back-short {
    display: inline;
  }

  .sub-page .header {
    border-bottom-color: transparent;
  }

  .sub-page .header::after {
    opacity: 0.7;
  }

  .legal-header-bar .sub-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 4px;
    border-radius: 16px;
    background: rgba(23, 25, 29, 0.045);
    border: 1px solid rgba(23, 25, 29, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: visible;
  }

  .legal-header-bar .sub-nav a {
    flex: none;
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 8px 6px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
  }

  .legal-header-bar .sub-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
  }

  .legal-header-bar .sub-nav a.is-on {
    color: var(--blue);
    background: #fff;
    box-shadow:
      0 1px 2px rgba(23, 25, 29, 0.04),
      0 8px 18px rgba(0, 122, 255, 0.1);
  }

  .about-page .sub-nav a.is-on {
    color: var(--blue);
    background: #fff;
    border-radius: 12px;
    padding-inline: 6px;
    box-shadow:
      0 1px 2px rgba(23, 25, 29, 0.04),
      0 8px 18px rgba(0, 122, 255, 0.1);
  }

  .about-page .sub-nav a:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
  }

  .header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .brand {
    margin-right: auto;
  }

  .header-actions {
    order: 2;
    width: auto;
    flex-wrap: nowrap;
  }

  .lang-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .lang-btn .lang-flag {
    width: 20px;
    height: 14px;
  }

  .header-auth {
    order: 3;
    height: 36px;
    padding: 3px;
  }

  .btn-login,
  .btn-signup {
    padding: 0 12px;
    font-size: 0.75rem;
  }

  .nav {
    display: none;
  }

  .lang-menu {
    left: auto;
    right: 0;
  }
}

@media (max-width: 560px) {
  #clients {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  #clients .section-head {
    margin-bottom: 22px;
    text-align: center;
    max-width: none;
  }

  #clients .section-head h2 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
  }

  #clients .section-head p:last-child {
    font-size: 0.875rem;
  }

  .client-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid rgba(23, 25, 29, 0.08);
  }

  .client-item {
    min-height: 76px;
    padding: 18px 14px;
    border-right: 1px solid rgba(23, 25, 29, 0.08);
  }

  .client-item h3 {
    font-size: 0.9375rem;
    letter-spacing: -0.015em;
  }

  .client-go svg {
    width: 14px;
    height: 14px;
  }

  .client-item:active {
    background: rgba(0, 122, 255, 0.04);
  }

  :root {
    --header: 66px;
    --pad: 18px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .hero-copy {
    text-align: center;
    padding-inline: 6px;
  }

  .hero-brand {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0 auto 20px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.07);
    border: 1px solid rgba(0, 122, 255, 0.12);
    white-space: nowrap;
  }

  .hero-brand .brand-bar {
    display: none;
  }

  .hero-brand span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 8.4vw, 2.45rem);
    line-height: 1.22;
    letter-spacing: -0.028em;
    font-weight: 700;
  }

  .hero-copy h1 span {
    font-size: 1em;
    letter-spacing: inherit;
  }

  .hero-copy h1 em {
    margin-top: 0.02em;
    letter-spacing: inherit;
  }

  .hero-copy .lead {
    margin-top: 16px;
    margin-inline: auto;
    max-width: 21em;
    font-size: 0.875rem;
    line-height: 1.8;
    color: #6b7280;
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
  }

  .hero-cta .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 122, 255, 0.22);
  }

  .hero-cta .btn svg {
    width: 13px;
    height: 13px;
  }

  .hero-cta .link-quiet {
    flex: 0 0 auto;
    width: auto;
    min-height: 48px;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    justify-content: center;
    color: var(--ink);
  }

  .hero-visual {
    width: min(100%, 340px);
  }

  .stage-tip {
    gap: 4px 6px;
    padding: 5px 10px;
    font-size: 0.6875rem;
  }

  .stage-tip strong {
    font-size: 0.8125rem;
  }

  .stage-logo {
    width: 80px;
    height: 80px;
    border-radius: 22px;
  }

  .help {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .help-head {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
  }

  .help-head .section-head {
    text-align: center;
    max-width: none;
    margin: 0;
  }

  .help-head .kicker {
    margin-bottom: 12px;
    letter-spacing: 0.045em;
    text-transform: none;
    font-size: 0.8125rem;
  }

  .help-head h2 {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
  }

  .help-head .section-head p:last-child {
    display: none;
  }

  .help-head .btn {
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 52px;
    padding: 12px 22px;
    border-radius: 10px;
    justify-content: center;
  }

  .help-grid:not(.client-grid) {
    gap: 16px;
  }

  .help-grid:not(.client-grid) .help-card {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 0;
    padding: 20px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(23, 25, 29, 0.08);
    box-shadow: none;
  }

  .help-grid:not(.client-grid) .help-card:hover {
    transform: none;
    box-shadow: none;
  }

  .help-ico {
    width: 22px;
    height: 22px;
    border-radius: 0;
    background: none;
  }

  .help-ico svg {
    width: 22px;
    height: 22px;
  }

  .help-text h3 {
    margin: 0;
    font-size: 1rem;
  }

  .help-text p {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .help-card > i {
    align-self: center;
    margin-top: 0;
    opacity: 0.45;
  }

  .help-card > i svg {
    width: 18px;
    height: 18px;
  }

  .footer {
    padding-top: 38px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .footer-inner {
    gap: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 22px;
    font-size: 0.75rem;
  }

  .sub-page {
    --header: 118px;
  }

  .legal-header-bar .sub-nav a {
    font-size: 0.75rem;
    min-height: 38px;
    padding: 7px 4px;
    letter-spacing: -0.01em;
  }

  .legal-header-bar .legal-back {
    padding: 0 12px;
    font-size: 0.8125rem;
  }

  .about-story,
  .about-uses,
  .about-promise,
  .about-end {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about-story-meta {
    grid-template-columns: 1fr;
  }

  .about-intro-copy .hero-cta {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
  }

  .about-intro-copy .hero-cta .btn,
  .about-intro-copy .hero-cta .link-quiet {
    width: auto;
    justify-content: flex-start;
  }

  .legal-article {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .legal-article h2 {
    font-size: 1.15rem;
  }

  .legal-toc {
    margin: 0 calc(var(--pad) * -0.35);
    padding-left: calc(var(--pad) * 0.35 + 14px);
    padding-right: calc(var(--pad) * 0.35 + 14px);
  }

  .sub-page .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .legal-footer-links {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
