/* ============================================================================
   AION MARKETING SITE — site.css
   Forest Noir aesthetic. Builds on top of ../colors_and_type.css.
   Sticks to brand tokens. Adds layout primitives + scroll/animation utilities.
   ========================================================================== */

@import url("./colors_and_type.css");

/* ── RESET ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--bg-1);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent-bg); color: var(--text-1); }

/* Hide scrollbar but keep scroll */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── LAYOUT PRIMITIVES ───────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* Section spacing */
section { position: relative; }
.s-pad { padding: 120px 0; }
.s-pad-sm { padding: 80px 0; }
.s-pad-lg { padding: 160px 0; }

@media (max-width: 720px) {
  .s-pad { padding: 80px 0; }
  .s-pad-sm { padding: 56px 0; }
  .s-pad-lg { padding: 96px 0; }
}

/* ── TYPE UTILITIES (extends colors_and_type.css) ───────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-muted { color: var(--text-3); }

.h-display {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -2.5px;
  color: var(--text-1);
  font-feature-settings: "ss01";
}
.h-display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.h-section {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: var(--text-1);
}
.h-section em { font-style: italic; color: var(--accent); font-weight: 400; }

.h-card {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-1);
  line-height: 1.3;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 60ch;
}

.muted { color: var(--text-3); }
.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-2);
  letter-spacing: 0;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #07100D;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-1);
}
.btn-ghost:hover { border-color: var(--text-3); background: var(--bg-card); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  height: auto;
}
.btn-link svg { transition: transform .25s ease; }
.btn-link:hover svg { transform: translateX(3px); }

/* ── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,16,13,0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border-subtle);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.3px; }
.nav-brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: color .2s ease;
  white-space: nowrap;
}
.float-chip, .float-chip * { white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text-1); }
.nav-cta { font-size: 13px; }

@media (max-width: 880px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  background: var(--bg-0);
  color: var(--text-2);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p { margin-top: 16px; max-width: 28ch; color: var(--text-3); font-size: 13px; line-height: 1.55; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-1);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-3); font-size: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--text-1); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ── REVEAL / SCROLL ANIMATIONS ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(0.16, 1, 0.3, 1), transform .9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(0.16,1,0.3,1), transform .8s cubic-bezier(0.16,1,0.3,1); }
.reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 400ms; }
.reveal-stagger.in > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 480ms; }
.reveal-stagger.in > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 560ms; }

/* Char-by-char reveal */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1);
}
.split-line.in .split-char { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .split-char { opacity: 1; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── CARDS ───────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card-hover { transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.card-hover:hover { border-color: var(--text-3); transform: translateY(-2px); }
.card-glow {
  position: relative; overflow: hidden;
}
.card-glow::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(125,184,154,0.08), transparent 40%);
  pointer-events: none; opacity: 0; transition: opacity .3s ease;
}
.card-glow:hover::after { opacity: 1; }

/* ── PHONE FRAME (site marketing version) ────────────────────────────── */
.phone {
  width: 320px;
  height: 660px;
  border-radius: 44px;
  background: #000;
  padding: 12px;
  box-shadow: 0 50px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(125,184,154,0.08);
  position: relative;
}
.phone::before {
  content: ""; position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #000; border-radius: 20px; z-index: 5;
}
.phone-inner {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
}

/* ── DIVIDERS ────────────────────────────────────────────────────────── */
.hr-soft { height: 1px; background: var(--border-subtle); border: 0; }
.hr-faint { height: 1px; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); border: 0; }

/* ── SCROLL PROGRESS BAR (top of page) ───────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent);
  z-index: 200;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .15s linear;
}

/* ── PAGE INTRO ──────────────────────────────────────────────────────── */
.page-hero { padding: 200px 0 100px; }
.page-hero .eyebrow { display: block; margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 24px; }
.page-hero .lede { margin-bottom: 0; }

/* ── GRID HELPERS ────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── BACKGROUND TEXTURES (very subtle) ──────────────────────────────── */
.bg-radial::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(125,184,154,0.06), transparent 60%),
    radial-gradient(900px 500px at 80% 100%, rgba(168,212,188,0.04), transparent 60%);
  pointer-events: none; z-index: 0;
}
.bg-radial > * { position: relative; z-index: 1; }

/* Decorative grain - very subtle */
.bg-grain::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence baseFrequency='0.9'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.025; pointer-events: none; mix-blend-mode: overlay;
}

