:root {
  --white: #FFFFFF;
  --graphite: #17191C;
  --gray: #92969B;
  --mute: #5A6066;
  --faint: #9AA0A6;
  --line: #E9EAEB;
  --panel: #F4F5F7;
  --blue: #3D7BF7;
  --ink: #15171A;
  --code: #C6CBD2;
  --key: #F2F4F6;
  --str: #8FB0FF;
  --punct: #6A7078;
  --cmt: #565C63;
  --ease: cubic-bezier(.22, .7, .24, 1);
  --maxw: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--white);
  color: var(--graphite);
}

body {
  background: var(--white);
  color: var(--graphite);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: calc(var(--maxw) + 80px);
  height: 84px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo img {
  width: 34px;
  height: auto;
  display: block;
}

.logo span {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--graphite);
  line-height: 1;
}

.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.menu a {
  font-size: 12.5px;
  color: var(--mute);
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--graphite);
  transition: right .38s var(--ease);
}

.menu a:hover,
.menu a.on {
  color: var(--graphite);
}

.menu a:hover::after,
.menu a.on::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 44px;
  padding: 0 22px;
  background: var(--graphite);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .02em;
  border: 1px solid var(--graphite);
  border-radius: 2px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: #fff;
  color: var(--graphite);
}

.btn i {
  font-style: normal;
  font-size: 13px;
  transition: transform .35s var(--ease);
}

.btn:hover i {
  transform: translateX(4px);
}

.nav-cta {
  min-width: 158px;
}

.ghost {
  font-size: 12.5px;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  transition: color .3s var(--ease);
  white-space: nowrap;
}

.ghost i {
  font-style: normal;
  transition: transform .35s var(--ease);
}

.ghost:hover {
  color: var(--graphite);
}

.ghost:hover i {
  transform: translateX(4px);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--graphite);
  transition: transform .3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.mobile-menu a {
  font-size: 15px;
  color: var(--graphite);
  padding: 6px 0;
  border-bottom: 1px solid #F3F4F5;
}

.mobile-cta {
  width: 100%;
  margin-top: 6px;
}

/* ============ RIGHT RAIL ============ */
.rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.rail a {
  display: block;
  width: 14px;
  height: 2px;
  background: #DFE2E4;
  transition: background .35s var(--ease), width .35s var(--ease);
}

.rail a:hover,
.rail a.on {
  background: var(--graphite);
  width: 26px;
}

/* ============ SECTIONS ============ */
.sec {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.sec-home {
  border-top: none;
}

.sec-inner {
  position: relative;
  max-width: calc(var(--maxw) + 80px);
  min-height: min(960px, 100vh);
  margin: 0 auto;
  padding: 120px 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sec-no {
  position: absolute;
  right: 40px;
  top: 106px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: .2em;
  color: #C3C7C2;
}

.eyebrow {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: 2px;
  margin-right: 12px;
}

h1 {
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: 1.03;
  letter-spacing: -.038em;
  font-weight: 600;
}

h1 em,
h2 em {
  font-style: normal;
  display: block;
  color: #9EA2A7;
}

h2 {
  font-size: clamp(40px, 5.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -.042em;
  font-weight: 600;
  margin-top: 18px;
}

.para {
  margin-top: 24px;
  max-width: 470px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mute);
}

.sec-foot {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.meta,
.meta-r {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #A8ABA6;
}

.meta b {
  font-weight: 400;
  color: #7E837D;
  margin: 0 14px;
}

/* ============ REVEAL MOTION ============ */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .95s var(--ease);
}

.in .rv {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }

/* ============ 01 · HERO ============ */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 32px;
}

.hero-copy {
  position: relative;
  z-index: 20;
  padding: 40px 0;
}

.acts {
  margin-top: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 560px;
}

.code-bg {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-38%);
  width: 520px;
  max-width: 110%;
  overflow: hidden;
  z-index: 5;
  font-family: ui-monospace, Menlo, monospace;
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.65;
  letter-spacing: -.035em;
  color: var(--graphite);
  opacity: .17;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.code-bg span {
  display: block;
}

.robot-wrap {
  position: relative;
  width: min(500px, 100%);
  z-index: 15;
}

.robot-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 3;
  animation: float 7.5s ease-in-out infinite;
}

.robot-shadow {
  position: relative;
  z-index: 2;
  width: 64%;
  height: 36px;
  margin: -18px auto 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(23, 25, 28, .18), rgba(23, 25, 28, 0) 70%);
  filter: blur(3px);
}

.robot-desk {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-top: -12px;
  transform-origin: left center;
}

.hero-layout .sec-foot {
  grid-column: 1 / -1;
}

