/* Hydra-Trader — Futurist Minimal */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Dark tier */
  --ink-0: oklch(14% 0.015 240);
  --ink-1: oklch(18% 0.02 240);
  --ink-2: oklch(24% 0.022 240);
  --ink-3: oklch(32% 0.02 240);
  --ink-4: oklch(46% 0.018 240);

  /* Light tier */
  --paper-0: oklch(99% 0.003 80);
  --paper-1: oklch(97% 0.005 80);
  --paper-2: oklch(94% 0.007 80);
  --paper-3: oklch(88% 0.008 80);

  /* Accents — shared chroma */
  --cyan: oklch(78% 0.14 205);
  --cyan-bright: oklch(85% 0.16 200);
  --mint: oklch(86% 0.11 165);
  --coral: oklch(74% 0.14 35);

  --fg-ink: oklch(22% 0.02 240);
  --fg-dim: oklch(52% 0.015 240);
  --fg-on-dark: oklch(96% 0.01 200);
  --fg-on-dark-dim: oklch(72% 0.02 220);

  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

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

html, body {
  font-family: var(--font-sans);
  background: var(--paper-0);
  color: var(--fg-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

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

/* ── shared layout ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

.section { padding: 120px 0; position: relative; }
.section--dark { background: var(--ink-0); color: var(--fg-on-dark); }
.section--paper { background: var(--paper-0); }
.section--paper-alt { background: var(--paper-1); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section--dark .eyebrow { color: var(--fg-on-dark-dim); }
.eyebrow .num {
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  padding: 3px 8px;
  border: 1px solid oklch(78% 0.14 205 / 0.3);
  border-radius: 4px;
  font-size: 11px;
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-top: 20px;
  max-width: 18ch;
  text-wrap: balance;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cyan);
}
.section--dark .section-title em { color: var(--cyan-bright); }

.section-sub {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 62ch;
}
.section--dark .section-sub { color: var(--fg-on-dark-dim); }

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--cyan);
  color: oklch(18% 0.03 220);
}
.btn-primary:hover { background: var(--cyan-bright); }

.btn-ghost {
  border-color: oklch(50% 0.02 240 / 0.3);
  color: inherit;
}
.section--dark .btn-ghost { border-color: oklch(78% 0.03 220 / 0.25); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  backdrop-filter: blur(20px);
  background: oklch(14% 0.015 240 / 0.6);
  border-bottom: 1px solid oklch(40% 0.02 240 / 0.2);
  color: var(--fg-on-dark);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav--light {
  background: oklch(99% 0.003 80 / 0.82);
  color: var(--fg-ink);
  border-bottom-color: oklch(60% 0.01 240 / 0.1);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.nav-brand .mark { width: 28px; height: 28px; }
.nav-brand em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cyan-bright); }
.nav--light .nav-brand em { color: var(--cyan); }
.nav-links {
  display: flex; gap: 28px;
  font-size: 13px;
  color: var(--fg-on-dark-dim);
}
.nav--light .nav-links { color: var(--fg-dim); }
.nav-links a:hover { color: var(--cyan-bright); }
.nav--light .nav-links a:hover { color: var(--cyan); }
.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--cyan);
  color: oklch(18% 0.03 220);
  font-weight: 500;
}
@media (max-width: 900px) { .nav-links { display: none; } }

/* ── reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(.2,.6,.1,1), transform 0.7s cubic-bezier(.2,.6,.1,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── dashboard strip ── */
.sparkline { overflow: visible; }
.sparkline path.line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw 2s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 oklch(78% 0.14 205 / 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px oklch(78% 0.14 205 / 0); }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── mono tag ── */
.tag-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.section--dark .tag-mono { color: var(--fg-on-dark-dim); }

/* divider */
.div-rule {
  height: 1px;
  background: oklch(50% 0.02 240 / 0.12);
}
.section--dark .div-rule { background: oklch(78% 0.02 220 / 0.12); }

/* grid helpers */
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* scrollbar hide for horizontal scrolls */
.hscroll { overflow-x: auto; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
