/* ============================================================
   DOT404 cinematic website
   PRD tokens: white-first sections, Orbitron 600 brand-only,
   Inter body, purple sparingly, hairlines only when needed.
   The hero is the one cinematic (dark) moment — by design brief.
   ============================================================ */

/* Self-hosted fonts (latin subset, SIL OFL — see /fonts/OFL-*.txt).
   Same typefaces as Google Fonts (Inter, Orbitron) but served from
   this origin: no third-party requests, privacy page stays honest. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/orbitron-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --dot-white: #ffffff;
  --dot-offwhite: #fafaf8;
  --dot-ink: #111214;
  --dot-muted: #6b7280;
  --dot-line: #ededef;
  --dot-purple: #7c3aed;
  --dot-purple-soft: #f3eeff;
  --dot-green: #22c55e;
  --font-brand: "Orbitron", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dot-ink);
  background: var(--dot-white);
  -webkit-font-smoothing: antialiased;
}
img, canvas { display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- shared layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

.section { padding: 120px 0; }
.section--light { background: var(--dot-white); }
.section--soft { background: var(--dot-offwhite); }

.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dot-purple);
  margin: 0 0 16px;
}

.h2 {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  color: var(--dot-ink);
}
.h3 {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
}
.lede {
  font-size: 17px;
  color: var(--dot-muted);
  max-width: 640px;
  margin: 0 0 16px;
}
.body { font-size: 15px; color: var(--dot-muted); margin: 0; }

/* ---------- buttons (12px radius per PRD) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.2s ease;
}
.btn--big { padding: 15px 30px; font-size: 15.5px; }
.btn--small { padding: 8px 16px; font-size: 13.5px; }
.btn--solid {
  background: var(--dot-ink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(17, 18, 20, 0.18);
}
.btn--solid:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(17, 18, 20, 0.22); }
.btn--ghost {
  color: var(--dot-ink);
  border: 1px solid rgba(17, 18, 20, 0.16);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; border-color: rgba(17, 18, 20, 0.3); transform: translateY(-2px); }

/* ---------- download CTA: icon + purple/green click choreography ---------- */
.btn--dl { position: relative; }
.btn__dl-icon { flex: none; display: block; }

/* nav "Try DOT404" ↗ nudge on hover */
.btn__ext { flex: none; display: block; transition: transform 0.2s ease; }
.btn:hover .btn__ext { transform: translate(2px, -2px); }

.btn--dl:hover .btn__dl-arrow { animation: dl-bob 0.9s ease-in-out infinite; }
@keyframes dl-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2.5px); }
}

/* click: springy tilted pop + a bold purple→green shine sweeping the face */
.btn--dl.is-dl-anim {
  background-image: linear-gradient(
    110deg,
    rgba(124, 58, 237, 0) 26%,
    rgba(124, 58, 237, 0.45) 42%,
    rgba(34, 197, 94, 0.55) 54%,
    rgba(34, 197, 94, 0) 72%
  );
  background-size: 280% 100%;
  background-position: 120% 0;
  animation:
    dl-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    dl-sweep 0.85s cubic-bezier(0.45, 0, 0.2, 1);
  z-index: 1;
}
@keyframes dl-pop {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(0.94) rotate(-1.8deg); }
  55% { transform: scale(1.055) rotate(1.1deg); }
  80% { transform: scale(0.995) rotate(-0.3deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes dl-sweep {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

/* click: twin expanding rings — purple birth, green afterglow */
.btn--dl.is-dl-anim::before,
.btn--dl.is-dl-anim::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  pointer-events: none;
}
.btn--dl.is-dl-anim::before {
  border: 2px solid var(--dot-purple);
  animation: dl-ring 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn--dl.is-dl-anim::after {
  border: 2px solid var(--dot-green);
  animation: dl-ring2 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.14s backwards;
}
@keyframes dl-ring {
  0% { opacity: 0.95; transform: scale(1); border-color: var(--dot-purple); }
  55% { opacity: 0.45; border-color: var(--dot-green); }
  100% { opacity: 0; transform: scale(1.38); border-color: var(--dot-green); }
}
@keyframes dl-ring2 {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.55); }
}

/* click: the arrow dives into the tray (green impact flash), springs back */
.btn--dl.is-dl-anim .btn__dl-arrow { animation: dl-dive 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes dl-dive {
  0% { transform: translateY(0) scaleY(1); }
  26% { transform: translateY(3.6px) scaleY(0.85); }
  44% { transform: translateY(3.4px) scaleY(0.92); }
  72% { transform: translateY(-1.6px) scaleY(1.05); }
  100% { transform: translateY(0) scaleY(1); }
}
.btn--dl.is-dl-anim .btn__dl-tray { animation: dl-tray 0.9s ease; }
@keyframes dl-tray {
  0%, 18% { stroke: currentColor; stroke-width: 1.8; }
  30%, 52% { stroke: var(--dot-green); stroke-width: 2.7; }
  100% { stroke: currentColor; stroke-width: 1.8; }
}

/* click: purple/green confetti particles (spawns via site.js) */
.dl-p {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 2px;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 2;
}

/* honest note: fades/slides in on the first click */
.download__note {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.download__note.is-shown { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px clamp(20px, 4vw, 44px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--dot-line);
}
.nav__brand {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--dot-ink);
  transition: color 0.3s ease;
}
.nav.is-solid .nav__brand { color: var(--dot-ink); }
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--dot-muted);
  transition: color 0.3s ease;
}
.nav.is-solid .nav__links { color: var(--dot-muted); }
.nav__links a:hover { color: var(--dot-ink); }
.nav.is-solid .nav__links a:hover { color: var(--dot-ink); }
.nav__cta { flex: none; }

