/* ═══════════════════════════════════════════════════════════════
   TRAILBLZ AIOS — "Porcelain OS"
   Warm porcelain, charcoal ink, teal signal. Precision over decoration.
   Bricolage Grotesque (voice) · Geist (structure) · Geist Mono (system)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --porcelain: #0a111c;
  --paper: #111a29;
  --ink: #e8eef6;
  --ink-2: #070d18;
  --muted: #92a3b6;
  --line: rgba(232, 240, 248, 0.1);
  --line-strong: rgba(232, 240, 248, 0.22);
  --teal: #2dd4e6;
  --teal-deep: #43d6e6;
  --teal-soft: rgba(45, 212, 230, 0.13);
  --mint: #7ef0cf;
  --amber: #e8a13d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.05), 0 24px 56px -12px rgba(0, 0, 0, 0.14);
  --font-disp: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1200px;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.55;
}
.section { padding-block: clamp(5.5rem, 9vw, 9rem); position: relative; }
.section--tint {
  background: linear-gradient(to bottom, #0e1626, var(--porcelain));
  border-top: 1px solid var(--line);
}

/* highlight words */
.hl {
  font-style: normal;
  color: var(--teal-deep);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.04em;
  height: 0.1em;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  border-radius: 2px;
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.35s;
}
.in .hl::after, .lines-in .hl::after { transform: scaleX(1); }
.hl-mint { font-style: normal; color: var(--teal-deep); }

/* ── Skip link ── */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 4000;
  padding: 0.7rem 1.2rem;
  background: var(--ink); color: var(--porcelain);
  font-weight: 600; font-size: 0.9rem;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ═════════════ BOOT SCREEN ═════════════ */
.boot {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--porcelain);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-io), visibility 0.6s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot__panel {
  width: min(420px, calc(100vw - 3rem));
  background: var(--ink-2);
  border: 1px solid rgba(232, 240, 248, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.boot__bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(235, 242, 250, 0.1);
  color: #92a4a6;
}
.boot__bar .mono { font-size: 0.6rem; letter-spacing: 0.22em; }
.boot__dot {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--teal);
  animation: bootblink 1s steps(2) infinite;
}
@keyframes bootblink { 50% { opacity: 0.25; } }
.boot__lines {
  padding: 1.1rem 1.2rem 1.4rem;
  min-height: 148px;
  color: #b9c6c4;
  font-size: 0.72rem;
}
.boot__lines .ok { color: var(--mint); }
.boot__lines div { margin-bottom: 0.35rem; }

/* ═════════════ NAV ═════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: transform 0.45s var(--ease), background 0.35s, box-shadow 0.35s;
}
.nav.scrolled {
  background: rgba(10, 17, 28, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 0.95rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.65rem; }
.nav__mark { width: 30px; height: 30px; }
.nav__mark rect { stroke: var(--teal); stroke-width: 7; }
.nav__word {
  font-family: var(--font-disp);
  font-weight: 700; font-size: 1.14rem; letter-spacing: -0.02em;
}
.nav__word em { font-style: normal; color: var(--teal-deep); }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  position: relative; padding-block: 0.2rem;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: 0.9rem; }

.nav__burger { display: none; position: relative; width: 40px; height: 40px; }
.nav__burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 24px; }
.nav__burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger.open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ═════════════ MOBILE MENU ═════════════ */
.menu {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10, 17, 28, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-io), visibility 0.4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 1.1rem;
  font-family: var(--font-disp);
  font-size: clamp(1.9rem, 7.5vw, 2.8rem); font-weight: 650; letter-spacing: -0.02em;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
}
.menu.open .menu__links a { transform: translateY(0); opacity: 1; }
.menu.open .menu__links a:nth-child(1) { transition-delay: 0.06s; }
.menu.open .menu__links a:nth-child(2) { transition-delay: 0.12s; }
.menu.open .menu__links a:nth-child(3) { transition-delay: 0.18s; }
.menu.open .menu__links a:nth-child(4) { transition-delay: 0.24s; }
.menu.open .menu__links a:nth-child(5) { transition-delay: 0.3s; }
.menu.open .menu__links a:nth-child(6) { transition-delay: 0.36s; }
.menu__links .mono { color: var(--teal-deep); font-size: 0.75rem; }

