/* Auren website — premium dark theme. No frameworks. Type: Inter + Instrument Serif. */

:root {
  --bg: #070b10;
  --bg-soft: #0b1219;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.09);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --glass-lo: rgba(255, 255, 255, 0.02);
  --text: #e8eef4;
  --muted: #9aa8b5;
  --faint: #64707d;
  --accent: #2ee5a0;
  --accent-dim: rgba(46, 229, 160, 0.12);
  --accent-ink: #04120b;
  --radius: 18px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1000px 420px at 12% -6%, rgba(46, 229, 160, 0.08), transparent 60%),
    radial-gradient(900px 400px at 88% -6%, rgba(80, 140, 255, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: var(--narrow); }
/* Ambient wash behind the floating nav so the glass has color to refract
   and the top of the page melts into the hero instead of flat black. */
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 560px;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(760px 360px at 14% 0%, rgba(46, 229, 160, 0.11), transparent 65%),
    radial-gradient(760px 360px at 86% 0%, rgba(80, 140, 255, 0.09), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 70%);
}
section[id], footer[id] { scroll-margin-top: 104px; }
::selection { background: rgba(46, 229, 160, 0.85); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120;
  background: linear-gradient(90deg, var(--accent), rgba(46, 229, 160, 0.35));
  transform-origin: 0 50%; transform: scaleX(0);
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--accent);
  color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip:focus { left: 0; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
h1 { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.9rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
h2 { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
h3 { font-size: 1.12rem; font-weight: 680; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
p { margin: 0 0 14px; }
a { color: var(--accent); }
code {
  font-family: var(--mono); font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.8); } }
.section-lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }

/* ---------- nav (floating liquid-glass pill) ---------- */
.nav {
  position: sticky; top: 14px; z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  width: max-content;
  max-width: calc(100% - 28px);
  margin: 14px auto 0;
  border-radius: 22px;
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.08);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.04)),
    rgba(10, 15, 22, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 46%, transparent 62%);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 58px; }