/* ============ 02 · PRODUCT ============ */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  align-items: center;
  gap: 48px;
  margin: auto 0;
}

.code-win {
  position: relative;
  margin-top: 38px;
  background: var(--ink);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(21, 23, 26, .38);
}

.win-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid #24272B;
}

.win-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34383D;
  display: block;
}

.win-bar span {
  margin-left: 6px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: #767C84;
}

.win-bar .live {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4B80F5;
  display: block;
  animation: blink 2.2s ease-in-out infinite;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  top: 40px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(122, 160, 255, .5), transparent);
  animation: scan 5.5s linear infinite;
}

.pcode {
  font-family: ui-monospace, Menlo, monospace;
  font-size: clamp(13px, 1.25vw, 16.5px);
  line-height: 1.8;
  color: var(--code);
  padding: 22px 26px 20px;
  letter-spacing: -.005em;
  overflow-x: auto;
}

.pcode div {
  white-space: pre;
  border-radius: 3px;
  padding: 0 8px;
  margin: 0 -8px;
  transition: background .25s var(--ease);
}

.pcode .spec-line {
  cursor: pointer;
}

.pcode .spec-line:hover,
.pcode .spec-line.on {
  background: rgba(61, 123, 247, .16);
}

.pcode .k { color: #A6ADB6; }
.pcode .v { color: var(--key); }
.pcode .p { color: #9BA3AC; }
.pcode .s { color: var(--str); }
.pcode .c { color: var(--punct); }
.pcode .cm { color: var(--cmt); }

.spec-readout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 26px 14px;
  border-top: 1px solid #24272B;
  font-size: 10px;
  letter-spacing: .1em;
  color: #7E858E;
}

.spec-readout b {
  font-weight: 500;
  color: #F2F4F6;
  white-space: nowrap;
}

.product-right {
  display: flex;
  justify-content: center;
}

.robot-wrap-lg {
  width: min(460px, 100%);
}

/* ============ 03 · LEARNING ============ */
.learning-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 56px;
  margin: auto 0;
}

.steps {
  margin-top: 44px;
  max-width: 470px;
}

.step {
  border-top: 1px solid var(--line);
  padding: 18px 0 20px;
  display: flex;
  gap: 20px;
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
}

.ico svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: #8C9298;
  stroke-width: 1.3;
  fill: none;
}

.ico .fill-ico {
  fill: #8C9298;
  stroke: none;
}

.step b {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.step span {
  display: block;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7E8388;
  margin-top: 6px;
}

.learn-panel {
  background: var(--ink);
  border-radius: 7px;
  padding: 26px 32px 24px;
  min-height: 372px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 60px -30px rgba(21, 23, 26, .4);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 15px;
  font-size: 11.5px;
  color: #838A93;
  border: 1px solid #2B2F34;
  transition: all .25s var(--ease);
}

.tab:hover {
  color: #F2F4F6;
  border-color: #4A5058;
}

.tab.on {
  background: #F2F4F6;
  color: #15171A;
  border-color: #F2F4F6;
}

.panel-badge {
  font-size: 9.5px;
  letter-spacing: .14em;
  color: #767C84;
}

.learn-code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: clamp(13.5px, 1.3vw, 17px);
  line-height: 1.95;
  color: var(--code);
  overflow-x: auto;
}

.learn-code .code-row {
  white-space: pre;
}

.learn-code .hl {
  display: inline-block;
  border-radius: 3px;
  padding: 1px 10px;
  margin-left: -10px;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.learn-code .hl.active {
  background: #4B80F5;
  color: #fff;
}

.panel-out {
  margin-top: 22px;
  border-top: 1px solid #2A2E33;
  padding-top: 14px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #767C84;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-out b {
  font-weight: 500;
  color: #F2F4F6;
}

.learn-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ============ 04 · COMPANION APP ============ */
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
  margin: auto 0;
}

.app-points {
  margin-top: 38px;
  max-width: 500px;
}

.app-point {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.app-point .mono {
  font-size: 9.5px;
  letter-spacing: .16em;
  color: #B4B8B3;
  padding-top: 4px;
  width: 24px;
  flex: none;
}

.app-point b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.app-point span {
  display: block;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7E8388;
  margin-top: 4px;
}

.app-hint {
  margin-top: 26px;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--blue);
}

/* Interactive Phone Frame */
.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 370px;
  max-width: 100%;
  height: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(23, 25, 28, .09);
  user-select: none;
}

.p-status {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
}

.p-status-r {
  display: flex;
  align-items: center;
  gap: 5px;
}