/* grouped nav menus (Product / Technology / Resources) */
.nav__group { position: relative; }
.nav__parent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.nav__chev {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.nav__group:hover .nav__chev,
.nav__group:focus-within .nav__chev { transform: translateY(0) rotate(225deg); }
.nav__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  min-width: 232px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid var(--dot-line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(17, 18, 20, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav__menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav__group:hover .nav__menu,
.nav__group:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--dot-muted);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav__menu a:hover,
.nav__menu a:focus-visible { background: var(--dot-purple-soft); color: var(--dot-ink); }
.nav__plain { color: inherit; }

/* mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid rgba(17, 18, 20, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 1.6px;
  border-radius: 2px;
  background: var(--dot-ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--dot-purple);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  /* Apple-inspired soft light atmosphere: white key light, whisper of violet,
     neutral depth — no neon, no clutter. */
  background:
    radial-gradient(110% 85% at 76% 44%, rgba(124, 58, 237, 0.10) 0%, rgba(124, 58, 237, 0) 58%),
    radial-gradient(90% 70% at 12% 8%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #fbfbfd 0%, #f4f4f7 52%, #eeeef2 100%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 65% at 26% 46%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 26%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 140px clamp(24px, 5vw, 72px) 120px;
  text-align: left;
}
.hero__kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dot-muted);
  margin: 0 0 18px;
  animation: fadeUp 0.9s ease both 0.15s;
}
.hero__title {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: 0.05em;
  color: var(--dot-ink);
  margin: 0 0 22px;
  animation: fadeUp 0.9s ease both 0.3s;
}
.hero__sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--dot-muted);
  max-width: 540px;
  margin: 0 0 36px;
  animation: fadeUp 0.9s ease both 0.45s;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease both 0.6s;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(17, 18, 20, 0.28);
  border-radius: 14px;
  transform: translateX(-50%);
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: rgba(17, 18, 20, 0.55);
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes scrollCue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(14px); opacity: 0.15; }
}