/* ═════════════ BUTTONS ═════════════ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; font-size: 0.94rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn i { font-style: normal; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--porcelain); box-shadow: var(--shadow-sm); }
.btn--ink:hover { background: #ffffff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--teal-deep); color: var(--teal-deep); background: var(--teal-soft); transform: translateY(-2px); }
.btn--mint { background: linear-gradient(92deg, var(--teal), #8ce4f5); color: var(--ink-2); }
.btn--mint:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(53, 200, 216, 0.4); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; border-radius: 12px; }

/* ═════════════ EYEBROW ═════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--teal-deep); letter-spacing: 0.2em;
}
.eyebrow--light { color: var(--teal-deep); }
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 2px;
  background: currentColor;
  animation: pulse 2.2s var(--ease-io) infinite;
}
@keyframes pulse { 50% { opacity: 0.3; transform: scale(0.8) rotate(45deg); } }

/* ═════════════ HERO ═════════════ */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 12vw, 10.5rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  overflow: clip;
}
.hero__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 0%, black 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 0%, black 0%, transparent 68%);
  opacity: 0.8;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--font-disp);
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 1.5rem 0 1.6rem;
}
.line { display: block; overflow: hidden; padding-block: 0.09em; margin-block: -0.09em; }
.line__inner {
  display: inline-block;
  text-wrap: balance;
  transform: translateY(112%);
  transition: transform 0.95s var(--ease);
}
.lines-in .line__inner { transform: translateY(0); }
.lines-in .line:nth-child(2) .line__inner { transition-delay: 0.08s; }
.lines-in .line:nth-child(3) .line__inner { transition-delay: 0.16s; }
.hero__sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.16rem);
  max-width: 31rem;
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__reqs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  margin-top: 2.4rem;
  color: var(--muted);
  font-size: 0.64rem;
}
.hero__req {
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

/* OS window */
.hero__demo { position: relative; }
.hero__demo-shadow {
  position: absolute; inset: auto 8% -14px 8%;
  height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(22px);
  z-index: -1;
}
.oswin {
  background: var(--ink-2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(235, 242, 250, 0.08);
  transform: rotate(0.6deg);
}
.oswin__bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(235, 242, 250, 0.09);
  color: #8fa2a4;
}
.oswin__bar .mono { font-size: 0.62rem; letter-spacing: 0.2em; }
.oswin__square { width: 9px; height: 9px; border-radius: 3px; background: var(--teal); }
.oswin__status { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--mint); }
.oswin__status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 2s var(--ease-io) infinite;
}
.oswin__body { padding: 1.3rem 1.3rem 1.5rem; }
.oswin__prompt {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1rem;
  background: rgba(235, 242, 250, 0.05);
  border: 1px solid rgba(235, 242, 250, 0.12);
  border-radius: 10px;
  color: #e8efec;
  font-size: 0.78rem;
  min-height: 46px;
}
.oswin__chevron { color: var(--teal); }
.caret {
  width: 8px; height: 15px;
  background: var(--mint);
  display: inline-block;
  animation: caretblink 0.9s steps(2) infinite;
}
@keyframes caretblink { 50% { opacity: 0; } }
.oswin__response { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.resp-line {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.62rem 0.8rem;
  border-radius: 9px;
  background: rgba(235, 242, 250, 0.04);
  color: #c9d4d1;
  font-size: 0.84rem;
}
.resp-tag {
  flex: 0 0 auto;
  font-size: 0.56rem;
  color: var(--teal);
  border: 1px solid rgba(53, 200, 216, 0.35);
  border-radius: 5px;
  padding: 0.14rem 0.45rem;
  min-width: 64px;
  text-align: center;
}
.resp-line--ok { color: var(--mint); background: rgba(126, 240, 207, 0.06); }
.resp-line--ok .resp-tag { color: var(--mint); border-color: rgba(126, 240, 207, 0.4); }
.oswin__foot {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  padding: 0.8rem 1.3rem;
  border-top: 1px solid rgba(235, 242, 250, 0.09);
  color: #6d8180;
  font-size: 0.58rem;
}

/* step reveal (console lines & oswin) */
html.js [data-step] {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html.js [data-step].on { opacity: 1; transform: none; }

/* ═════════════ STATUS FEED ═════════════ */
.feed {
  display: flex; align-items: center;
  border-block: 1px solid var(--line);
  background: var(--paper);
  overflow: clip;
}
.feed__label {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 1.3rem;
  border-right: 1px solid var(--line);
  color: var(--teal-deep);
  letter-spacing: 0.24em;
  background: var(--paper);
  position: relative; z-index: 2;
}
.feed__label i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.6s var(--ease-io) infinite;
}
.feed__track { display: flex; width: max-content; animation: feed 42s linear infinite; }
.feed:hover .feed__track { animation-play-state: paused; }
@keyframes feed { to { transform: translateX(-50%); } }
.feed__group { display: flex; }
.feed__group span {
  white-space: nowrap; padding-inline: 1.7rem;
  color: var(--muted); font-size: 0.68rem; letter-spacing: 0.1em;
  padding-block: 1rem;
}
.feed__group b { color: var(--teal-deep); font-weight: 600; margin-right: 0.55rem; }

/* ═════════════ SECTION HEADS ═════════════ */
.sechead { max-width: 46rem; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.sechead__num {
  display: inline-block;
  color: var(--teal-deep);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 7px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 1.3rem;
}
.sechead__tag {
  color: var(--muted);
  letter-spacing: 0.26em;
  font-size: 0.62rem;
  margin-left: 0.8rem;
}
.sechead--dark .sechead__tag { color: #7d908f; }

/* split head w/ orbit visual */
.sechead--split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.sechead--split .sechead { margin-bottom: 0; }
.orbit {
  position: relative;
  width: 320px; height: 320px;
  margin-right: 1rem;
}
.orbit__ring {
  position: absolute;
  border: 1.5px dashed var(--line-strong);
  border-radius: 50%;
  animation: spin 44s linear infinite;
}
.orbit__ring--1 { inset: 0; }
.orbit__ring--2 { inset: 58px; animation-duration: 30s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinrev { to { transform: rotate(-360deg); } }
.orbit__node {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  transform: rotate(var(--a));
}
.orbit__ring--1 .orbit__node { transform: rotate(var(--a)) translateX(160px); }
.orbit__ring--2 .orbit__node { transform: rotate(var(--a)) translateX(102px); }
.orbit__unrot {
  display: inline-block;
  animation: spinrev 44s linear infinite;
}
.orbit__unrot--r { animation: spin 30s linear infinite; }
.orbit__chip {
  display: inline-block;
  transform: translate(-50%, -50%) rotate(var(--na));
  padding: 0.42rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--teal-deep);
  font-size: 0.6rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.orbit__chip--sm { padding: 0.32rem 0.62rem; font-size: 0.54rem; color: var(--muted); }
.orbit__core {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.orbit__core svg { width: 60px; height: 60px; }
.orbit__core rect { stroke: var(--teal); stroke-width: 7; }
@media (max-width: 1024px) {
  .sechead--split { grid-template-columns: 1fr; }
  .orbit { display: none; }
}
.sechead__title {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.06;
  text-wrap: balance;
  margin-bottom: 1.1rem;
}
.sechead__sub { color: var(--muted); font-size: 1.08rem; max-width: 38rem; text-wrap: pretty; }
.sechead--dark .sechead__title { color: #eef4fb; }
.sechead--dark .sechead__sub { color: #93a5a3; }
.sechead--dark .sechead__num { background: rgba(246,244,238,0.06); border-color: rgba(246,244,238,0.15); color: var(--teal-deep); }

/* ═════════════ VERSUS ═════════════ */
.versus {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.versus__vs {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--porcelain);
  border-radius: 50%;
  font-size: 0.66rem; letter-spacing: 0.1em;
  box-shadow: 0 0 0 6px var(--porcelain), var(--shadow-sm);
}
.vcard {
  border-radius: var(--r);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.vcard--before {
  background: transparent;
  border: 1.5px dashed var(--line-strong);
}
.vcard--after {
  background: var(--paper);
  border: 1px solid rgba(45, 212, 230, 0.35);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.vcard--after::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
}
.vcard__badge {
  display: inline-block;
  font-size: 0.6rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.vcard--before .vcard__badge { background: rgba(232, 240, 248, 0.09); color: var(--muted); }
.vcard--after .vcard__badge { background: var(--teal-soft); color: var(--teal-deep); }
.vcard h3 {
  font-family: var(--font-disp);
  font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.vcard--before h3 { color: var(--muted); }
.vcard__list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.7rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.vcard__list li + li { border-top: 1px solid var(--line); }
.vcard--before .vcard__list li::before {
  content: "×";
  position: absolute; left: 0.15rem; top: 0.5rem;
  color: #657789; font-weight: 600;
}
.vcard--after .vcard__list li { color: var(--ink); }
.vcard--after .vcard__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.55rem;
  color: var(--teal-deep); font-weight: 700; font-size: 0.85rem;
}

/* def row */
.defrow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
}
.defrow__item {
  padding: 1.5rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.defrow__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(24,179,199,0.4); }
.defrow__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--teal-soft);
  margin-bottom: 1rem;
}
.defrow__icon svg { width: 21px; height: 21px; stroke: var(--teal-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.defrow__item h4 { font-family: var(--font-disp); font-size: 1.08rem; font-weight: 650; margin-bottom: 0.4rem; }
.defrow__item p { color: var(--muted); font-size: 0.92rem; }

/* ═════════════ ANATOMY / STACK ═════════════ */
.stack { display: flex; flex-direction: column; gap: 1.2rem; }
.layer {
  position: sticky;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  display: grid;
  grid-template-columns: 110px 1.4fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
}
.layer:nth-child(1) { top: 100px; }
.layer:nth-child(2) { top: 124px; }
.layer:nth-child(3) { top: 148px; }
.layer:nth-child(4) { top: 172px; }
.layer__index {
  color: var(--teal-deep);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-right: 1px solid var(--line);
  padding-right: 1rem;
  justify-self: start;
  height: 100%;
  display: flex; align-items: center;
  letter-spacing: 0.3em;
}
.layer__title {
  font-family: var(--font-disp);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1;
}
.layer__tag { color: var(--teal-deep); margin: 0.55rem 0 0.9rem; font-size: 0.62rem; }
.layer__desc { color: var(--muted); font-size: 0.99rem; max-width: 34rem; }
.layer__visual { justify-self: stretch; }
.chipset {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem;
}
.chip-sm {
  text-align: center;
  padding: 0.62rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--porcelain);
  color: var(--muted);
  font-size: 0.6rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.layer:hover .chip-sm { border-color: rgba(45, 212, 230, 0.45); color: var(--teal-deep); background: var(--teal-soft); }

/* ═════════════ MODULES ═════════════ */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.mod {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  will-change: transform;
}
.mod:hover { box-shadow: var(--shadow-lg); border-color: rgba(45, 212, 230, 0.45); }
.mod__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--teal-soft), rgba(45, 212, 230, 0.04));
  border: 1px solid rgba(45, 212, 230, 0.25);
  margin-bottom: 1.2rem;
}
.mod__icon svg { width: 23px; height: 23px; stroke: var(--teal-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mod h3 { font-family: var(--font-disp); font-size: 1.35rem; font-weight: 650; margin-bottom: 0.5rem; }
.mod p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.1rem; }
.mod__meta { color: var(--teal-deep); font-size: 0.58rem; letter-spacing: 0.16em; }

/* ═════════════ CONSOLE (dark) ═════════════ */
.console {
  background: var(--ink-2);
  padding-block: clamp(5.5rem, 9vw, 9rem);
  position: relative;
  overflow: clip;
}
.console::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(235, 242, 250, 0.07) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 70%);
}
.term {
  position: relative;
  background: #04070d;
  border: 1px solid rgba(235, 242, 250, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  max-width: 860px;
  margin-inline: auto;
}
.term__bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(235, 242, 250, 0.08);
  color: #7d908f;
}
.term__bar .mono { font-size: 0.62rem; letter-spacing: 0.2em; }
.term__square { width: 9px; height: 9px; border-radius: 3px; background: var(--teal); }
.term__time { margin-left: auto; }
.term__body { padding: 1.6rem 1.7rem 1.9rem; font-size: 0.82rem; }
.term__body p { margin-bottom: 0.85rem; line-height: 1.7; }
.t-user { color: #eef4f1; font-weight: 500; }
.t-p { color: var(--teal); margin-right: 0.4rem; }
.t-sys { color: #9fb2af; padding-left: 1.1rem; }
.t-num { color: var(--teal); margin-right: 0.35rem; }
.t-dim { color: #5d716f; }
.t-ok { color: var(--teal-deep); }

.console__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(235, 242, 250, 0.1);
  border: 1px solid rgba(235, 242, 250, 0.1);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 980px;
  margin: clamp(3rem, 5vw, 4.5rem) auto 0;
}
.cstat { background: var(--ink-2); padding: 1.9rem 1.4rem; text-align: center; }
.cstat__num {
  font-family: var(--font-disp);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--teal-deep);
  margin-bottom: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.cstat__label { color: #7d908f; font-size: 0.6rem; letter-spacing: 0.16em; }

/* ═════════════ ROADMAP ═════════════ */
.roadmap {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
.roadmap__rail {
  position: absolute; top: 7px; left: 0; right: 0; height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.roadmap__rail span {
  display: block; height: 100%; width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  transition: width 0.2s linear;
}
.week { position: relative; padding-top: 2rem; }
.week__dot {
  position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--porcelain);
  border: 2px solid var(--line-strong);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.week.passed .week__dot {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(45, 212, 230, 0.15);
}
.week__label { color: var(--teal-deep); }
.week h3 {
  font-family: var(--font-disp);
  font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 0.4rem 0 0.5rem;
}
.week p { color: var(--muted); font-size: 0.94rem; }

.own {
  display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--r);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-sm);
}
.own__mark { flex: 0 0 auto; }
.own__mark svg { width: 64px; height: 64px; }
.own__mark rect { stroke: var(--teal); stroke-width: 7; }
.own h3 { font-family: var(--font-disp); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.own p { color: var(--muted); max-width: 44rem; }

/* ═════════════ FAQ ═════════════ */
.faq__cols {
  display: grid; grid-template-columns: 0.8fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.sechead--side { position: sticky; top: 7.5rem; margin-bottom: 0; }
.qa {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.qa[open] { border-color: rgba(45, 212, 230, 0.45); box-shadow: var(--shadow-sm); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.15rem 1.3rem;
  cursor: pointer;
  font-weight: 600; font-size: 1.02rem;
  list-style: none;
  transition: color 0.25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--teal-deep); }
.qa__icon {
  position: relative; flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--teal-soft);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--teal-deep);
  border-radius: 2px;
}
.qa__icon::before { width: 11px; height: 1.6px; transform: translate(-50%, -50%); }
.qa__icon::after { width: 1.6px; height: 11px; transform: translate(-50%, -50%); }
.qa[open] .qa__icon { transform: rotate(135deg); background: var(--teal); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: #fff; }
.qa__a { overflow: hidden; }
.qa__a p { color: var(--muted); padding: 0 3.4rem 1.3rem 1.3rem; font-size: 0.97rem; }

/* ═════════════ CTA ═════════════ */
.cta { padding-block: clamp(3rem, 6vw, 6rem) clamp(5rem, 8vw, 8rem); }
.cta__card {
  position: relative;
  background: #070d18;
  border: 1px solid rgba(45, 212, 230, 0.22);
  border-radius: 26px;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.6rem, 5vw, 5rem);
  text-align: center;
  overflow: clip;
  box-shadow: var(--shadow-lg), 0 0 90px rgba(45, 212, 230, 0.08);
}
.cta__ghost {
  position: absolute; right: -70px; bottom: -90px;
  width: 380px; height: 380px;
  pointer-events: none;
}
.cta__ghost rect { stroke: rgba(45, 212, 230, 0.12); stroke-width: 7; }
.cta__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(235, 242, 250, 0.09) 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, black, transparent 72%);
}
.cta__title {
  position: relative;
  font-family: var(--font-disp);
  color: #eef4fb;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  text-wrap: balance;
  margin: 1.4rem auto 1.2rem;
  max-width: 52rem;
}
.cta__sub {
  position: relative;
  color: #93a5a3; max-width: 34rem; margin: 0 auto 2.4rem;
  text-wrap: pretty;
}
.cta__row {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.cta__note { color: #6d8180; letter-spacing: 0.22em; font-size: 0.6rem; }

/* ═════════════ FOOTER ═════════════ */
.footer { border-top: 1px solid var(--line); background: var(--porcelain); }
.footer__top {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 2.2rem;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.7rem; }
.footer__links a { color: var(--muted); font-size: 0.92rem; transition: color 0.25s; }
.footer__links a:hover { color: var(--teal-deep); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 1.4rem 1.8rem;
  color: var(--muted); font-size: 0.6rem; letter-spacing: 0.16em;
}

/* ═════════════ REVEALS ═════════════ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
html.js [data-reveal].in { opacity: 1; transform: translateY(0); }

/* ═════════════ RESPONSIVE ═════════════ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__demo { max-width: 620px; }
  .defrow { grid-template-columns: 1fr 1fr; }
  .mods { grid-template-columns: 1fr 1fr; }
  .console__stats { grid-template-columns: 1fr 1fr; }
  .layer { grid-template-columns: 1fr; gap: 1.2rem; }
  .layer__index {
    writing-mode: horizontal-tb; transform: none;
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: 0 0 0.7rem; height: auto; width: 100%;
  }
  .chipset { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: block; }
  .faq__cols { grid-template-columns: 1fr; }
  .sechead--side { position: static; }
  .roadmap { grid-template-columns: 1fr; gap: 0; }
  .roadmap__rail { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .roadmap__rail span { width: 100%; height: 0%; transition: height 0.2s linear; }
  .week { padding: 0 0 2.2rem 2.2rem; }
  .week__dot { top: 0.3rem; }
  .week:last-child { padding-bottom: 0.5rem; }
}
@media (max-width: 620px) {
  body { font-size: 0.99rem; }
  .versus { grid-template-columns: 1fr; }
  .defrow { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr; }
  .console__stats { grid-template-columns: 1fr 1fr; }
  .own { flex-direction: column; align-items: flex-start; }
  .oswin { transform: none; }
  .hero__reqs span:first-child { width: 100%; }
}

/* ═════════════ MOTION SAFETY ═════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.js [data-reveal], html.js [data-step] { opacity: 1; transform: none; }
  .line__inner { transform: none; }
  .hl::after { transform: scaleX(1); }
}

/* screenshot/dev mode */
html.no-anim { scroll-behavior: auto !important; }
html.no-anim *, html.no-anim *::before, html.no-anim *::after {
  animation: none !important;
  transition: none !important;
}
html.no-anim [data-reveal], html.no-anim [data-step] { opacity: 1 !important; transform: none !important; }
html.no-anim .line__inner { transform: none !important; }
html.no-anim .hl::after { transform: scaleX(1) !important; }
html.no-anim .boot { display: none !important; }

/* midnight: accents inside the inverted (light) CTA card */
.cta__card .eyebrow--light { color: var(--teal-deep); }
.cta__card .hl-mint { color: var(--teal-deep); }
