/* ============================================================
   One Team — design tokens, base, typography
   "Pocket operations room": light editorial canvas + one dark
   console moment. Serif speaks for the human, mono for the
   machines. Palette harmonized with the blue-gradient logo.
   ============================================================ */

:root {
  /* surface */
  --paper: #f6f8fc;
  --panel: #ffffff;
  --panel-2: #f0f3fa;
  --line: #e2e7f2;
  --line-strong: #cdd5e6;

  /* ink */
  --ink: #0a0e1f;
  --ink-soft: #2b3450;
  --dim: #5a6486;
  --dim-2: #8892b0;

  /* brand accent (logo electric blue) */
  --signal: #1d5bff;
  --signal-deep: #0a47e0;
  --signal-soft: #e7eeff;
  --signal-glow: rgba(29, 91, 255, 0.18);

  /* functional status (diagram only) */
  --st-working: #1d5bff;
  --st-idle: #98a2c0;
  --st-alert: #f59e0b;

  /* dark console */
  --console: #070b1a;
  --console-2: #0d1426;
  --console-line: #1e2a4a;
  --console-text: #e8edfb;
  --console-dim: #8b97b8;

  /* type */
  --serif: 'Instrument Serif', 'Songti SC', 'STSong', 'Source Han Serif SC',
    'Noto Serif CJK SC', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* shape */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* layout */
  --maxw: 1160px;
  --gut: 24px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  --shadow-sm: 0 1px 2px rgba(10, 14, 31, 0.04), 0 2px 8px rgba(10, 14, 31, 0.05);
  --shadow-md: 0 6px 24px rgba(10, 14, 31, 0.08), 0 2px 6px rgba(10, 14, 31, 0.05);
  --shadow-lg: 0 24px 60px rgba(10, 14, 31, 0.16), 0 8px 20px rgba(10, 14, 31, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Offset anchor jumps (#features etc.) so targets clear the sticky nav,
     including the notch safe-area on modern phones. */
  scroll-padding-top: calc(66px + env(safe-area-inset-top) + 12px);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

::selection {
  background: var(--signal-glow);
  color: var(--ink);
}

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

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

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ----- shared utilities ----- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  /* Keep content clear of landscape notches / rounded screen corners. */
  padding-inline: max(var(--gut), env(safe-area-inset-left))
    max(var(--gut), env(safe-area-inset-right));
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--signal);
  display: inline-block;
}

.section {
  padding-block: clamp(72px, 11vw, 132px);
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-top: 18px;
  color: var(--ink);
}
.section-head .lede {
  margin-top: 18px;
  color: var(--dim);
  font-size: 18px;
  max-width: 60ch;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 8px 20px var(--signal-glow);
}
.btn-primary:hover {
  background: var(--signal-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px var(--signal-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--panel);
}
.btn-on-dark.btn-ghost {
  color: var(--console-text);
  border-color: rgba(232, 237, 251, 0.28);
}
.btn-on-dark.btn-ghost:hover {
  border-color: var(--console-text);
  background: rgba(255, 255, 255, 0.04);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* CJK: faux-italic slants CJK glyphs badly, so drop italics on serif accents. */
html[lang^='zh'] .line2,
html[lang^='zh'] .why-closing,
html[lang^='zh'] .footer-slogan,
html[lang^='zh'] .vision-statement,
html[lang^='zh'] .waitlist-success-title {
  font-style: normal;
}

/* ============================================================
   One Team - section styles
   ============================================================ */

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  /* Extend the bar up under the notch so content stays below it. */
  padding-top: env(safe-area-inset-top);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}
.brand-name {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover {
  color: var(--signal-deep);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 13px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.lang-toggle:hover {
  border-color: var(--signal);
  color: var(--signal-deep);
}
.nav-cta {
  padding: 10px 20px;
  font-size: 14.5px;
}
/* Hamburger - hidden on desktop, revealed on mobile (see @media below). */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Mobile dropdown panel - collapsed by default, expanded with .open. */
.nav-menu {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  /* faint operations grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -160px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-category {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--signal-deep);
  background: var(--signal-soft);
  border: 1px solid rgba(29, 91, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  margin-bottom: 30px;
  max-width: 100%;
}
.hero-category .cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: ping 2.4s var(--ease) infinite;
  flex: none;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero h1 .line2 {
  display: block;
  color: var(--signal-deep);
  font-style: italic;
}
.hero-sub {
  margin-top: 26px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 30ch;
}
.hero-desc {
  margin-top: 16px;
  font-size: 17px;
  color: var(--dim);
  max-width: 46ch;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-not {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.not-chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
}
.not-chip b {
  color: var(--signal-deep);
  font-weight: 600;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 var(--signal-glow);
  }
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ---------- Topology (hero signature) ---------- */
.topology {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.topo-devices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}
.topo-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 6px 10px;
  box-shadow: var(--shadow-sm);
}
.topo-name {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.2;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot.working {
  background: var(--st-working);
  box-shadow: 0 0 0 3px rgba(29, 91, 255, 0.16);
  animation: blink 2.2s steps(1) infinite;
}
.dot.idle {
  background: var(--st-idle);
}
.dot.alert {
  background: var(--st-alert);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
@keyframes blink {
  0%,
  60% {
    opacity: 1;
  }
  61%,
  100% {
    opacity: 0.45;
  }
}
.topo-lines {
  position: relative;
  width: 100%;
  height: 56px;
}
.topo-lines .drop {
  position: absolute;
  top: 0;
  width: 1.5px;
  height: 22px;
  background: linear-gradient(var(--signal), rgba(29, 91, 255, 0.15));
  transform: translateX(-50%);
}
.topo-lines .drop:nth-child(1) {
  left: 12.5%;
}
.topo-lines .drop:nth-child(2) {
  left: 37.5%;
}
.topo-lines .drop:nth-child(3) {
  left: 62.5%;
}
.topo-lines .drop:nth-child(4) {
  left: 87.5%;
}
.topo-lines .rail {
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 1.5px;
  background: var(--line-strong);
}
.topo-lines .trunk {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 34px;
  background: linear-gradient(var(--signal), rgba(29, 91, 255, 0.5));
}
.topo-lines .pulse {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: travel 1.9s var(--ease) infinite;
}
@keyframes travel {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(32px);
    opacity: 0;
  }
}
/* phone / console */
.topo-phone {
  position: relative;
  width: 248px;
  background: linear-gradient(180deg, var(--console-2), var(--console));
  border: 1px solid var(--console-line);
  border-radius: 30px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(29, 91, 255, 0.12), 0 0 60px rgba(29, 91, 255, 0.14);
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 7px;
  border-radius: 99px;
  background: #000;
  opacity: 0.6;
}
.phone-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 4px 12px;
  margin-top: 6px;
  border-bottom: 1px solid var(--console-line);
}
.phone-head img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.phone-head .name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--console-text);
}
.phone-head .live {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--st-working);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.phone-fleet {
  list-style: none;
  margin: 0;
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.phone-fleet li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 6px;
  border-radius: 8px;
}
.phone-fleet li .agent {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--console-text);
}
.phone-fleet li .state {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--console-dim);
}
.phone-fleet li.alert-row .state {
  color: var(--st-alert);
}
.phone-foot {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--console-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--console-dim);
  text-align: center;
}
.topo-caption {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Problem ---------- */
.problem {
  background: var(--panel-2);
  border-block: 1px solid var(--line);
}
.problem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.problem-intro {
  color: var(--dim);
  font-size: 18px;
  margin-bottom: 22px;
  max-width: 50ch;
}
.problem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.problem-item {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.problem-item::before {
  content: '+';
  color: var(--signal);
  font-weight: 600;
}
.problem-outro {
  margin-top: 26px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.6;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--panel);
  padding: 34px 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.18s var(--ease);
}
.feature:hover {
  background: var(--paper);
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--signal-soft);
  color: var(--signal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.15;
  color: var(--ink);
}
.feature p {
  font-size: 15.5px;
  color: var(--dim);
  line-height: 1.6;
}

/* ---------- Why ---------- */
.why {
  background: linear-gradient(180deg, var(--paper), var(--panel-2));
}
.why-lead {
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30ch;
  font-weight: 500;
}
.why-future {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.01em;
}
.roles {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.role {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.role:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
}
.role .idx {
  font-size: 11px;
  color: var(--signal-deep);
}
.why-closing {
  margin-top: 48px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.1;
  color: var(--ink);
}
.why-closing .accent {
  color: var(--signal-deep);
}

/* ---------- How it works ---------- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step {
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--signal-deep);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.step h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
}
.step p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--dim);
  max-width: 32ch;
}

/* ---------- Vision ---------- */
.vision {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vision .eyebrow {
  justify-content: center;
}
.vision .eyebrow::before {
  display: none;
}
.vision h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 18px auto 0;
}
.vision-body {
  margin: 24px auto 0;
  max-width: 52ch;
  color: var(--dim);
  font-size: 18px;
}
.vision-statement {
  margin: 40px auto 0;
  max-width: 900px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.2;
  color: var(--signal-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

/* ---------- Final CTA (dark console) ---------- */
.final-cta {
  background: var(--console);
  color: var(--console-text);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(232, 237, 251, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 360px;
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 65%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.final-cta .eyebrow {
  color: #6f9bff;
  justify-content: center;
}
.final-cta .eyebrow::before {
  background: #6f9bff;
}
.final-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.final-cta h2 .line2 {
  display: block;
  color: #8ab0ff;
  font-style: italic;
}
.final-cta .sub {
  margin-top: 18px;
  color: var(--console-dim);
  font-size: 18px;
}
.final-cta .btn-primary {
  margin-top: 36px;
  padding: 17px 34px;
  font-size: 17px;
}

/* ---------- Waitlist (inside final-cta) ---------- */
.waitlist-form {
  margin: 36px auto 0;
  max-width: 480px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.waitlist-input {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--console-text);
  background: var(--console-2);
  border: 1px solid var(--console-line);
  border-radius: var(--radius-pill);
  padding: 15px 22px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.waitlist-input::placeholder {
  color: var(--console-dim);
}
.waitlist-input:focus {
  outline: none;
  border-color: #6f9bff;
  box-shadow: 0 0 0 3px var(--signal-glow);
}
.waitlist-input:disabled {
  opacity: 0.6;
}
.waitlist-form .waitlist-submit {
  margin-top: 0;
  padding: 15px 26px;
  font-size: 16px;
}
.waitlist-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}
.waitlist-error {
  flex-basis: 100%;
  margin: 4px 4px 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--st-alert);
  text-align: left;
}
.waitlist-success {
  margin: 36px auto 0;
  max-width: 520px;
}
.waitlist-success-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 32px);
  color: #8ab0ff;
}
.waitlist-success-email {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--console-text);
}
.waitlist-success-body {
  margin-top: 12px;
  color: var(--console-dim);
  font-size: 17px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--console);
  color: var(--console-dim);
  border-top: 1px solid var(--console-line);
  padding-block: 64px max(34px, env(safe-area-inset-bottom));
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-name {
  color: var(--console-text);
}
.footer-slogan {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--console-text);
  max-width: 24ch;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--console-text);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  font-size: 14.5px;
  color: var(--console-dim);
  transition: color 0.15s var(--ease);
}
.footer-col a:hover {
  color: var(--console-text);
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--console-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .copyright {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--console-dim);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .icp {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--console-dim);
  transition: color 0.15s var(--ease);
}
.footer-bottom .icp:hover {
  color: var(--console-text);
}
.footer-bottom .lang-toggle {
  background: transparent;
  color: var(--console-text);
  border-color: var(--console-line);
}
.footer-bottom .lang-toggle:hover {
  border-color: #6f9bff;
  color: #8ab0ff;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 20px;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .nav.menu-open {
    border-bottom-color: var(--line);
  }
  .nav-menu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-inline: max(var(--gut), env(safe-area-inset-left))
      max(var(--gut), env(safe-area-inset-right));
    background: rgba(246, 248, 252, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: max-height 0.28s var(--ease), opacity 0.22s var(--ease),
      padding 0.28s var(--ease), border-color 0.2s var(--ease);
  }
  .nav-menu.open {
    max-height: 320px;
    opacity: 1;
    padding-top: 6px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-bottom-color: var(--line);
  }
  .nav-menu a {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-soft);
    min-height: 48px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
  }
  .how-steps {
    grid-template-columns: 1fr;
  }
  .how-steps::before {
    display: none;
  }
  .step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: start;
  }
  .step h3 {
    margin-top: 6px;
  }
  .step p {
    margin-top: 8px;
  }
  /* Comfortable touch targets (>=44px) for the frequently tapped controls. */
  .lang-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-col a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .topo-phone {
    width: 230px;
  }
}
@media (max-width: 420px) {
  .nav-cta {
    padding: 9px 14px;
    font-size: 13.5px;
  }
  .lang-toggle {
    padding: 7px 10px;
    font-size: 11.5px;
  }
  .brand-name {
    font-size: 20px;
  }
}
@media (max-width: 380px) {
  /* Device cards get cramped 4-wide on the smallest phones; use a 2x2 grid. */
  .topo-devices {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .topo-lines .pulse {
    display: none;
  }
  .dot.working {
    animation: none;
  }
}

/* ---------- Touch devices: suppress sticky :hover artifacts ---------- */
@media (hover: none) {
  .btn:hover,
  .role:hover {
    transform: none;
  }
  .feature:hover {
    background: var(--panel);
  }
  .role:hover {
    border-color: var(--line);
  }
}