/* ---------- demo moments (borderless, alternating) ---------- */
.moment {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: 96px;
}
.moment--flip .moment__copy { order: 2; }
.moment--flip .moment__stage { order: 1; }
.moment__index {
  display: block;
  font-family: var(--font-brand);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--dot-purple);
  margin-bottom: 14px;
}
.moment__stage {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  overflow: hidden;
}
.moment__stage--ground { background: radial-gradient(80% 90% at 30% 20%, #efe9ff 0%, #f7f5ff 55%, var(--dot-offwhite) 100%); }
.moment__stage--teach { background: radial-gradient(80% 90% at 70% 30%, #eafbf0 0%, #f2fdf6 55%, var(--dot-offwhite) 100%); }
.moment__stage--voice { background: radial-gradient(70% 80% at 50% 40%, var(--dot-purple-soft) 0%, var(--dot-offwhite) 75%); flex-direction: column; gap: 18px; }

/* mock window for grounding demo */
.mock {
  position: relative;
  width: min(84%, 420px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(17, 18, 20, 0.1);
  padding: 18px 20px 26px;
}
.mock__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mock__bar i { width: 9px; height: 9px; border-radius: 999px; background: var(--dot-line); }
.mock__row { display: flex; gap: 12px; margin-bottom: 12px; }
.mock__row u { flex: 1; height: 12px; border-radius: 6px; background: var(--dot-offwhite); text-decoration: none; }
.mock__row u.w60 { flex: 0.6; }
.mock__row u.w40 { flex: 0.4; }
.mock__row u.w70 { flex: 0.7; }
.mock__target {
  position: relative;
  margin-top: 18px;
  height: 92px;
  border-radius: 12px;
  background: var(--dot-purple-soft);
}
.mock__arrow {
  position: absolute;
  right: -34px;
  top: -46px;
  width: 200px;
  height: 76px;
  stroke: var(--dot-purple);
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.4));
  animation: arrowNudge 2.4s ease-in-out infinite;
}
.mock__ring {
  position: absolute;
  inset: 8px;
  border: 2.5px solid var(--dot-purple);
  border-radius: 10px;
  animation: ringPulse 2.4s ease-in-out infinite;
}
.mock__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dot-purple);
}
@keyframes arrowNudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, 5px); }
}
@keyframes ringPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* teaching mock */
.teach {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(92%, 460px);
}
.teach__bot {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 26px;
  background-color: #0e0f10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: auto;
  filter: drop-shadow(0 8px 18px rgba(17, 18, 20, 0.18));
  animation: floatY 3.6s ease-in-out infinite;
}
.teach__bot--purple { background-image: url("./assets/buddy-1.png"); }
.teach__bot--green { background-image: url("./assets/buddy-2.png"); animation-delay: -1.8s; }
.teach__panel {
  flex: 1;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 18px 50px rgba(17, 18, 20, 0.1);
}
.teach__step {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dot-green);
}
.teach__text { margin: 8px 0 14px; font-size: 14.5px; color: var(--dot-ink); }
.teach__bar { height: 5px; border-radius: 999px; background: var(--dot-offwhite); overflow: hidden; }
.teach__bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--dot-purple); animation: stepGrow 4s ease-in-out infinite; }
@keyframes stepGrow { 0% { width: 12%; } 70% { width: 82%; } 100% { width: 92%; } }

/* voice wave */
.wave { display: flex; align-items: center; gap: 5px; height: 90px; }
.wave i {
  width: 5px;
  height: 18px;
  border-radius: 999px;
  background: var(--dot-purple);
  animation: waveBeat 1.15s ease-in-out infinite;
}
.wave i:nth-child(3n) { animation-duration: 0.9s; }
.wave i:nth-child(4n) { animation-duration: 1.35s; }
.wave i:nth-child(odd) { animation-delay: -0.35s; }
.wave i:nth-child(5n) { animation-delay: -0.7s; background: #a78bfa; }
.wave__caption { font-size: 14.5px; color: var(--dot-muted); margin: 0; }
@keyframes waveBeat { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(2.6); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- features (no cards, no borders) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 56px);
  margin-top: 72px;
}
.feature__icon {
  width: 30px;
  height: 30px;
  stroke: var(--dot-purple);
  margin-bottom: 18px;
}
.feature__title {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--dot-ink);
}

/* ---------- privacy ---------- */
.privacy__list { list-style: none; margin: 40px 0 0; padding: 0; }
.privacy__list li {
  font-size: 15.5px;
  color: var(--dot-muted);
  padding: 22px 0;
  border-top: 1px solid var(--dot-line);
}
.privacy__list li:last-child { border-bottom: 1px solid var(--dot-line); }
.privacy__list strong { color: var(--dot-ink); font-weight: 500; }

/* ---------- company ---------- */
.company .lede:last-child { margin-bottom: 0; }

