/* GLB Viewer
   Visual direction: porcelain, graphite and restrained spectral colour.
   The model is the artwork. Interface elements stay quiet and precise. */

:root {
  color-scheme: only light;
  --paper: #f2f1ed;
  --paper-bright: #fbfaf7;
  --ink: #202321;
  --ink-soft: #555c58;
  --muted: #858b86;
  --line: rgba(35, 43, 39, 0.13);
  --line-strong: rgba(35, 43, 39, 0.23);
  --surface: rgba(255, 255, 255, 0.58);
  --surface-solid: #fbfaf7;
  --accent: #7e8c89;
  --accent-dark: #465b56;
  --iridescent: linear-gradient(112deg, #d9cce9 0%, #b9d8d4 28%, #f0e4c9 54%, #c9d5e9 76%, #e8cbd7 100%);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content: 1180px;
  --ease-out: cubic-bezier(.2,.75,.25,1);
  --motion: 700ms var(--ease-out);
  --shadow-soft: 0 24px 80px rgba(42, 48, 44, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.012em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; }
button { color: inherit; }
::selection { background: #c9d8d2; color: #202321; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.hidden { display: none !important; }

/* Navigation */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(242, 241, 237, .78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 300ms ease, background 300ms ease, box-shadow 300ms ease;
}
.nav-wrap::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background: linear-gradient(90deg, #b9d8d4, #c9d5e9, #e8cbd7);
  transform: scaleX(0); transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  .nav-wrap::after { animation: page-progress linear both; animation-timeline: scroll(root block); }
  @keyframes page-progress { to { transform: scaleX(1); } }
}
.nav-wrap.is-scrolled {
  border-color: var(--line);
  background: rgba(248, 247, 243, .92);
  box-shadow: 0 8px 28px rgba(40, 46, 42, .035);
}
nav {
  width: min(var(--content), calc(100% - 64px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 11px; font-size: .98rem; font-weight: 650; letter-spacing: -.045em; white-space: nowrap; }
.nav-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--iridescent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.nav-mark span { width: 10px; height: 10px; border: 1.5px solid #4c5d58; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.nav-links a, .footer-col a, .footer-links a {
  color: var(--ink-soft); font-size: .82rem; font-weight: 500;
  transition: color 220ms ease;
}
.nav-links a { position: relative; padding: 8px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px;
  background: var(--accent-dark); transform: scaleX(0); transform-origin: right;
  transition: transform 320ms var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 18px; padding: 11px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  transition: color 240ms ease, background 240ms ease, border-color 240ms ease, transform 240ms var(--ease-out);
}
.nav-cta span { font-size: 1rem; transition: transform 240ms var(--ease-out); }
.nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-bright); transform: translateY(-2px); }
.nav-cta:hover span { transform: translate(2px,-2px); }
.mobile-menu-btn { display: none; }

/* Hero */
.hero {
  position: relative; min-height: min(790px, calc(100svh - 78px)); min-height: clamp(650px, 84svh, 850px);
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
  padding: 100px max(32px, calc((100vw - var(--content)) / 2)) 92px;
  background: transparent;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; width: min(62vw, 850px); aspect-ratio: 1; right: -8%; top: 50%;
  transform: translateY(-50%); border-radius: 50%;
  background: conic-gradient(from 20deg, rgba(217,204,233,.14), rgba(185,216,212,.26), rgba(240,228,201,.22), rgba(201,213,233,.2), rgba(232,203,215,.16), rgba(217,204,233,.14));
  filter: blur(48px); opacity: .8;
}
.hero-orbit { position: absolute; border: 1px solid rgba(94,111,104,.12); border-radius: 50%; transform: rotate(-24deg); }
.hero-orbit-one { width: min(58vw, 760px); height: min(28vw, 370px); right: -5%; top: 24%; }
.hero-orbit-two { width: min(49vw, 640px); height: min(22vw, 290px); right: 1%; top: 31%; transform: rotate(32deg); border-color: rgba(172,151,178,.14); }
.hero-3d { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-3d canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 5; width: min(600px, 54%); padding-bottom: 24px; }
.hero-eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent-dark); font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; line-height: 1.4; text-transform: uppercase;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #839b8d; box-shadow: 0 0 0 4px rgba(131,155,141,.14); }
.hero h1 {
  max-width: 650px; margin: 30px 0 24px;
  font-size: clamp(3.5rem, 7.3vw, 6.7rem); font-weight: 520;
  letter-spacing: -.085em; line-height: .99;
}
.hero h1 em, .section-header h2 em, .community-card h3 em {
  font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.075em;
}
.hero h1 em {
  display: block; color: transparent; background: linear-gradient(105deg, #687e78 4%, #9d8ba8 43%, #879eae 72%, #b39b7d 100%);
  -webkit-background-clip: text; background-clip: text; padding-bottom: .08em;
}
.hero-content > p { max-width: 430px; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.8; margin: 0 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 50px; display: inline-flex; justify-content: center; align-items: center; gap: 22px;
  padding: 0 21px; border: 1px solid transparent; border-radius: 999px;
  font-size: .82rem; font-weight: 620; letter-spacing: -.01em; cursor: pointer;
  transition: transform 280ms var(--ease-out), background 280ms ease, color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(110deg, rgba(255,255,255,.2), rgba(255,255,255,.02) 45%, rgba(255,255,255,.22));
  transform: translateX(-100%); transition: transform 550ms var(--ease-out), opacity 250ms ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::before { opacity: 1; transform: translateX(0); }
.btn:active { transform: translateY(0) scale(.98); }
.btn span { font-size: 1rem; transition: transform 260ms var(--ease-out); }
.btn:hover span { transform: translate(3px,-2px); }
.btn-primary { color: #f8f8f3; background: #29322e; box-shadow: 0 9px 24px rgba(34,45,39,.12); }
.btn-primary:hover { background: #465a52; box-shadow: 0 14px 30px rgba(34,45,39,.17); }
.btn-secondary { background: rgba(255,255,255,.45); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--paper-bright); border-color: rgba(70,91,86,.5); }
.btn-text { min-height: 44px; padding: 0 2px; color: var(--ink-soft); background: transparent; }
.btn-text:hover { color: var(--accent-dark); }
.hero-footnote {
  position: absolute; z-index: 6; left: max(32px, calc((100vw - var(--content)) / 2)); right: max(32px, calc((100vw - var(--content)) / 2)); bottom: 30px;
  display: flex; justify-content: space-between; gap: 20px; color: var(--muted);
  font-size: .61rem; font-weight: 650; letter-spacing: .14em;
}
.hero-loading, .hero-error { position: absolute; z-index: 8; right: 8%; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: .78rem; }
.hero-loading { display: flex; align-items: center; gap: 12px; }
.hero-spinner { width: 15px; height: 15px; border: 1px solid rgba(70,91,86,.25); border-top-color: var(--accent-dark); border-radius: 50%; animation: spin 850ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-error { display: none; max-width: 250px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.75); }
.hero-error h3 { font-size: .9rem; margin: 0 0 8px; }
.hero-error p { margin: 0; font-size: .78rem; }

/* Shared sections */
.section {
  width: min(var(--content), calc(100% - 64px)); margin: 0 auto;
  padding: clamp(100px, 12vw, 166px) 0;
}
.section-header { max-width: 650px; margin-bottom: 54px; }
.section-header h2 {
  margin: 20px 0 18px; font-size: clamp(2.8rem, 5.2vw, 5rem);
  font-weight: 520; letter-spacing: -.075em; line-height: 1.02;
}
.section-header h2 em { color: #788b83; }
.section-header p { max-width: 510px; color: var(--ink-soft); font-size: 1rem; line-height: 1.8; }
.download-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); align-items: center; gap: clamp(40px, 10vw, 150px); }
.download-section .section-header { margin: 0; }
.download-panel {
  padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(255,255,255,.78);
  border-radius: var(--radius-lg); background: rgba(255,255,255,.48);
  box-shadow: var(--shadow-soft); backdrop-filter: blur(18px);
}
.os-detected { margin: 0 0 22px; color: var(--ink-soft); font-size: .83rem; line-height: 1.65; }
.download-main { width: 100%; justify-content: space-between; }
.download-other { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.download-other label { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.download-other select {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); transition: border-color 220ms ease, box-shadow 220ms ease;
  border-radius: 999px; color: var(--ink); background: var(--paper-bright); outline-offset: 3px;
}
.download-other select:hover { border-color: var(--accent-dark); }
.download-other .btn { min-height: 48px; }
.download-note { margin: 20px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.6; }

/* Live viewer */
.demo-section { width: min(1320px, calc(100% - 64px)); }
.demo-section .section-header { margin-left: max(0px, calc((100% - var(--content)) / 2)); }
.demo-card {
  position: relative; padding: clamp(14px, 2vw, 24px); border: 1px solid rgba(255,255,255,.78);
  border-radius: var(--radius-lg); background: #e6e6e1; box-shadow: var(--shadow-soft);
}
.demo-viewport {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 300px;
  border-radius: calc(var(--radius-lg) - 8px); overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(215,223,216,.95), transparent 42%),
    linear-gradient(145deg, #e7e8e3, #d8dcd6);
}
.demo-viewport canvas { display: block; width: 100%; height: 100%; }
.demo-viewport.drag-over { outline: 2px solid #82998e; outline-offset: -8px; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 6px 2px; }
.demo-hint { display: flex; align-items: center; gap: 11px; margin: 0; color: var(--ink-soft); font-size: .75rem; }
.demo-hint span { width: 3px; height: 3px; border-radius: 50%; background: #9ca59e; }
.demo-file-picker { flex-shrink: 0; }
.demo-file-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); border: 0;
}
.demo-file-picker:focus-visible, #demo-file-input:focus-visible + .demo-controls .demo-file-picker { outline: 2px solid var(--accent-dark); outline-offset: 4px; }

/* Feature story */
.features-section { padding-top: 70px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.why-card {
  min-height: 230px; padding: 30px 26px 24px 0; border-bottom: 1px solid var(--line);
  transition: transform 350ms var(--ease-out);
}
.why-card + .why-card { padding-left: 26px; border-left: 1px solid var(--line); }
.why-card:hover { transform: translateY(-5px); }
.why-card h3 { margin: 0 0 14px; font-size: 1.03rem; font-weight: 620; letter-spacing: -.035em; }
.why-card p { max-width: 240px; margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.8; }

/* Roadmap */
.roadmap-section { padding-top: 80px; }
.roadmap-preview { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 30px 0 26px; }
.roadmap-phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.phase { min-height: 210px; padding: 10px 22px 20px 0; }
.phase + .phase { padding-left: 22px; border-left: 1px solid var(--line); }
.phase .kicker { display: block; margin-bottom: 32px; color: #87958d; font-size: .65rem; }
.phase h4 { margin: 0 0 10px; font-size: .98rem; font-weight: 620; letter-spacing: -.035em; }
.phase p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.75; }
.roadmap-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 24px; color: var(--accent-dark); font-size: .8rem; font-weight: 650; transition: gap 250ms var(--ease-out); }
.roadmap-link:hover { gap: 25px; }

/* Open source close */
.community-section { padding-top: 90px; padding-bottom: 130px; }
.community-card {
  position: relative; overflow: hidden; padding: clamp(42px, 8vw, 100px);
  border-radius: var(--radius-lg); background: #e4e7e1; text-align: center; isolation: isolate;
}
.community-card::before {
  content: ""; position: absolute; z-index: -1; width: 65%; aspect-ratio: 1; left: 50%; top: 50%;
  transform: translate(-50%,-50%); border-radius: 50%; filter: blur(55px); opacity: .75;
  background: conic-gradient(from 10deg, #d9cce9, #b9d8d4, #f0e4c9, #c9d5e9, #e8cbd7, #d9cce9);
}
.community-card .kicker { justify-content: center; }
.community-card h3 { margin: 22px auto 16px; font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 520; letter-spacing: -.075em; line-height: 1.03; }
.community-card h3 em { color: #687e78; }
.community-card p { max-width: 460px; margin: 0 auto 28px; color: var(--ink-soft); font-size: .95rem; }
.community-actions { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Footer */
footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.22); padding: 55px 32px 28px; }
.footer-grid { width: min(var(--content), 100%); margin: 0 auto 55px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.footer-col h4 { margin: 0 0 18px; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 11px; }
.footer-col a, .footer-links a { font-size: .78rem; }
.footer-col a:hover, .footer-links a:hover { color: var(--ink); }
.footer-bottom {
  width: min(var(--content), 100%); margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: var(--muted); font-size: .7rem;
}
.footer-bottom p { margin: 0; }
.footer-links { display: flex; gap: 22px; }

/* Scroll reveals. The hero model uses its own scroll-linked transform. */
.js-motion [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 850ms var(--ease-out), transform 850ms var(--ease-out); }
.js-motion [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.js-motion .why-card, .js-motion .phase { transition-delay: var(--reveal-delay, 0ms); }
@supports (animation-timeline: view()) {
  .scroll-marker { animation: section-arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes section-arrive { from { opacity: .35; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero { min-height: 730px; }
  .hero-content { width: min(570px, 62%); }
  .hero h1 { font-size: clamp(3.5rem, 8vw, 5.7rem); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-card:nth-child(3) { border-left: 0; padding-left: 0; }
  .roadmap-phases { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .phase:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  nav { width: calc(100% - 40px); min-height: 68px; gap: 14px; }
  .nav-cta { margin-left: auto; padding: 9px 13px; font-size: .73rem; gap: 9px; }
  .mobile-menu-btn {
    width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer;
  }
  .mobile-menu-btn span { width: 14px; height: 1px; background: var(--ink); transition: transform 250ms ease; }
  .mobile-menu-btn:hover { background: var(--paper-bright); border-color: var(--line-strong); }
  .mobile-menu-btn:active { transform: scale(.96); }
  .mobile-menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .mobile-menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 24px 18px; border-bottom: 1px solid var(--line);
    background: rgba(248,247,243,.97); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .hero { min-height: 760px; min-height: max(720px, 90svh); align-items: flex-start; padding: 100px 28px 88px; }
  .hero-content { width: min(100%, 560px); padding: 0; }
  .hero h1 { max-width: 530px; margin-top: 26px; font-size: clamp(3.3rem, 12vw, 5.3rem); }
  .hero-content > p { max-width: 400px; font-size: .98rem; }
  .hero-3d { opacity: .78; }
  .hero-bg::before { width: 110vw; right: -44%; top: 68%; }
  .hero-orbit-one { width: 105vw; height: 50vw; right: -45%; top: 55%; }
  .hero-orbit-two { width: 90vw; height: 44vw; right: -30%; top: 62%; }
  .hero-footnote { left: 28px; right: 28px; bottom: 22px; font-size: .55rem; }
  .hero-footnote span:last-child { text-align: right; }
  .hero-loading, .hero-error { top: auto; right: 24px; bottom: 80px; transform: none; }
  .section, .demo-section { width: calc(100% - 48px); padding: 90px 0; }
  .download-section { display: block; }
  .download-section .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .demo-section .section-header { margin-left: 0; }
  .demo-viewport { min-height: 240px; aspect-ratio: 4 / 3; }
  .demo-controls { align-items: flex-start; flex-direction: column; }
  .demo-hint { flex-wrap: wrap; row-gap: 7px; font-size: .69rem; }
  .demo-file-picker { width: 100%; }
  .features-section { padding-top: 35px; }
  .why-card { min-height: 200px; padding: 24px 18px 20px 0; }
  .why-card + .why-card { padding-left: 18px; }
  .why-card:nth-child(3) { padding-left: 0; }
  .roadmap-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase { min-height: 190px; }
  .phase:nth-child(3), .phase:nth-child(5) { padding-left: 0; border-left: 0; }
  .phase:nth-child(4) { padding-left: 18px; border-left: 1px solid var(--line); }
  .community-section { padding-top: 50px; padding-bottom: 90px; }
  .community-card { padding: 56px 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  nav { width: calc(100% - 32px); gap: 8px; }
  .nav-brand { min-width: 0; gap: 7px; font-size: .86rem; }
  .nav-mark { flex: 0 0 27px; width: 27px; height: 27px; }
  .nav-cta { min-width: 0; padding: 8px 10px; font-size: .64rem; gap: 6px; }
  .mobile-menu-btn { flex: 0 0 38px; width: 38px; height: 38px; }
  .hero { padding: 86px 22px 82px; }
  .hero h1 { font-size: clamp(3rem, 13.5vw, 4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-actions .btn-primary { width: 100%; }
  .hero-footnote { left: 22px; right: 22px; font-size: .49rem; letter-spacing: .1em; }
  .section, .demo-section { width: calc(100% - 40px); padding: 76px 0; }
  .download-panel { padding: 22px 18px; }
  .download-other { grid-template-columns: 1fr; }
  .download-other .btn { width: 100%; }
  .demo-card { padding: 10px; border-radius: 20px; }
  .demo-viewport { min-height: 210px; border-radius: 14px; }
  .demo-controls { padding: 16px 5px 4px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card, .why-card + .why-card, .why-card:nth-child(3) { min-height: 0; padding: 22px 0; border-left: 0; }
  .roadmap-phases { grid-template-columns: 1fr; }
  .phase, .phase + .phase, .phase:nth-child(4) { min-height: 0; padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .phase .kicker { margin-bottom: 12px; }
  .community-card h3 { font-size: 2.8rem; }
  .community-actions { flex-direction: column; gap: 8px; }
  .community-actions .btn-primary { width: 100%; }
  .footer-grid { gap: 28px 18px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}


/* Privacy page */
.privacy-main { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 88px 0 130px; }
.privacy-nav { width: min(var(--content), calc(100% - 64px)); }
.privacy-nav-links { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 36px); }
.privacy-nav-links a { color: var(--ink-soft); font-size: .82rem; }
.privacy-nav-links a:hover, .privacy-nav-links a[aria-current="page"] { color: var(--ink); }
.privacy-hero { max-width: 850px; padding: 35px 0 62px; }
.privacy-hero h1 { margin: 25px 0 22px; font-size: clamp(3.2rem, 7vw, 6.2rem); line-height: .98; letter-spacing: -.085em; font-weight: 520; }
.privacy-hero h1 em { color: transparent; background: linear-gradient(105deg, #687e78 4%, #9d8ba8 43%, #879eae 72%, #b39b7d 100%); -webkit-background-clip: text; background-clip: text; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.privacy-lede { max-width: 690px; margin: 0; color: var(--ink-soft); font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.85; }
.privacy-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.privacy-callout { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 34px 38px; border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(255,255,255,.68), rgba(228,231,225,.72)); box-shadow: var(--shadow-soft); }
.privacy-callout-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--iridescent); color: #43544e; font-size: .78rem; font-weight: 700; }
.privacy-callout h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 2.5vw, 1.8rem); letter-spacing: -.045em; }
.privacy-callout p { max-width: 760px; margin: 0; color: var(--ink-soft); line-height: 1.8; }
.privacy-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(44px, 8vw, 112px); align-items: start; margin-top: 86px; }
.privacy-aside { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 13px; padding-top: 8px; }
.privacy-aside .kicker { margin-bottom: 9px; }
.privacy-aside a { color: var(--ink-soft); font-size: .78rem; line-height: 1.5; transition: color 180ms ease, transform 180ms ease; }
.privacy-aside a:hover { color: var(--accent-dark); transform: translateX(3px); }
.privacy-content section { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.privacy-content section:last-child { margin-bottom: 0; border-bottom: 0; }
.privacy-number { color: #87958d; font-size: .66rem; font-weight: 700; letter-spacing: .14em; }
.privacy-content h2 { max-width: 680px; margin: 14px 0 18px; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.12; letter-spacing: -.06em; font-weight: 540; }
.privacy-content p, .privacy-content li { color: var(--ink-soft); font-size: .94rem; line-height: 1.9; }
.privacy-content p { margin: 0 0 17px; }
.privacy-content ul { padding-left: 22px; margin: 12px 0 20px; }
.privacy-content li { padding-left: 5px; margin: 8px 0; }
.privacy-content strong { color: var(--ink); font-weight: 650; }
.privacy-content code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.5); color: var(--accent-dark); font-size: .86em; }
.privacy-content a:not(.btn) { color: var(--accent-dark); text-decoration: underline; text-decoration-color: rgba(70,91,86,.35); text-underline-offset: 3px; }
.privacy-content a:not(.btn):hover { text-decoration-color: currentColor; }
.privacy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.privacy-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 30px max(32px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.privacy-footer > a { color: var(--ink); font-weight: 650; }
.privacy-footer div { display: flex; gap: 22px; }
.privacy-footer a:hover { color: var(--accent-dark); }
@media (max-width: 760px) {
  .privacy-main { width: calc(100% - 48px); padding: 58px 0 90px; }
  .privacy-nav { width: calc(100% - 40px); min-height: 68px; gap: 14px; flex-wrap: wrap; padding: 12px 0; }
  .privacy-nav-links { order: 3; width: 100%; justify-content: space-between; gap: 10px; padding: 8px 0 3px; }
  .privacy-nav-links a { font-size: .72rem; }
  .privacy-nav .nav-cta { margin-left: auto; font-size: .72rem; padding: 8px 12px; }
  .privacy-layout { grid-template-columns: 1fr; gap: 38px; margin-top: 56px; }
  .privacy-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.35); }
  .privacy-aside .kicker { grid-column: 1 / -1; }
  .privacy-callout { grid-template-columns: 48px 1fr; gap: 16px; padding: 25px 22px; }
  .privacy-callout-mark { width: 42px; height: 42px; }
  .privacy-footer { flex-wrap: wrap; padding: 26px 24px; }
}
@media (max-width: 480px) {
  .privacy-main { width: calc(100% - 40px); padding-top: 42px; }
  .privacy-hero { padding-bottom: 42px; }
  .privacy-hero h1 { font-size: clamp(2.85rem, 13vw, 4rem); }
  .privacy-meta { flex-direction: column; gap: 7px; }
  .privacy-callout { grid-template-columns: 1fr; }
  .privacy-aside { grid-template-columns: 1fr 1fr; padding: 16px; }
  .privacy-content section { padding-bottom: 34px; margin-bottom: 34px; }
  .privacy-content p, .privacy-content li { font-size: .9rem; }
  .privacy-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .privacy-actions .btn-primary { width: 100%; }
  .privacy-footer { flex-direction: column; align-items: flex-start; }
}

/* Privacy navigation: use the same accessible mobile menu behaviour as the home page. */
@media (max-width: 760px) {
  .privacy-nav { position: relative; }
  .privacy-nav .mobile-menu-btn {
    flex: 0 0 40px; width: 40px; height: 40px; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; border: 1px solid var(--line); border-radius: 50%;
    background: rgba(255,255,255,.45); cursor: pointer;
  }
  .privacy-nav .mobile-menu-btn span {
    width: 14px; height: 1px; background: var(--ink);
    transition: transform 250ms ease;
  }
  .privacy-nav .mobile-menu-btn[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .privacy-nav .mobile-menu-btn[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
  .privacy-nav .privacy-nav-links {
    position: absolute; z-index: 30; top: calc(100% + 1px); left: 0; right: 0;
    order: initial; display: flex; flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: 0; width: 100%; padding: 8px 24px 18px;
    border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px;
    background: rgba(248,247,243,.98); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }
  .privacy-nav .privacy-nav-links.is-open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  }
  .privacy-nav .privacy-nav-links a {
    padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .82rem;
  }
  .privacy-nav .privacy-nav-links a:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-nav .privacy-nav-links, .privacy-nav .mobile-menu-btn span { transition: none; }
}


/* Page-wide 3D object, fixed behind content and driven by total page scroll. */
.page-model-layer {
  position: fixed; inset: 0; z-index: 0; width: 100%;
  height: 100vh; height: 100svh; overflow: hidden;
  pointer-events: none; opacity: .38;
}
.page-model-layer canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
body > main, body > footer, body > .privacy-main, body > .privacy-footer {
  position: relative; z-index: 1;
}
.nav-wrap { z-index: 100; }

@media (prefers-reduced-motion: no-preference) {
  .nav-wrap { animation: nav-drop-in 850ms cubic-bezier(.2,.75,.25,1) both; }
  .hero-content > .hero-eyebrow,
  .hero-content > h1,
  .hero-content > p,
  .hero-content > .hero-actions {
    opacity: 0; animation: hero-fly-in 1050ms cubic-bezier(.16,1,.3,1) both;
  }
  .hero-content > .hero-eyebrow { animation-delay: 120ms; }
  .hero-content > h1 { animation-delay: 240ms; }
  .hero-content > p { animation-delay: 390ms; }
  .hero-content > .hero-actions { animation-delay: 520ms; }
  @keyframes nav-drop-in {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes hero-fly-in {
    from { opacity: 0; transform: translateX(-76px); }
    to { opacity: 1; transform: translateX(0); }
  }
}
@media (max-width: 760px) { .page-model-layer { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .page-model-layer { opacity: .16; } }


/* The hero should not paint over the fixed, page-wide model. */
.hero { background: transparent !important; }
.hero-bg { display: none !important; }

/* Reliable privacy navigation: links are hidden until the toggle is opened. */
@media (max-width: 760px) {
  .privacy-nav { position: relative; }
  .privacy-nav .mobile-menu-btn {
    display: flex !important; flex: 0 0 40px; width: 40px; height: 40px;
    align-items: center; justify-content: center; flex-direction: column;
    gap: 5px; position: relative; z-index: 40; cursor: pointer;
  }
  .privacy-nav .privacy-nav-links {
    display: flex !important; position: absolute !important;
    top: calc(100% + 1px); left: 0; right: 0; z-index: 35;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    width: 100%; margin: 0; padding: 8px 24px 18px;
    background: rgba(248,247,243,.98); border: 1px solid var(--line);
    border-top: 0; border-radius: 0 0 18px 18px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }
  .privacy-nav .privacy-nav-links.is-open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
  }
  .privacy-nav .privacy-nav-links a {
    display: block; padding: 13px 0; border-bottom: 1px solid var(--line);
  }
  .privacy-nav .privacy-nav-links a:last-child { border-bottom: 0; }
}
@media (min-width: 761px) {
  .privacy-nav .mobile-menu-btn { display: none !important; }
  .privacy-nav .privacy-nav-links {
    position: static; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; border: 0; background: transparent;
  }
}


/* Live demo preview and accessible FAQ */
.demo-viewport { position: relative; min-height: 360px; background: #111318; }
.demo-viewport canvas { display: block; width: 100%; height: 100%; }
.demo-preview-status { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: #d9ddd9; text-align: center; font-size: .82rem; pointer-events: none; }
.demo-preview-status[hidden] { display: none; }
.demo-preview-spinner { width: 17px; height: 17px; flex: 0 0 17px; border: 2px solid rgba(255,255,255,.22); border-top-color: #d9ddd9; border-radius: 50%; animation: demo-spin .8s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo-viewport.drag-over { outline: 2px dashed #a7b9af; outline-offset: -8px; }
.faq-section { padding-top: 80px; }
.faq-list { width: min(850px, 100%); margin: 34px auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 22px 42px 22px 2px; color: var(--ink); font-size: clamp(.95rem, 1.5vw, 1.08rem); font-weight: 620; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--accent-dark); font-size: 1.35rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { max-width: 740px; margin: 0; padding: 0 42px 22px 2px; color: var(--ink-soft); font-size: .91rem; line-height: 1.85; }
@media (max-width: 760px) { .demo-viewport { min-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .demo-preview-spinner { animation: none; } }


/* FAQ refresh: editorial split layout with quiet, tactile accordion cards. */
.faq-section { padding-top: clamp(76px, 10vw, 132px); padding-bottom: clamp(76px, 10vw, 132px); }
.faq-layout { display: grid; grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr); gap: clamp(38px, 8vw, 112px); align-items: start; }
.faq-intro { position: sticky; top: 112px; max-width: 390px; }
.faq-intro h2 { margin: 18px 0 20px; font-size: clamp(2.3rem, 4.7vw, 4.25rem); line-height: .99; letter-spacing: -.065em; }
.faq-intro > p { max-width: 340px; color: var(--ink-soft); font-size: .98rem; line-height: 1.8; }
.faq-contact { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--ink); font-size: .82rem; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.faq-contact span { color: var(--accent-dark); transition: transform 180ms ease; }
.faq-contact:hover span { transform: translate(2px,-2px); }
.faq-list { width: 100%; margin: 0; border: 0; display: grid; gap: 10px; }
.faq-item { overflow: hidden; border: 1px solid rgba(37,42,37,.10); border-radius: 15px; background: rgba(255,255,255,.52); transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.faq-item:hover { border-color: rgba(37,42,37,.22); background: rgba(255,255,255,.78); }
.faq-item[open] { border-color: rgba(37,42,37,.2); background: #fff; box-shadow: 0 12px 34px rgba(32,36,31,.055); }
.faq-item summary { display: grid; grid-template-columns: 34px minmax(0,1fr) 28px; align-items: center; gap: 13px; min-height: 76px; padding: 16px 20px; font-size: .96rem; font-weight: 620; line-height: 1.45; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-number { color: var(--ink-soft); opacity: .62; font-size: .68rem; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.faq-question { color: var(--ink); }
.faq-toggle { position: relative; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; background: var(--ink); transform: translate(-50%,-50%); transition: transform 180ms ease; }
.faq-toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%,-50%) rotate(0); }
.faq-answer { padding: 0 60px 22px 67px; }
.faq-answer p { max-width: 650px; margin: 0; padding: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.85; }
@media (max-width: 800px) {
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .faq-intro { position: static; max-width: 560px; }
  .faq-intro h2 br { display: none; }
}
@media (max-width: 520px) {
  .faq-section { padding-top: 68px; padding-bottom: 68px; }
  .faq-item summary { grid-template-columns: 25px minmax(0,1fr) 26px; gap: 9px; min-height: 70px; padding: 14px 13px; font-size: .9rem; }
  .faq-answer { padding: 0 48px 19px 47px; }
  .faq-answer p { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) { .faq-item, .faq-contact span, .faq-toggle::before, .faq-toggle::after { transition: none; } }
