/* =========================================================================
   Vonar AI — design system
   Near-black ground, white type, hairline structure. Flat colour only: the
   five brand colours live in the logo mark; one of them (cyan) marks labels.
   No gradients anywhere.
   ========================================================================= */

:root {
  --bg: #050608;
  --bg-2: #0a0b0e;
  --bg-3: #101217;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f4f5f7;
  --ink-2: rgba(244, 245, 247, 0.66);
  --ink-3: rgba(244, 245, 247, 0.42);
  --b1: #4864F3; --b2: #56CCF2; --b3: #847BF2; --b4: #B263E4; --b5: #D72CBC;
  --accent: var(--b2);
  --font-display: "Geist", "Inter Tight", "Inter", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 4px;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --track: -0.045em;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.no-motion { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--track); margin: 0; line-height: 1.0; text-wrap: balance; }
h3, h4 { letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 1000; }
.skip:focus { left: 8px; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
::selection { background: rgba(244, 245, 247, 0.9); color: #050608; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, transform .45s var(--ease);
  will-change: transform;
}
.hdr.is-scrolled { background: rgba(5, 6, 8, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.hdr.is-hidden { transform: translateY(calc(-100% - 2px)); }
.hdr .wrap { display: flex; align-items: center; justify-content: flex-start; height: 72px; gap: 24px; transition: height .3s var(--ease); }
.hdr .nav { margin-left: auto; }
.motion-btn { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid currentColor; padding: 4px 0; white-space: nowrap; margin-left: -6px; transition: color .2s; }
.motion-btn:hover { color: var(--ink); }
.motion-btn[hidden] { display: none; }
.hdr.is-scrolled .wrap { height: 60px; }
.hdr-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity .3s; pointer-events: none; }
.hdr.is-scrolled .hdr-progress { opacity: .6; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo-bars { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.logo-bars i { display: block; width: 3px; border-radius: 2px; }
.logo-bars i:nth-child(1) { height: 12px; background: var(--b1); }
.logo-bars i:nth-child(2) { height: 20px; background: var(--b2); }
.logo-bars i:nth-child(3) { height: 9px; background: var(--b3); }
.logo-bars i:nth-child(4) { height: 16px; background: var(--b4); }
.logo-bars i:nth-child(5) { height: 11px; background: var(--b5); }
.nav { display: flex; align-items: center; gap: 2px; position: relative; }
.nav a:not(.btn) { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; position: relative; z-index: 1; transition: color .2s; }
.nav a:not(.btn):hover, .nav a.is-active, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn { margin-left: 14px; }
.nav-indicator { position: absolute; left: 0; top: 50%; height: 34px; translate: 0 -50%; width: 0; border-radius: 999px; border: 1px solid var(--line-strong); opacity: 0; pointer-events: none; transition: transform .38s var(--ease), width .38s var(--ease), opacity .25s; }
.nav a.btn-primary, .mnav a.btn-primary { color: #050608; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 14px; letter-spacing: -0.01em;
  border: 1px solid var(--line-strong); color: var(--ink); background: transparent;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--ink); color: #050608; border-color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-sm { padding: 9px 15px; font-size: 13px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--ink); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.mnav {
  position: fixed; inset: 0; z-index: 60; background: rgba(5, 6, 8, 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mnav.open { opacity: 1; pointer-events: auto; }
.mnav a { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.mnav a[aria-current="page"] { color: var(--accent); }
.mnav a.btn { font-size: 16px; font-family: var(--font-body); font-weight: 500; letter-spacing: -0.01em; margin-top: 8px; }
.mnav .close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; font-size: 30px; line-height: 1; font-weight: 300; }
@media (max-width: 860px) { .nav { display: none; } .burger { display: inline-flex; } }
/* the header takes the burger early enough that the nav, the Pause control and the CTA never crowd */
@media (max-width: 1000px) { .hdr .nav { display: none; } .hdr .burger { display: inline-flex; } .motion-btn, .motion-btn[hidden] + .burger { margin-left: auto; } }
.nav a, .logo { white-space: nowrap; }

/* ---------- Sections ---------- */
.kicker { color: var(--accent); margin-bottom: 0; display: block; }

/* Process: numbered rows */
.steps-rail { display: none; }
.steps { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 360px); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; position: relative; }
.step .idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.step .idx::before { content: "0"; }
.step .when { color: var(--ink-3); margin: 0; grid-column: 3; grid-row: 1; justify-self: start; }
.step h3 { font-size: 22px; margin: 0; grid-column: 2; grid-row: 1; }
.step p { color: var(--ink-2); font-size: 15px; grid-column: 2; margin-top: 6px; max-width: 46ch; }
@media (max-width: 960px) { .step { grid-template-columns: 60px 1fr; } .step .when { grid-column: 2; grid-row: auto; } .step p { grid-column: 2; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.faq h2 { font-size: clamp(32px, 3.8vw, 52px); }
.faq .kicker { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--ink-3); transition: transform .3s var(--ease); flex: 0 0 auto; font-weight: 300; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 60ch; font-size: 15px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Closing */
.close { position: relative; overflow: clip; padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.close-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.close::before { display: none; }
.close .wrap { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; }
.close .kicker { margin-bottom: 22px; }
.close h2 { font-size: clamp(40px, 7vw, 108px); max-width: 12ch; letter-spacing: -0.06em; line-height: .95; }
.close p { margin-top: 26px; color: var(--ink-2); font-size: 16px; max-width: 46ch; }
.close .cta { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.close .direct { margin-top: 24px; color: var(--ink-3); font-size: 13px; }
.close .direct a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding: 44px 0 32px; background: var(--bg); }
.ftr .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ftr h4 { font-size: 10.5px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a { color: var(--ink-2); font-size: 14px; } .ftr a:hover { color: var(--ink); }
.ftr .about p { color: var(--ink-2); font-size: 14px; margin-top: 14px; max-width: 320px; }
.ftr .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 12px; }
@media (max-width: 860px) { .ftr .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ftr .wrap { grid-template-columns: 1fr; } }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; } .reveal[data-delay="2"] { transition-delay: .12s; } .reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; } .reveal[data-delay="5"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.no-motion .reveal { opacity: 1; transform: none; transition: none; }

/* A single, quiet entrance; the brand mark never reacts to hover or scroll. */
.logo-bars i { animation: logo-arrive 700ms var(--ease) both; transform-origin: center; }
.logo-bars i:nth-child(2) { animation-delay: 60ms; }
.logo-bars i:nth-child(3) { animation-delay: 120ms; }
.logo-bars i:nth-child(4) { animation-delay: 180ms; }
.logo-bars i:nth-child(5) { animation-delay: 240ms; }
@keyframes logo-arrive { from { transform: scaleY(.25); opacity: .3; } to { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .logo-bars i { animation: none; }
}
.no-motion .logo-bars i { animation: none; }
