/* ============================================================
   AUM AI — Design System
   Display: Space Grotesk · UI: Hanken Grotesk · Data: JetBrains Mono
   ============================================================ */

:root {
  /* Brand */
  --brand-yellow: #FBBA0E;
  --brand-yellow-soft: #FFE9A8;
  --brand-blue: #0A84FF;
  --brand-blue-deep: #0066D6;
  --brand-ink: #0E1A2B;

  /* Semantic — LIGHT (default) */
  --bg: #F6F6F3;
  --bg-grain: #F1F1ED;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --surface-inset: #F2F2EE;
  --border: #E7E7E1;
  --border-strong: #D8D8D0;
  --ink: #11181F;
  --ink-2: #444C54;
  --ink-3: #767E86;
  --ink-faint: #A6ACB2;
  --accent: var(--brand-blue);
  --accent-ink: #FFFFFF;
  --pos: #0E9F6E;
  --neg: #E5484D;
  --pos-bg: rgba(14,159,110,0.10);
  --neg-bg: rgba(229,72,77,0.10);

  /* Solid button (primary CTA) */
  --solid-bg: #11181F;
  --solid-ink: #FFFFFF;

  --ring: rgba(10,132,255,0.35);
  --shadow-sm: 0 1px 2px rgba(16,24,32,0.04), 0 1px 3px rgba(16,24,32,0.06);
  --shadow-md: 0 4px 12px rgba(16,24,32,0.06), 0 2px 4px rgba(16,24,32,0.04);
  --shadow-lg: 0 24px 48px -12px rgba(16,24,32,0.18), 0 8px 16px -8px rgba(16,24,32,0.10);
  --shadow-pop: 0 16px 40px -8px rgba(16,24,32,0.22);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-ui: "Montserrat", system-ui, sans-serif;
  --font-logo: "Glacial Indifference", "Jost", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --nav-h: 68px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: #0A1119;
  --bg-grain: #0C141E;
  --surface: #121C27;
  --surface-2: #0F1721;
  --surface-inset: #18222E;
  --border: #1E2A38;
  --border-strong: #2A3848;
  --ink: #EAF0F6;
  --ink-2: #AEBAC6;
  --ink-3: #76838F;
  --ink-faint: #4D5A66;
  --accent: #2E97FF;
  --accent-ink: #06121F;
  --pos: #2ED891;
  --neg: #FF6B6F;
  --pos-bg: rgba(46,216,145,0.12);
  --neg-bg: rgba(255,107,111,0.12);
  --solid-bg: #FFFFFF;
  --solid-ink: #0A1119;
  --ring: rgba(46,151,255,0.45);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 28px 56px -12px rgba(0,0,0,0.6);
  --shadow-pop: 0 18px 44px -8px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background-color 0.5s var(--ease), color 0.4s var(--ease);
}

/* subtle paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in oklch, var(--brand-blue) 7%, transparent), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, color-mix(in oklch, var(--brand-yellow) 6%, transparent), transparent 55%);
  transition: opacity 0.5s var(--ease);
}

::selection { background: color-mix(in oklch, var(--brand-yellow) 55%, transparent); color: var(--brand-ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; }

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

#root { position: relative; z-index: 1; }

/* App scaffolding */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px){ .container { padding: 0 18px; } }

/* Focus */
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 8px; }

/* Reusable card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Utility motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { animation: fadeUp 0.7s var(--ease) both; }
.rv { animation: fadeUp 0.7s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(var(--rv-y, 16px)); } to { opacity: 1; transform: none; } }

/* Still mode — render final states for static capture (real users see full motion) */
.still .rv,
.still .reveal,
.still .page,
.still .hero-swap,
.still .modal,
.still .modal-scrim,
.still .toast { animation: none !important; opacity: 1 !important; transform: none !important; }
.still .ticker-track,
.still .hero-c-word,
.still .float-chip,
.still .eyebrow-dot { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.01ms !important; }
}