/* ── TAG CHIPS ───────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-full);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--text-2);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── ANIMATED RANGE BAR ──────────────────────────────────────────────── */
.range {
  height: 6px; background: var(--bg-card-2); border-radius: 3px; position: relative; overflow: hidden;
}
.range-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--attention) 0%, var(--borderline) 35%, var(--optimal) 65%, var(--borderline) 90%, var(--attention) 100%);
  width: 100%; transform-origin: left;
  border-radius: 3px;
}
.range-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--text-1); border: 2px solid var(--optimal);
  box-shadow: 0 0 0 4px rgba(7,16,13,1);
}

/* ── SCROLL-DRIVEN PHONE TOUR (Home) ─────────────────────────────────── */
.tour-stage {
  position: relative;
}
.tour-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 0 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.tour-phone-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative; height: 100%;
}
.tour-copy {
  display: flex; flex-direction: column; gap: 24px; max-width: 420px;
  position: relative; height: 100%; justify-content: center;
}
.tour-frame {
  position: absolute; inset: 0; opacity: 0; transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
  display: flex; flex-direction: column; gap: 16px; justify-content: center;
}
.tour-frame.active { opacity: 1; transform: none; }

.tour-screen {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .55s ease;
}
.tour-screen.active { opacity: 1; }

@media (max-width: 880px) {
  .tour-sticky { grid-template-columns: 1fr; gap: 24px; height: auto; padding: 60px 20px; position: relative; }
  .tour-phone-wrap { height: 600px; }
}

/* ── HERO BACKDROP ───────────────────────────────────────────────────── */
.hero-orbs {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
}
.hero-orb-1 { width: 500px; height: 500px; top: -100px; left: -100px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); }
.hero-orb-2 { width: 600px; height: 600px; bottom: -200px; right: -150px; background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%); opacity: 0.15; }
.hero-orb-3 { width: 400px; height: 400px; top: 30%; left: 50%; background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%); opacity: 0.08; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 500; color: var(--text-1);
  letter-spacing: -0.3px;
  gap: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--text-2); transition: background .3s;
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); border-color: var(--accent); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--accent); }
.faq-body {
  margin-top: 16px; font-size: 15px; line-height: 1.7;
  color: var(--text-2); max-width: 70ch;
}

/* ── PRICING ─────────────────────────────────────────────────────────── */
.price-card {
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
  padding: 40px 32px;
}
.price-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
}
.price-tag {
  position: absolute; top: -12px; right: 24px;
  background: var(--accent); color: #07100D;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.price-amount { font-size: 56px; font-weight: 300; letter-spacing: -2px; line-height: 1; color: var(--text-1); }
.price-period { font-size: 14px; color: var(--text-3); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.check-mark {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* ── BIOMARKER / SCIENCE LIST ────────────────────────────────────────── */
.bio-row {
  display: grid;
  grid-template-columns: 60px 1fr 80px 200px;
  gap: 24px; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.bio-row:last-child { border-bottom: 0; }
.bio-row .bio-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent); text-transform: uppercase;
}
.bio-row .bio-name { font-size: 16px; font-weight: 500; color: var(--text-1); }
.bio-row .bio-desc { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.bio-row .bio-value { font-family: var(--font-mono); font-size: 14px; color: var(--text-1); }

@media (max-width: 720px) {
  .bio-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ── PRESS KIT ───────────────────────────────────────────────────────── */
.press-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s, transform .25s;
}
.press-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.press-card .press-thumb {
  background: var(--bg-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
}

/* ── INPUT / EMAIL CAPTURE ───────────────────────────────────────────── */
.email-form {
  display: flex; gap: 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 20px;
  max-width: 460px;
  align-items: center;
  transition: border-color .25s ease;
}
.email-form:focus-within { border-color: var(--accent); }
.email-form input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: inherit; color: var(--text-1); font-size: 14px;
  height: 40px; min-width: 0;
}
.email-form input::placeholder { color: var(--text-3); }
.email-form button { height: 40px; }

/* ── MARQUEE / INFINITE TICKER (subtle) ──────────────────────────────── */
.marquee {
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex; gap: 64px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── PARALLAX ────────────────────────────────────────────────────────── */
.par-slow { will-change: transform; }
.par-medium { will-change: transform; }
.par-fast { will-change: transform; }

/* ── UTILITIES ───────────────────────────────────────────────────────── */
.center { text-align: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; } .mb-8 { margin-bottom: 64px; }