/* ---------- faq ---------- */
.faq { margin-top: 56px; }
.faq details { border-top: 1px solid var(--dot-line); }
.faq details:last-child { border-bottom: 1px solid var(--dot-line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__chev {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--dot-muted);
  border-bottom: 2px solid var(--dot-muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] .faq__chev { transform: rotate(225deg); }
.faq details p { margin: 0 0 24px; max-width: 640px; }

/* ---------- download (light finale, soft green atmosphere) ---------- */
.download {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  text-align: left;
  /* Cohesive with the hero: same soft light base, complementary green key. */
  background:
    radial-gradient(100% 85% at 72% 46%, rgba(34, 197, 94, 0.16) 0%, rgba(34, 197, 94, 0) 60%),
    radial-gradient(90% 70% at 10% 6%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #f7faf8 0%, #f1f5f2 55%, #edf2ee 100%);
}
.download__inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.download__stage {
  position: relative;
  height: min(46vh, 440px);
  min-height: 320px;
}
.download__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.download__meta { font-size: 13px; color: var(--dot-muted); margin: 20px 0 0; letter-spacing: 0.04em; }
.download__note { font-size: 13.5px; color: var(--dot-ink); margin: 14px auto 0 0; max-width: 420px; }

/* ---------- footer (grouped site map, same quiet styling) ---------- */
.footer { background: var(--dot-white); border-top: 1px solid var(--dot-line); padding: 56px 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(auto-fit, minmax(132px, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
}
.footer__brand { display: block; font-family: var(--font-brand); font-weight: 600; letter-spacing: 0.1em; font-size: 15px; }
.footer__tag { font-size: 13.5px; color: var(--dot-muted); margin: 10px 0 0; max-width: 220px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__heading {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dot-ink);
  margin-bottom: 4px;
}
.footer__col a { font-size: 13.5px; color: var(--dot-muted); transition: color 0.15s ease; }
.footer__col a:hover { color: var(--dot-purple); }
.footer__base {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--dot-line);
  font-size: 12.5px;
  color: var(--dot-muted);
}
.footer__baselinks { display: flex; gap: 18px; margin-left: auto; }
.footer__baselinks a:hover { color: var(--dot-purple); }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* Mobile: links move into a toggleable panel under the nav. */
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 10px clamp(20px, 4vw, 44px) 18px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--dot-line);
    box-shadow: 0 18px 44px rgba(17, 18, 20, 0.08);
    font-size: 15px;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__group, .nav__plain { padding: 6px 0; }
  .nav__plain { display: block; padding-top: 10px; }
  .nav__parent { font-weight: 500; color: var(--dot-ink); }
  .nav__menu {
    position: static;
    min-width: 0;
    margin-top: 6px;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__menu::before { display: none; }
  .nav__menu a { white-space: normal; padding: 7px 10px; }
  .moment { grid-template-columns: 1fr; }
  .moment--flip .moment__copy { order: 1; }
  .moment--flip .moment__stage { order: 2; }
  .moment__stage { min-height: 260px; }
  .section { padding: 88px 0; }
  .teach__bot { width: 56px; height: 56px; border-radius: 20px; }

  /* Hero: copy centered up top, DOT Mini owns the space beneath it. */
  .hero { justify-content: center; }
  .hero__content {
    max-width: 640px;
    margin: 0 auto;
    padding: 108px 24px 44vh;
    text-align: center;
  }
  .hero__actions { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__veil {
    background:
      radial-gradient(85% 60% at 50% 34%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 72%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 30%);
  }

  /* Download: DOT Mini 2 above the copy, still prominent. */
  .download__inner { grid-template-columns: 1fr; text-align: center; }
  .download__stage { order: -1; height: min(64vw, 340px); min-height: 230px; }
  .download__note { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .mock__arrow { right: -14px; width: 150px; }
  .footer__copy { margin-left: 0; }
  .hero__content { padding-top: 96px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__kicker, .hero__title, .hero__sub, .hero__actions { animation: none; }
  .mock__arrow, .mock__ring, .wave i, .teach__bot, .teach__bar i, .hero__scroll span { animation: none; }
  .btn { transition: none; }
  .btn__ext { transition: none; }
  .btn--dl:hover .btn__dl-arrow,
  .btn--dl.is-dl-anim,
  .btn--dl.is-dl-anim .btn__dl-arrow,
  .btn--dl.is-dl-anim .btn__dl-tray,
  .btn--dl.is-dl-anim::before,
  .btn--dl.is-dl-anim::after { animation: none; }
  .btn--dl.is-dl-anim { background-image: none; }
  .download__note { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   Subpages (generated): page header, breadcrumbs, prose, status,
   related links, download CTA strip. Shares the homepage tokens.
   ============================================================ */

.page-head { padding: 116px 0 0; }
.page-head + .section { padding-top: 64px; }
.crumbs { margin-bottom: 26px; font-size: 13px; color: var(--dot-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--dot-line); }
.crumbs a:hover { color: var(--dot-purple); }
.crumbs [aria-current] { color: var(--dot-ink); }
.page__title {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: var(--dot-ink);
  margin: 0 0 18px;
}
.page__lede { font-size: clamp(16px, 2vw, 18px); max-width: 680px; margin-bottom: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

/* status chips: purple only for "live in builds", quiet for the rest */
.status {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.status--live { background: rgba(34, 197, 94, 0.12); color: #157f3f; }
.status--pre { background: var(--dot-purple-soft); color: var(--dot-purple); }
.status--planned,
.status--soon { background: var(--dot-offwhite); color: var(--dot-muted); border: 1px solid var(--dot-line); }

/* draft notice (legal/contact/placeholder pages) */
.draft {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--dot-purple-soft);
  font-size: 14.5px;
  color: var(--dot-ink);
  max-width: 680px;
}
.draft strong { font-weight: 500; }
.draftline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* long-form typography */
.prose h2 {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--dot-ink);
  margin: 52px 0 16px;
}
.prose > :first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 500; color: var(--dot-ink); margin: 34px 0 10px; }
.prose p { font-size: 15.5px; line-height: 1.7; color: var(--dot-muted); margin: 0 0 18px; }
.prose strong { color: var(--dot-ink); font-weight: 500; }
.prose a:not(.btn) { color: var(--dot-ink); border-bottom: 1px solid var(--dot-line); transition: border-color 0.15s ease, color 0.15s ease; }
.prose a:not(.btn):hover { color: var(--dot-purple); border-color: var(--dot-purple); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { font-size: 15.5px; line-height: 1.7; color: var(--dot-muted); margin-bottom: 9px; }
.prose li::marker { color: var(--dot-purple); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9em;
  background: var(--dot-offwhite);
  border: 1px solid var(--dot-line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--dot-ink);
}
.prose .note {
  background: var(--dot-offwhite);
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 14.5px;
}

/* numbered pipeline */
.prose ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 24px; }
.prose ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 22px;
}
.prose ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--dot-purple-soft);
  color: var(--dot-purple);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
}

/* spec list */
.prose dl.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 0; margin: 4px 0 22px; }
.prose dl.kv dt {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dot-ink);
  padding: 12px 24px 12px 0;
  border-top: 1px solid var(--dot-line);
}
.prose dl.kv dd { font-size: 14.5px; color: var(--dot-muted); margin: 0; padding: 12px 0; border-top: 1px solid var(--dot-line); }
.prose dl.kv dt:first-of-type, .prose dl.kv dd:first-of-type { border-top: 0; }

/* tables */
.tablewrap { overflow-x: auto; margin: 0 0 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--dot-line); vertical-align: top; }
.prose th { color: var(--dot-ink); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; }
.prose td { color: var(--dot-muted); }
.prose td code { font-size: 12.5px; }

/* changelog + roadmap lines */
.prose ul.changelog, .prose ul.roadmap { list-style: none; padding: 0; margin: 4px 0 24px; }
.prose ul.changelog li, .prose ul.roadmap li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--dot-line);
}
.prose ul.changelog li:last-child, .prose ul.roadmap li:last-child { border-bottom: 1px solid var(--dot-line); }
.prose ul.changelog .status, .prose ul.roadmap .status { flex: none; }

