/* =========================================================
   Quavium AI — site styles
   Dark #07090a · ink #edefec · accent #8be36b · Geist
   ========================================================= */
:root {
  --bg: #07090a;
  --bg-2: #0d1110;
  --line: rgba(237, 239, 236, 0.09);
  --line-2: rgba(237, 239, 236, 0.16);
  --ink: #edefec;
  --ink-2: #a3aaa6;
  --ink-3: #6c7470;
  --accent: #8be36b;
  --sans: "Geist", Inter, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h5 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
p, dl, dd, ol { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.accent { color: var(--accent); }
.label { font-size: 13px; color: var(--accent); margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 6px;
  font: 500 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: #a3ec88; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.nav.is-scrolled { background: rgba(7, 9, 10, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo svg { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line-2); background: none; border-radius: 6px; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.nav__burger span:first-child { top: 14px; } .nav__burger span:last-child { top: 22px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: grid; padding: 8px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(84vh, 780px); display: flex; align-items: center; padding: 80px 0 96px; border-bottom: 1px solid var(--line); }
.hero::before { /* one faint, static wash of colour */
  content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 227, 107, .07), transparent);
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; }
.hero__title { font-size: clamp(44px, 6.6vw, 88px); line-height: 1.02; letter-spacing: -0.04em; }
.hero__sub { margin: 28px 0 36px; max-width: 520px; font-size: 19px; color: var(--ink-2); }

/* ---------- view statement ---------- */
.view { padding: 160px 0; border-bottom: 1px solid var(--line); }
.view__text { max-width: 1040px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; text-wrap: balance; }
.view__text::before { content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin-bottom: 36px; }
.view__muted { color: var(--ink-3); }

/* ---------- sections ---------- */
.section { padding: 112px 0; border-bottom: 1px solid var(--line); }
.section--band { background: var(--bg-2); }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
.split__head h2 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -0.03em; max-width: 14ch; }
.split__head .h2--sm { font-size: 24px; }
.split__lede { margin-top: 16px; color: var(--ink-2); max-width: 34ch; }
.split h3 { font-size: 18px; letter-spacing: -0.01em; }
.split p { color: var(--ink-2); }

/* what we do: ruled rows */
.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row h3 { padding-top: 1px; }

/* how we work: columns divided by rules */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.cols > div { padding: 26px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.cols > div + div { padding-left: 28px; border-left: 1px solid var(--line); }

/* working with us: timeline */
.timeline-wrap { margin-top: 96px; }
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line-2); }
.timeline li { position: relative; padding-top: 32px; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.timeline h3::before { content: counter(step) ". "; color: var(--ink-3); font-weight: 400; }

/* security: definition list */
.deflist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line-2); }
.deflist div { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.deflist dt { font-weight: 500; }
.deflist dd { color: var(--ink-2); }

/* faq */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; color: var(--ink-2); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--ink); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }

/* closing */
.closing { padding: 120px 0; }
.closing__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.035em; max-width: 18ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin-top: 14px; color: var(--ink-3); }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__cols div { display: grid; gap: 10px; align-content: start; color: var(--ink-2); }
.footer__cols h5 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 4px; letter-spacing: 0; }
.footer__cols a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.legal { padding: 72px 0 120px; }
.legal .container { max-width: 720px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.035em; }
.legal__date { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.legal h2 { margin-top: 44px; font-size: 21px; }
.legal p, .legal li { margin-top: 14px; color: var(--ink-2); }
.legal ul { padding-left: 20px; margin: 0; }
.legal a { color: var(--accent); }
.footer--legal .footer__inner { align-items: center; }
.footer--legal p { margin: 0; color: var(--ink-3); }
.footer--legal .footer__links { display: flex; gap: 20px; color: var(--ink-2); }

/* ---------- reveal: one subtle fade per element ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-block; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__head h2 { max-width: none; }
  .timeline-wrap { margin-top: 72px; }
}
@media (max-width: 720px) {
  .section, .view, .closing { padding: 80px 0; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .cols, .timeline, .deflist { grid-template-columns: 1fr; }
  .cols > div, .cols > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .timeline { gap: 24px; }
  .timeline::before { display: none; }
  .hero__sub { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