.p-dots {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.p-dots i {
  display: block;
  width: 3px;
  background: var(--graphite);
  border-radius: 1px;
}

.p-bar {
  width: 20px;
  height: 10px;
  border: 1px solid var(--graphite);
  border-radius: 3px;
  position: relative;
}

.p-bar::after {
  content: "";
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  bottom: 1.5px;
  width: 12px;
  background: var(--graphite);
  border-radius: 2px;
}

.p-topbar {
  height: 36px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-lockup img {
  width: 26px;
  display: block;
}

.p-lockup span {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.p-topright {
  font-size: 8.5px;
  letter-spacing: .16em;
  color: #B4B8B3;
}

.p-screen {
  display: none;
  padding: 12px 24px 86px;
  height: calc(760px - 80px);
  overflow-y: auto;
  animation: fade .28s var(--ease);
}

.p-screen.on {
  display: block;
}

.p-kicker {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.herostage {
  position: relative;
  width: 100%;
  height: 174px;
  border-radius: 14px;
  overflow: hidden;
  background: #F9FAFB;
  box-shadow: 0 0 0 1px #E7E9EB;
  isolation: isolate;
}

.herostage .cstream {
  position: absolute;
  top: 0;
  width: 100px;
  height: 174px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%);
}

.herostage .cstream.l { left: 0; }
.herostage .cstream.r { right: 0; }

.herostage .track i {
  display: block;
  height: 18px;
  line-height: 18px;
  white-space: nowrap;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 7px;
  letter-spacing: .02em;
  font-style: normal;
  color: rgba(23, 25, 28, .15);
  padding-left: 10px;
}

.herostage .r .track i {
  text-align: right;
  padding-left: 0;
  padding-right: 10px;
}

.herostage .l .track { animation: croll 42s linear infinite; }
.herostage .r .track { animation: croll 56s linear infinite; }

.herostage .hbot {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 106px;
  transform: translateX(-50%);
  z-index: 2;
  animation: breathe 6.5s ease-in-out infinite;
}

.herostage .hcontact {
  position: absolute;
  left: 50%;
  top: 140px;
  width: 90px;
  height: 20px;
  transform: translateX(-50%);
  z-index: 1;
  background: radial-gradient(ellipse at 50% 50%, rgba(23, 25, 28, .11), rgba(23, 25, 28, 0) 70%);
}

.p-stats {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.p-label {
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #B4B8B3;
}

.p-val {
  font-size: 12px;
  margin-top: 6px;
}

.p-online {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-blue {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
}

.p-headline {
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -.04em;
  font-weight: 600;
}

.p-headline span,
.p-title span {
  color: #9EA2A7;
}

.p-desc {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  color: #8A9096;
}

.p-mini-log {
  margin-top: 18px;
}

.p-mini-log > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--mute);
}

.p-time {
  font-size: 9px;
  color: #B4B8B3;
}

.p-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D8DBD7;
}

.p-dot.on {
  background: var(--blue);
}

.p-cta {
  margin-top: 16px;
  width: 100%;
  height: 46px;
  background: var(--graphite);
  color: #fff;
  border-radius: 9px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .25s var(--ease);
}

.p-cta:hover {
  opacity: .9;
}

.p-title {
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 600;
  margin-top: 8px;
}

.p-sub {
  font-size: 8.5px;
  letter-spacing: .14em;
  color: var(--gray);
  margin-top: 8px;
}

.p-list {
  margin-top: 22px;
}

.p-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.p-row.last,
.p-sk.last {
  border-bottom: 1px solid var(--line);
}

.p-row b,
.p-sk b,
.p-priv b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.p-row span,
.p-sk span,
.p-priv span {
  display: block;
  font-size: 10px;
  color: #9AA0A6;
  margin-top: 4px;
  line-height: 1.5;
}

.blue {
  color: var(--blue) !important;
  font-style: normal;
}

.p-retention {
  margin-top: 26px;
}

.p-ret-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mute);
  margin-top: 8px;
}

.p-ret-line .mono {
  font-size: 9.5px;
  color: #8A9096;
}

.p-export {
  margin-top: 16px;
  width: 100%;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--mute);
}

.p-export:hover {
  color: var(--graphite);
}

.p-sk {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.p-sk em {
  font-style: normal;
  font-size: 8px;
  letter-spacing: .1em;
  color: #B4B8B3;
  padding-top: 3px;
}

.p-priv {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.p-switch {
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: #DFE1DE;
  position: relative;
  flex: none;
  transition: background .25s var(--ease);
}

.p-switch::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s var(--ease);
}

.p-switch.on {
  background: var(--blue);
}

.p-switch.on::after {
  transform: translateX(16px);
}

.p-footnote {
  margin-top: 22px;
  font-size: 8px;
  letter-spacing: .08em;
  line-height: 1.9;
  color: #B4B8B3;
}

.p-tab {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  border-top: 1px solid #F0F1F2;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 10px;
}

.p-tab button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9px;
  color: #A8ACA7;
  transition: color .2s var(--ease);
}

