/* Gastronaut.ai — design tokens */
:root {
  --bg-0: #06070A;
  --bg-1: #0A0B0F;
  --bg-2: #101218;
  --bg-3: #16181F;
  --bg-elev: rgba(22, 24, 31, 0.55);

  --line-1: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.16);

  --ink-1: #F2F3F5;
  --ink-2: #B4B8C2;
  --ink-3: #7A7F8A;
  --ink-4: #4A4E58;

  --accent: oklch(0.82 0.16 220);        /* electric cyan — agents */
  --accent-dim: oklch(0.55 0.14 220);
  --accent-glow: oklch(0.82 0.16 220 / 0.35);

  --gold: oklch(0.82 0.14 80);             /* warm amber — trading */
  --gold-dim: oklch(0.58 0.12 80);
  --gold-glow: oklch(0.82 0.14 80 / 0.35);

  --danger: oklch(0.68 0.20 25);
  --good: oklch(0.78 0.15 155);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Geist", "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --shadow-1: 0 1px 0 0 rgba(255,255,255,0.04) inset, 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-glass: 0 1px 0 0 rgba(255,255,255,0.05) inset, 0 30px 60px -30px rgba(0,0,0,0.6);
}

:root[data-theme="light"] {
  --bg-0: #EEEBE4;
  --bg-1: #F4F2EC;
  --bg-2: #FAF8F3;
  --bg-3: #FFFFFF;
  --bg-elev: rgba(255, 255, 255, 0.65);

  --line-1: rgba(0, 0, 0, 0.06);
  --line-2: rgba(0, 0, 0, 0.10);
  --line-3: rgba(0, 0, 0, 0.16);

  --ink-1: #0B0C0F;
  --ink-2: #3A3E47;
  --ink-3: #6C7079;
  --ink-4: #9CA0A8;

  --accent: oklch(0.55 0.18 230);
  --accent-dim: oklch(0.70 0.14 230);
  --accent-glow: oklch(0.55 0.18 230 / 0.25);

  --gold: oklch(0.60 0.14 70);
  --gold-dim: oklch(0.72 0.10 70);
  --gold-glow: oklch(0.60 0.14 70 / 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
}

::selection { background: var(--accent-glow); color: var(--ink-1); }

.glass {
  background: var(--bg-elev);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.hairline { border: 1px solid var(--line-1); }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01","ss02"; letter-spacing: 0; }
.display { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 400; }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.dot.gold { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.dot.live { background: var(--good); box-shadow: 0 0 10px oklch(0.78 0.15 155 / 0.5); animation: pulse 2s ease-in-out infinite; }
.dot.warn { background: var(--danger); box-shadow: 0 0 10px oklch(0.68 0.20 25 / 0.5); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}

@keyframes orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.scroll-y { overflow-y: auto; }
.scroll-y::-webkit-scrollbar { width: 10px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.scroll-y::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: padding-box; border: 3px solid transparent; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--ink-1);
  cursor: pointer;
  transition: all 180ms ease;
}
.btn:hover { background: rgba(255,255,255,0.08); border-color: var(--line-3); }
.btn.primary {
  background: linear-gradient(180deg, oklch(0.88 0.16 220), oklch(0.72 0.16 220));
  color: #041018;
  border-color: transparent;
  box-shadow: 0 0 0 1px oklch(0.9 0.1 220 / 0.4) inset, 0 8px 24px -8px var(--accent-glow);
}
.btn.primary:hover { filter: brightness(1.08); }

.kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* subtle grain */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.bg-aurora {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.bg-aurora::before, .bg-aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
}
.bg-aurora::before {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: 10%;
  animation: breathe 14s ease-in-out infinite;
}
.bg-aurora::after {
  width: 500px; height: 500px;
  background: var(--gold);
  bottom: -150px; right: 5%;
  animation: breathe 18s ease-in-out infinite reverse;
  opacity: 0.22;
}
