/* ============================================================
   WANE FINANCE — shared theme
   Brand periwinkle (#6060fc, sampled from the logo) × ember heat.
   Flat, no gradients, no emoji.
   ============================================================ */

:root {
  /* palette */
  --bg-0: #05060f;
  --bg-1: #090b1a;
  --bg-2: #0e1226;
  --ink: #eef0fb;
  --ink-dim: #a8adcf;
  --ink-faint: #6a6f95;

  /* brand — the logo blue */
  --brand: #6060fc;
  --brand-hot: #8080ff;
  --brand-deep: #4a4ae0;
  --brand-ghost: rgba(96, 96, 252, 0.14);

  --moon: #e2e5f7;
  --moon-glow: #a9adff;
  --night: #6060fc;
  --night-deep: #4a4ae0;

  /* ember — burn/fire semantics only */
  --ember: #ff7a3d;
  --ember-hot: #ffb75d;
  --ember-deep: #d94f1e;
  --gold: #f5b14c;

  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-soft: rgba(255, 255, 255, 0.055);

  --font-display: "Unbounded", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(245, 177, 76, 0.32); color: #fff; }

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

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: #1d2138;
  border-radius: 8px; border: 2px solid var(--bg-0);
}

/* ============================================================
   SURFACES — flat panels
   ============================================================ */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}

/* accent-bordered panel — brand blue edge */
.gborder {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid rgba(96, 96, 252, 0.4);
}
/* burn-themed panel keeps the ember edge */
.gborder-ember { border-color: rgba(255, 122, 61, 0.32); }

/* ============================================================
   BUTTONS — flat
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, border-color 0.25s, background 0.25s;
  user-select: none;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.2); background: var(--glass-strong); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.42; pointer-events: none; }

/* primary — solid brand blue */
.btn-brand {
  border: 1px solid var(--brand);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 30px -12px rgba(96, 96, 252, 0.6);
}
.btn-brand:hover {
  background: var(--brand-hot);
  border-color: var(--brand-hot);
  box-shadow: 0 14px 38px -12px rgba(96, 96, 252, 0.75);
}

/* ember — burn/fire actions only */
.btn-ember {
  border: 1px solid var(--ember);
  color: #180a02;
  background: var(--ember);
  box-shadow: 0 10px 30px -12px rgba(255, 122, 61, 0.55);
}
.btn-ember:hover {
  background: var(--ember-hot);
  border-color: var(--ember-hot);
  box-shadow: 0 14px 38px -12px rgba(255, 122, 61, 0.7);
}

/* moon / secondary — ghost blue */
.btn-moon {
  border-color: rgba(96, 96, 252, 0.35);
  background: var(--brand-ghost);
}
.btn-moon:hover { border-color: rgba(128, 128, 255, 0.6); background: rgba(96, 96, 252, 0.22); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 11px; }
.btn-icon { padding: 9px 11px; }
.btn-icon svg { display: block; }

/* segmented control */
.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--stroke-soft);
  border-radius: 13px;
}
.seg button {
  padding: 8px 15px; border: none; border-radius: 9px;
  background: transparent; color: var(--ink-dim);
  font-size: 13.5px; font-weight: 600; font-family: var(--font-body);
  transition: all 0.25s;
}
.seg button:hover { color: var(--ink); }
.seg button.on {
  background: var(--brand-ghost);
  color: var(--brand-hot);
  box-shadow: 0 0 0 1px rgba(96, 96, 252, 0.4) inset;
}

/* ============================================================
   TYPO HELPERS
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-hot);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: var(--brand-hot);
}

.mono { font-family: var(--font-mono); }
.dim { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.gold { color: var(--gold); }
.brandc { color: var(--brand-hot); }
.emberc { color: var(--ember); }
.nightc { color: var(--moon-glow); }
.okc { color: var(--ok); }

/* former gradient text — now solid accents */
.grad-text { color: var(--ink); }
.grad-ember { color: var(--ember); }

/* ============================================================
   ICONS — inline SVG glyphs
   ============================================================ */
.ic {
  width: 18px; height: 18px; flex: 0 0 auto;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -3px;
}
.ic-lg { width: 22px; height: 22px; }

/* ============================================================
   BADGES · CHIPS · MISC
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-dim);
  white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-ok { background: var(--ok); animation: pulse 2s infinite; }
.dot-ember { background: var(--ember); animation: pulse 1.6s infinite; }
.dot-night { background: var(--night); }
@keyframes pulse { 50% { opacity: 0.45; } }

.divider { height: 1px; border: none; background: var(--stroke); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* toast */
#toasts {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  border-left: 2px solid var(--brand);
  background: rgba(14, 17, 34, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -16px rgba(0,0,0,0.8);
  font-size: 13.5px;
  animation: toast-in 0.45s var(--ease-spring);
  max-width: 360px;
}
.toast.out { animation: toast-out 0.4s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px) scale(0.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

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