/* FAQ on its own page */
.faq--page { margin-top: 8px; }
.faq--page summary { font-size: 16.5px; }

/* related pages */
.related .eyebrow { margin-bottom: 8px; }
.related__list { list-style: none; margin: 24px 0 0; padding: 0; }
.related__list li { padding: 18px 0; border-top: 1px solid var(--dot-line); }
.related__list li:last-child { border-bottom: 1px solid var(--dot-line); }
.related__list a { font-size: 16px; font-weight: 500; color: var(--dot-ink); }
.related__list a:hover { color: var(--dot-purple); }
.related__list span { display: block; font-size: 14px; color: var(--dot-muted); margin-top: 4px; max-width: 640px; }

/* download CTA strip */
.cta-strip {
  background:
    radial-gradient(90% 120% at 78% 50%, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0) 60%),
    linear-gradient(180deg, #f7faf8 0%, #eff4f0 100%);
  border-top: 1px solid var(--dot-line);
  padding: 72px 0;
  overflow-x: clip;
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  min-width: 0;
}
.cta-strip .h3 { margin-bottom: 8px; max-width: 16ch; overflow-wrap: break-word; }
.cta-strip .body { max-width: 520px; overflow-wrap: break-word; }
.cta-strip__inner > div { min-width: 0; }

