/* Soft Trading — design tokens */
:root {
  /* Surfaces */
  --bg-0: #06070a;        /* page background, deepest */
  --bg-1: #0a0b0f;        /* default surface */
  --bg-2: #0e1014;        /* card surface */
  --bg-3: #14171d;        /* elevated surface */
  --bg-4: #1a1d24;        /* hover surface */

  /* Borders & strokes */
  --line-1: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.16);

  /* Text */
  --fg-0: #f4f5f7;        /* primary */
  --fg-1: #c9ccd3;        /* secondary */
  --fg-2: #8a8f99;        /* tertiary */
  --fg-3: #5a5f6a;        /* muted */
  --fg-4: #3a3e47;        /* deep muted */

  /* Accents — cyan + violet pairing (oklch shared chroma/lightness) */
  --accent-cyan: oklch(0.78 0.13 220);
  --accent-cyan-2: oklch(0.68 0.14 220);
  --accent-cyan-glow: oklch(0.78 0.13 220 / 0.35);
  --accent-violet: oklch(0.70 0.13 295);
  --accent-violet-glow: oklch(0.70 0.13 295 / 0.30);

  /* Functional */
  --pos: oklch(0.78 0.14 160);
  --neg: oklch(0.70 0.16 25);
  --warn: oklch(0.82 0.13 85);

  /* Type */
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Radii */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 18px;
  --r-pill: 999px;

  /* Density (toggleable) */
  --density: 1;
  --pad-section: calc(120px * var(--density));
  --pad-card: calc(28px * var(--density));

  /* Layout */
  --max-w: 1280px;
  --gutter: 24px;

  /* Background style */
  --bg-tone: radial-gradient(1200px 600px at 80% -10%, rgba(60, 180, 255, 0.06), transparent 60%),
             radial-gradient(900px 500px at 0% 30%, rgba(140, 100, 255, 0.04), transparent 60%);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image: var(--bg-tone);
  background-attachment: fixed;
  min-height: 100vh;
}

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

/* Utility */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg-0);
}
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
p  { color: var(--fg-1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--fg-0);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 220ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-4); border-color: var(--line-3); transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(180deg, oklch(0.86 0.12 220) 0%, oklch(0.72 0.14 220) 100%);
  color: #04070b;
  border-color: oklch(0.85 0.13 220);
  box-shadow: 0 0 0 1px oklch(0.85 0.13 220 / 0.4), 0 8px 30px -8px var(--accent-cyan-glow);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px oklch(0.85 0.13 220 / 0.6), 0 12px 40px -8px var(--accent-cyan-glow);
}
.btn--ghost { background: transparent; }
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Section spacing */
.section { padding: var(--pad-section) 0; }

/* Card primitive */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%), var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-4);
  padding: var(--pad-card);
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.card:hover { border-color: var(--line-2); }

/* Hairline divider */
.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  border: 0;
}

/* Mono label */
.mono { font-family: var(--font-mono); font-feature-settings: 'zero', 'ss01'; letter-spacing: 0; }

/* Selection */
::selection { background: oklch(0.78 0.13 220 / 0.3); color: var(--fg-0); }

/* Scrollbar — webkit */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 6px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--bg-4); }