.nav .brand { margin-right: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: block; }
.brand-name { font-weight: 760; font-size: 1.15rem; letter-spacing: -0.01em; }
.beta-pill {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(46, 229, 160, 0.4);
  background: var(--accent-dim); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.nav-links { display: flex; gap: 2px; background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 4px; margin: 0 auto; }
.nav-links a { position: relative; color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 550; padding: 7px 14px; border-radius: 999px; transition: color 0.16s ease, background 0.16s ease; white-space: nowrap; }
.nav-links a::after { content: none; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 12px 10px; cursor: pointer; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 6px 14px 14px; }
.mobile-menu.open { display: flex; }
.mobile-menu.open > * { animation: rise-in 0.35s ease both; }
.mobile-menu.open > *:nth-child(2) { animation-delay: 40ms; }
.mobile-menu.open > *:nth-child(3) { animation-delay: 80ms; }
.mobile-menu.open > *:nth-child(4) { animation-delay: 120ms; }
.mobile-menu.open > *:nth-child(5) { animation-delay: 160ms; }
.mobile-menu.open > *:nth-child(n+6) { animation-delay: 200ms; }
.nav.scrolled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.05)),
    rgba(10, 15, 22, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 12px 40px rgba(0, 0, 0, 0.45);
}
.mobile-menu a:not(.btn) { color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 12px; }
.mobile-menu a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  text-decoration: none; border-radius: 14px; padding: 15px 24px;
  font-weight: 680; font-size: 1rem; line-height: 1.25;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn span { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn:active { transform: translateY(0) scale(0.985); }
.btn small { font-weight: 550; font-size: 0.76rem; opacity: 0.72; }
.btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%), var(--accent);
  color: var(--accent-ink); box-shadow: 0 8px 32px rgba(46, 229, 160, 0.28), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(46, 229, 160, 0.36); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: 0;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
  transform: translateX(-160%) skewX(-20deg);
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 72% { transform: translateX(-160%) skewX(-20deg); }
  100% { transform: translateX(400%) skewX(-20deg); }
}
.btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  color: var(--text); border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); }
.btn-ghost { color: var(--text); border-color: rgba(255,255,255,0.14); background: transparent; }
.btn-small { padding: 10px 18px; font-size: 0.9rem; border-radius: 11px; }
.btn-os.recommended { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow-x: clip; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 640px; pointer-events: none;
  background: radial-gradient(560px 340px at 22% 30%, rgba(46, 229, 160, 0.13), transparent 65%),
              radial-gradient(720px 420px at 82% 10%, rgba(80, 140, 255, 0.09), transparent 65%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }

/* ---------- minimal centered hero ---------- */
.hero-minimal { padding: 130px 0 140px; }
.hero-centered { position: relative; max-width: 900px; text-align: center; }
.hero-centered .hero-copy { max-width: 820px; margin: 0 auto; }
.hero-centered .eyebrow { justify-content: center; }
.hero-minimal h1 { font-size: clamp(3.4rem, 8vw, 6.8rem); line-height: 1.02; }
.hero-centered .lede { margin-left: auto; margin-right: auto; font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 52ch; text-align: center; }
.hero-centered .hero-actions { justify-content: center; margin: 36px 0 16px; }
.hero-centered .trust-row { justify-content: center; }
/* app preview relocated into the Try section */
.try-preview { max-width: 640px; margin: 40px auto 0; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 44ch; }
.lede strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 12px; flex-wrap: wrap; }
.fineprint { color: var(--faint); font-size: 0.86rem; }
.trust-row { display: flex; align-items: center; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; flex-wrap: wrap; color: var(--faint); font-size: 0.86rem; font-weight: 600; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li + li::before { content: "·"; color: rgba(255, 255, 255, 0.22); margin-right: 10px; }
.trust-row svg { width: 16px; height: 16px; color: var(--accent); opacity: 0.9; }

/* app window mock (liquid glass) */
.app-window {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,0.1), rgba(255,255,255,0.025) 40%, rgba(46,229,160,0.05));
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 90px rgba(46, 229, 160, 0.07);
  overflow: hidden;
}
.app-window::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.07) 45%, transparent 60%);
}
.app-titlebar { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.app-titlebar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.app-titlebar span:first-child { background: rgba(255, 95, 86, 0.7); }
.app-titlebar span:nth-child(2) { background: rgba(255, 189, 46, 0.7); }
.app-titlebar span:nth-child(3) { background: rgba(39, 201, 63, 0.7); }
.app-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.app-row-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }
.app-status { margin: 0; font-size: 0.94rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.toggle { width: 52px; height: 30px; border-radius: 999px; background: rgba(255,255,255,0.1); position: relative; flex: none; }
.toggle.on { background: var(--accent); }
.toggle span { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.app-block { background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 12px 14px; }
.chip-list { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 8px 0 0; padding: 0; }
.chip-list li { font-size: 0.8rem; font-weight: 600; background: rgba(255, 96, 96, 0.12); border: 1px solid rgba(255, 96, 96, 0.3); color: #ffb4b4; padding: 4px 11px; border-radius: 999px; }
.chip-list li.more { background: transparent; border-style: dashed; color: var(--faint); border-color: rgba(255,255,255,0.15); }
.mount-line { margin: 8px 0 0; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.mount-line .folder { width: 16px; height: 13px; border-radius: 2px 5px 3px 3px; background: var(--accent); opacity: 0.85; flex: none; }
.mount-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(46,229,160,0.35); padding: 2px 8px; border-radius: 999px; }
.app-log { margin: 0; font-size: 0.8rem; color: var(--faint); font-family: var(--mono); }
.app-log span { color: var(--accent); }

/* ---------- subtle motion: hero entrance, ambient drift, float ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-scale-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise-in 0.7s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 80ms; }
.hero-copy > *:nth-child(3) { animation-delay: 160ms; }
.hero-copy > *:nth-child(4) { animation-delay: 240ms; }
.hero-copy > *:nth-child(5) { animation-delay: 320ms; }
.hero-copy > *:nth-child(6) { animation-delay: 400ms; }
.hero-visual { animation: fade-scale-in 0.8s ease 200ms both; }
@keyframes glow-drift {
  from { opacity: 0.85; transform: translate3d(-1.5%, 0, 0); }
  to { opacity: 1; transform: translate3d(1.5%, 1%, 0); }
}
.hero-glow { animation: glow-drift 14s ease-in-out infinite alternate; }
@keyframes float-y {
  from { transform: translateY(-4px); }
  to { transform: translateY(4px); }
}
.app-window { animation: float-y 7s ease-in-out infinite alternate; }
.hero-visual:hover .app-window { animation-play-state: paused; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 8px var(--accent); }
  50% { box-shadow: 0 0 16px var(--accent); }
}
.app-status:not(.off) .status-dot { animation: breathe 3s ease-in-out infinite; }
.toggle { transition: background 0.2s ease; }
.toggle span { transition: left 0.2s ease, right 0.2s ease; }
#demoLog { transition: opacity 0.25s ease; }

/* ---------- cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: linear-gradient(170deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02) 55%);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 229, 160, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(46, 229, 160, 0.08);
}
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); margin-bottom: 16px; }
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.diagram {
  margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 20px 24px;
}
.flow-node { font-weight: 650; font-size: 0.92rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px 14px; border-radius: 10px; }
.flow-node small { color: var(--faint); font-family: var(--mono); font-size: 0.75rem; }
.flow-node-core { border-color: rgba(46, 229, 160, 0.45); background: var(--accent-dim); }
.flow-arrow { color: var(--faint); font-weight: 700; }
@keyframes flow-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.flow-arrow { animation: flow-pulse 2.4s ease-in-out infinite; }
.flow-arrow ~ .flow-arrow { animation-delay: 1.2s; }
@keyframes core-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(46, 229, 160, 0); }
  50% { box-shadow: 0 0 22px rgba(46, 229, 160, 0.22); }
}
.flow-node-core { animation: core-glow 4s ease-in-out infinite; }
/* Staggered scroll reveals — delay applies only while entering (pre-.visible),
   so card hover lifts stay instant after reveal. */
.card-grid .card.reveal:not(.visible):nth-child(2),
.play-grid .reveal:not(.visible):nth-child(2) { transition-delay: 70ms; }
.card-grid .card.reveal:not(.visible):nth-child(3) { transition-delay: 140ms; }
.card-grid .card.reveal:not(.visible):nth-child(4) { transition-delay: 210ms; }
.faq .reveal:not(.visible):nth-child(2) { transition-delay: 60ms; }
.faq .reveal:not(.visible):nth-child(3) { transition-delay: 120ms; }
.faq .reveal:not(.visible):nth-child(n+4) { transition-delay: 160ms; }
.flow-out { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.flow-outcome { font-size: 0.82rem; font-weight: 650; padding: 7px 13px; border-radius: 999px; font-family: var(--mono); }
.flow-outcome.deny { color: #ffb4b4; background: rgba(255, 96, 96, 0.1); border: 1px solid rgba(255, 96, 96, 0.3); }
.flow-outcome.allow { color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(46, 229, 160, 0.3); }

/* ---------- playground ---------- */
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.play-card {
  position: relative;
  background: linear-gradient(170deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02) 55%);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.11); border-radius: var(--radius);
  padding: 0; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.play-head { display: flex; align-items: center; gap: 7px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.play-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.16); flex: none; }
.play-dot.r { background: rgba(255, 95, 86, 0.75); }
.play-dot.y { background: rgba(255, 189, 46, 0.75); }
.play-dot.g { background: rgba(39, 201, 63, 0.75); }
.play-title { margin-left: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
.play-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 20px 0; }
.play-chips button {
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.play-chips button:hover { color: var(--accent); border-color: rgba(46, 229, 160, 0.4); }
.play-form { display: flex; align-items: center; gap: 10px; padding: 14px 20px 6px; }
.play-form .prompt { font-family: var(--mono); color: var(--accent); font-weight: 700; flex: none; }
.play-form input {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.88rem; color: var(--text);
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 11px 13px;
}
.play-form input:focus { outline: none; border-color: rgba(46, 229, 160, 0.5); box-shadow: 0 0 0 3px rgba(46, 229, 160, 0.12); }
.play-form input { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.verdict { min-height: 3.2em; margin: 10px 20px 20px; padding: 12px 14px; border-radius: 12px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.07); color: var(--muted); }
.verdict:empty { display: none; }
.verdict.allow { border-color: rgba(46, 229, 160, 0.4); color: var(--accent); }
.verdict.deny { border-color: rgba(255, 96, 96, 0.4); color: #ffb4b4; }
.verdict .tag { display: inline-block; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; padding: 2px 9px; border-radius: 999px; margin-right: 8px; }
@keyframes verdict-in {
  from { opacity: 0.4; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.verdict.allow, .verdict.deny { animation: verdict-in 0.25s ease; }
@keyframes tag-pop {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}
.verdict .tag { animation: tag-pop 0.22s ease; }
.verdict.allow .tag { background: var(--accent-dim); border: 1px solid rgba(46,229,160,0.4); }
.verdict.deny .tag { background: rgba(255, 96, 96, 0.1); border: 1px solid rgba(255,96,96,0.4); }

/* hero demo toggle is a real button */
button.toggle { border: 0; cursor: pointer; padding: 0; }
button.toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.toggle:not(.on) { background: rgba(255,255,255,0.14); }
.toggle:not(.on) span { right: auto; left: 3px; }
.app-status.off .status-dot { background: var(--faint); box-shadow: none; }
.app-hint { margin: 0; font-size: 0.78rem; color: var(--faint); }

/* ---------- split / steps / panel ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.steps { list-style: none; counter-reset: step; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--muted); }
.steps li strong { color: var(--text); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(46, 229, 160, 0.4);
  color: var(--accent); font-weight: 750; display: grid; place-items: center;
}
.panel {
  background: linear-gradient(170deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02) 60%);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.11); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.panel p { color: var(--muted); margin-bottom: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }
.scope-note { margin-top: 26px; background: rgba(255, 189, 46, 0.06); border: 1px solid rgba(255, 189, 46, 0.25); border-radius: 14px; padding: 16px 20px; color: var(--muted); font-size: 0.94rem; }
.scope-note strong { color: #ffd98a; }
.limits { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.limits li { padding-left: 28px; position: relative; color: var(--muted); }
.limits li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.faq details {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 0 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.faq details[open] { border-color: rgba(46, 229, 160, 0.3); }
.faq summary { cursor: pointer; font-weight: 650; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 0.16s ease; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- cta / footer ---------- */
.cta { padding: 40px 0 100px; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(600px 280px at 50% 0%, rgba(46, 229, 160, 0.14), transparent 70%),
              linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(46, 229, 160, 0.28); border-radius: 26px; padding: 64px 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.45);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.06) 48%, transparent 62%);
}
@keyframes cta-breathe {
  0%, 100% { border-color: rgba(46, 229, 160, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.45); }
  50% { border-color: rgba(46, 229, 160, 0.34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 46px rgba(46, 229, 160, 0.1); }
}
.cta-inner { animation: cta-breathe 6s ease-in-out infinite; }
.cta-inner p { color: var(--muted); }
.cta-inner .hero-actions { justify-content: center; }
.footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; margin-left: auto; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer nav a:hover { color: var(--text); }
.copyright { width: 100%; margin: 14px 0 0; color: var(--faint); font-size: 0.84rem; }

/* ---------- onboarding tour ---------- */
.ob-modal[hidden] { display: none; }
.ob-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.ob-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(3, 6, 9, 0.66);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ob-modal-card {
  position: relative; width: min(520px, 100%);
  background: linear-gradient(170deg, rgba(28, 38, 48, 0.92), rgba(11, 18, 25, 0.94));
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(46, 229, 160, 0.28); border-radius: 22px;
  padding: 30px 30px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.ob-modal-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.ob-counter { color: var(--faint); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 12px; }
.ob-text { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.ob-dots { display: flex; gap: 8px; margin-top: 20px; }
.ob-dots span { width: 22px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.ob-dots span.on { background: var(--accent); }
.ob-modal-actions { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.ob-modal-actions #obNext { margin-left: auto; }

/* ---------- download guidance modal ---------- */
.dl-modal[hidden] { display: none; }
.dl-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.dl-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(3, 6, 9, 0.66);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dl-modal-card {
  position: relative; width: min(560px, 100%); max-height: min(86vh, 720px);
  overflow: auto;
  background: linear-gradient(170deg, rgba(28, 38, 48, 0.92), rgba(11, 18, 25, 0.94));
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(46, 229, 160, 0.28); border-radius: 22px;
  padding: 30px 30px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dl-modal-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.dl-modal-sub { color: var(--muted); font-size: 0.95rem; }
.dl-modal-x {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.dl-modal-x:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.14); }
.dl-steps { list-style: none; counter-reset: dlstep; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dl-steps[hidden] { display: none; }
.dl-steps li { counter-increment: dlstep; position: relative; padding-left: 46px; color: var(--muted); font-size: 0.94rem; }
.dl-steps li strong { color: var(--text); }
.dl-steps li::before {
  content: counter(dlstep); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(46, 229, 160, 0.4);
  color: var(--accent); font-weight: 750; font-size: 0.85rem; display: grid; place-items: center;
}
.dl-modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .play-grid { grid-template-columns: 1fr; gap: 44px; }
  .card-grid, .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { top: 10px; width: max-content; max-width: calc(100% - 20px); margin-top: 10px; border-radius: 20px; }
  .nav-cta { margin-left: auto; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .card-grid, .card-grid.three { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero-minimal { padding: 88px 0 96px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .flow-out { margin-left: 0; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.2rem); }
  /* The mobile menu already has Download — drop the nav-bar button so the
     brand + burger never crowd a 360px viewport. */
  .nav-cta .btn { display: none; }
  .cta-inner { padding: 48px 22px; }
  .mobile-menu a:not(.btn) { padding: 12px 14px; }
  .section { padding: 64px 0; }
  .diagram { padding: 16px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .eyebrow .dot { animation: none; }
  .scroll-progress { display: none; }
  .hero-copy > *, .hero-visual,
  .mobile-menu.open > * { animation: none; }
  .hero-glow, .app-window, .app-status:not(.off) .status-dot,
  .flow-arrow, .flow-node-core, .cta-inner,
  .btn-primary::after,
  .verdict.allow, .verdict.deny, .verdict .tag { animation: none; }
  .toggle, .toggle span, .nav, #demoLog, .play-form input { transition: none; }
}