@media (max-width: 900px) {
  .page-head { padding-top: 104px; }
  .page-head + .section { padding-top: 48px; }
  .prose dl.kv { grid-template-columns: 1fr; }
  .prose dl.kv dt { padding-bottom: 0; border-top: 1px solid var(--dot-line); }
  .prose dl.kv dd { border-top: 0; padding-top: 4px; }
  .prose dl.kv dt:first-of-type { border-top: 1px solid var(--dot-line); }
  .cta-strip__inner { text-align: left; }
}
@media (max-width: 560px) {
  .prose ol.steps li { padding-left: 44px; }
  .prose ul.changelog li, .prose ul.roadmap li { gap: 8px; }
}

/* ============================================================
   Generated-page design components (light cinematic, PRD tokens).
   Reuses --dot-* tokens, .btn, .eyebrow, .h2/.h3/.lede/.body,
   .moment/.mock/.wave/.teach stages, .status, .prose.
   One occasional near-black band per page max (white dominates).
   ============================================================ */

/* page hero band: glance facts + visual, right after .page-head */
.hero-band { padding: 76px 0; border-bottom: 1px solid var(--dot-line); overflow: hidden; }
.hero-band--purple { background: linear-gradient(180deg, #f5efff 0%, #faf8ff 55%, var(--dot-white) 100%); }
.hero-band--green { background: linear-gradient(180deg, #e9faf0 0%, #f5fdf8 55%, var(--dot-white) 100%); }
.hero-band--soft { background: var(--dot-offwhite); }
.hero-band__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.glance { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 15px; }
.glance li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--dot-muted); max-width: 520px; }
.glance li strong { color: var(--dot-ink); font-weight: 500; }
.glance__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dot-purple); margin-top: 7px; }
.glance__dot--green { background: var(--dot-green); }

/* floating bot illustration (transform/opacity only) */
.art { margin: 0; position: relative; display: flex; justify-content: center; align-items: center; min-height: 280px; }
.art::before {
  content: ""; position: absolute; width: min(330px, 78vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, rgba(124, 58, 237, 0) 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.art--green::before { background: radial-gradient(circle, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0) 65%); }
.art img { width: min(290px, 66vw); height: auto; position: relative; z-index: 1; animation: artFloat 5.2s ease-in-out infinite; }
@keyframes artFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* feature / fact cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.cards--two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--dot-white); border: 1px solid var(--dot-line); border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; gap: 0; }
.card__glyph {
  width: 38px; height: 38px; border-radius: 11px; background: var(--dot-purple-soft); color: var(--dot-purple);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex: none;
}
.card__glyph svg { width: 21px; height: 21px; }
.card__glyph--green { background: #e7f8ee; color: #15803d; }
.card h3 { font-size: 16.5px; font-weight: 500; color: var(--dot-ink); margin: 0 0 10px; }
.card p { font-size: 14.5px; line-height: 1.65; color: var(--dot-muted); margin: 0; }
.card p + p { margin-top: 10px; }
.card .more-link { margin-top: 16px; align-self: flex-start; }
.card .status { margin-top: 16px; align-self: flex-start; }

/* honest-number stat band (verified figures only) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.stat b { display: block; font-family: var(--font-brand); font-weight: 600; font-size: clamp(24px, 3vw, 33px); letter-spacing: 0.03em; color: var(--dot-ink); line-height: 1.2; }
.stat span { display: block; font-size: 13.5px; color: var(--dot-muted); margin-top: 8px; max-width: 220px; }

/* timeline (changelog / roadmap) */
.timeline { list-style: none; margin: 36px 0 0; padding: 0; }
.timeline > li { position: relative; margin: 0 0 0 7px; padding: 0 0 30px 32px; border-left: 1px solid var(--dot-line); }
.timeline > li:last-child { padding-bottom: 4px; }
.timeline > li::before {
  content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--dot-purple); box-shadow: 0 0 0 4px var(--dot-purple-soft);
}
.timeline--soon > li::before, .timeline > li.timeline--soon::before { background: var(--dot-muted); box-shadow: 0 0 0 4px var(--dot-offwhite); }
.timeline h3 { font-size: 16.5px; font-weight: 500; color: var(--dot-ink); margin: 0 0 8px; }
.timeline p { font-size: 14.5px; color: var(--dot-muted); margin: 0 0 12px; max-width: 640px; }