.p-tab button svg {
  width: 16px;
  height: 16px;
  stroke: #C0C4BF;
  fill: none;
  stroke-width: 1.3;
}

.p-tab button.on {
  color: var(--graphite);
}

.p-tab button.on svg {
  stroke: var(--graphite);
}

.p-tabline {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 22px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--graphite);
  transition: transform .3s var(--ease);
}

/* ============ 05 · ABOUT & SAFETY ============ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 64px;
  margin-top: 44px;
  align-items: start;
}

.story {
  max-width: 450px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mute);
}

.story b {
  font-weight: 600;
  color: var(--graphite);
}

.road {
  margin-top: 48px;
}

.road-t,
.safety-t {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #B4B8B3;
  margin-bottom: 14px;
}

.road-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.road-item {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.road-item em {
  font-style: normal;
  display: block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: .14em;
  color: #B4B8B3;
}

.road-item b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 7px;
  letter-spacing: -.01em;
}

.road-item span {
  display: block;
  font-size: 11.5px;
  color: #8A9096;
  margin-top: 4px;
}

.safe {
  border-top: 1px solid var(--line);
  padding: 16px 0 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.safe b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.safe span {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: #7E8388;
  margin-top: 5px;
}

.close-banner {
  margin-top: 56px;
  min-height: 144px;
  border-radius: 8px;
  background: linear-gradient(106deg, #FCFDFE 0%, #E6EAEF 42%, #C9CFD8 62%, #E9EDF1 100%);
  background-size: 200% 100%;
  border: 1px solid #E6E9EC;
  padding: 30px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  animation: drift 16s ease-in-out infinite alternate;
}

.close-banner h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -.035em;
  font-weight: 600;
}

.close-foot {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7E8388;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.close-foot b {
  font-weight: 500;
  color: var(--graphite);
}

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 25, 28, .48);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 34px 32px;
  box-shadow: 0 32px 80px rgba(21, 23, 26, .24);
  animation: fade .24s var(--ease);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  font-size: 22px;
  color: var(--gray);
  line-height: 1;
}

.modal-close:hover {
  color: var(--graphite);
}

.modal-card h3 {
  margin-top: 14px;
  font-size: 28px;
  letter-spacing: -.035em;
  font-weight: 600;
}

.modal-lead {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mute);
}

#preorderForm {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field span {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}

.field input {
  height: 42px;
  padding: 0 13px;
  border: 1px solid #D9DCE0;
  border-radius: 2px;
  font-size: 13.5px;
  color: var(--graphite);
  outline: none;
  transition: border-color .25s var(--ease);
}

.field input:focus {
  border-color: var(--graphite);
}

.age-pills {
  display: flex;
  gap: 8px;
}

.pill {
  flex: 1;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  color: var(--mute);
  transition: all .2s var(--ease);
}

.pill.on {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #fff;
}

.modal-err {
  font-size: 12px;
  color: #C93B3B;
  min-height: 16px;
}

.modal-submit {
  width: 100%;
}

.modal-note {
  text-align: center;
  font-size: 9px;
  letter-spacing: .12em;
  color: #A8ABA6;
}

.modal-done {
  margin-top: 22px;
}

.done-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--mute);
  margin-bottom: 12px;
}

.modal-done h4 {
  font-size: 20px;
  letter-spacing: -.025em;
  font-weight: 600;
}

.modal-done p {
  margin: 10px 0 22px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mute);
}

.modal-done a {
  color: var(--graphite);
  text-decoration: underline;
}

/* ============ KEYFRAMES ============ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes breathe {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

@keyframes croll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -216px, 0); }
}

@keyframes scan {
  0% { top: 40px; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

@keyframes drift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1120px) {
  .rail {
    display: none;
  }

  .product-grid,
  .learning-grid,
  .app-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .product-right {
    order: -1;
  }

  .robot-wrap-lg {
    width: min(380px, 85%);
  }

  .app-grid {
    justify-items: start;
  }

  .phone-wrap {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .nav-inner {
    height: 70px;
    padding: 0 22px;
  }

  .menu,
  .nav-cta {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .sec-inner {
    min-height: auto;
    padding: 96px 22px 34px;
  }

  .sec-no {
    right: 22px;
    top: 88px;
  }

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

  .hero-copy {
    padding: 18px 0 0;
  }

  .hero-stage {
    min-height: 360px;
    justify-content: center;
  }

  .code-bg {
    left: 0;
    font-size: 24px;
  }

  .robot-wrap {
    width: min(340px, 88%);
  }

  .road-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .close-banner {
    padding: 26px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