/* documentation anchor index */
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.toc a { padding: 9px 17px; border: 1px solid var(--dot-line); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--dot-muted); background: var(--dot-white); transition: border-color 0.15s ease, color 0.15s ease; }
.toc a:hover { color: var(--dot-ink); border-color: var(--dot-purple); }

/* keyboard keys */
.kbd {
  font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.86em; white-space: nowrap;
  background: var(--dot-offwhite); border: 1px solid var(--dot-line); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 8px; color: var(--dot-ink);
}

/* never-lists (honest boundaries) */
.xlist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.xlist li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.65; color: var(--dot-muted); max-width: 680px; }
.xlist li::before {
  content: "+"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--dot-purple-soft); color: var(--dot-purple); font-size: 17px; font-weight: 500; line-height: 1;
  display: flex; align-items: center; justify-content: center; transform: rotate(45deg);
}
.xlist li strong { color: var(--dot-ink); font-weight: 500; }

/* request chain visual (you - gateway - provider) */
.chain { display: flex; align-items: stretch; gap: 0; margin: 30px 0 0; flex-wrap: wrap; }
.chain__node {
  flex: 1 1 0; min-width: 150px; background: var(--dot-white); border: 1px solid var(--dot-line);
  border-radius: 14px; padding: 16px 18px; font-size: 14px; color: var(--dot-muted);
}
.chain__node strong { display: block; color: var(--dot-ink); font-weight: 500; font-size: 14.5px; margin-bottom: 4px; }
.chain__arrow { align-self: center; padding: 0 12px; color: var(--dot-purple); font-size: 20px; flex: none; }

/* occasional near-black band (download finale moment) */
.band--ink { background: var(--dot-ink); color: #fff; }
.band--ink .h2, .band--ink .h3 { color: #fff; }
.band--ink .lede, .band--ink .body { color: rgba(255, 255, 255, 0.74); }
.band--ink .eyebrow { color: #a78bfa; }
.band--ink .glance li { color: rgba(255, 255, 255, 0.74); }
.band--ink .glance li strong { color: #fff; }
.band--ink .download__meta { color: rgba(255, 255, 255, 0.6); }
.band--ink .download__note { color: #fff; background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 12px 16px; }
.btn--light { background: #fff; color: var(--dot-ink); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.btn--light:hover { background: var(--dot-purple-soft); transform: translateY(-2px); }
.band--ink .art::before { background: radial-gradient(circle, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0) 65%); }

/* generic learn-more link (homepage + subpages) */
.more-link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500;
  color: var(--dot-ink); border-bottom: 1px solid var(--dot-line); padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.more-link:hover { color: var(--dot-purple); border-color: var(--dot-purple); }
.more-link::after { content: ""; width: 7px; height: 7px; flex: none; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); }
.feature__link { margin-top: 16px; font-size: 14px; }
.moment__copy .more-link { margin-top: 18px; }
.home-links { margin-top: 22px; display: flex; gap: 26px; flex-wrap: wrap; }

/* FAQ group headings on the FAQ page */
.faq-group { font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dot-purple); margin: 44px 0 6px; }
.faq-group:first-of-type { margin-top: 32px; }
.faq--page { margin-top: 0; }

@media (max-width: 900px) {
  .hero-band { padding: 60px 0; }
  .hero-band__grid { grid-template-columns: 1fr; gap: 36px; }
  .art { order: -1; min-height: 0; }
  .art img { width: min(210px, 58vw); }
  .cards, .cards--two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .chain { flex-direction: column; }
  .chain__arrow { transform: rotate(90deg); padding: 8px 0; align-self: flex-start; }
}

@media (max-width: 560px) {
  .hero-band { padding: 52px 0; }
  .stats { gap: 18px; }
  .stat b { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .art img { animation: none; }
}
