/* === TOKENS === */
:root {
  --bg: #050810;
  --bg-alt: #0a0f1e;
  --bg-card: #0d1220;
  --fg: #e8f0fe;
  --fg-muted: #7a8baa;
  --accent-cyan: #00e5ff;
  --accent-amber: #ff9100;
  --accent-cyan-dim: rgba(0, 229, 255, 0.12);
  --border: rgba(0, 229, 255, 0.08);
  --border-hover: rgba(0, 229, 255, 0.2);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); opacity: 0.3; border-radius: 3px; }

::selection { background: var(--accent-cyan); color: var(--bg); }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-os {
  color: var(--accent-cyan);
}

.nav-tagline {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 120px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse at 80% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-visual { position: relative; }

.wave-container {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 40px 24px;
  overflow: hidden;
}

.wave-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.wave-svg { width: 100%; height: auto; }

.wave-path {
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
  transform-origin: center;
}

.wave-slow { animation-name: wave-drift-slow; }
.wave-mid { animation-name: wave-drift-mid; }
.wave-fast { animation-name: wave-drift-fast; }

@keyframes wave-drift-slow {
  from { d: path("M0,200 C55,140 110,240 170,170 C230,100 280,210 340,150 C370,115 400,170 400,170 L400,300 L0,300 Z"); }
  to   { d: path("M0,185 C50,130 105,225 168,165 C228,105 278,200 338,145 C368,110 400,165 400,165 L400,300 L0,300 Z"); }
}
@keyframes wave-drift-mid {
  from { d: path("M0,215 C55,155 110,255 170,185 C230,115 280,225 340,165 C370,130 400,185 400,185 L400,300 L0,300 Z"); }
  to   { d: path("M0,200 C50,145 105,245 168,175 C228,110 278,220 338,160 C368,125 400,180 400,180 L400,300 L0,300 Z"); }
}
@keyframes wave-drift-fast {
  from { d: path("M0,225 C55,165 110,265 170,195 C230,125 280,235 340,175 C370,140 400,195 400,195 L400,300 L0,300 Z"); }
  to   { d: path("M0,210 C50,155 105,250 168,180 C228,115 278,230 338,170 C368,135 400,190 400,190 L400,300 L0,300 Z"); }
}

.data-point { animation: pulse-dot 2s ease-in-out infinite; }
.dp1 { animation-delay: 0s; }
.dp2 { animation-delay: 0.4s; }
.dp3 { animation-delay: 0.8s; }
.dp4 { animation-delay: 1.2s; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; r: 3; }
  50% { opacity: 0.5; r: 5; }
}

.wave-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
}

.stat {
  padding: 14px 16px;
  background: var(--bg-card);
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.hero-text { padding-right: 40px; }

.hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}

.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  border: 1px solid var(--border-hover);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
}

/* === SECTIONS === */
section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* === WAVE FINDER === */
.wave-finder { border-top: 1px solid var(--border); }

.finder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.finder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.finder-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.finder-icon {
  margin-bottom: 20px;
  opacity: 0.9;
}

.finder-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}

.finder-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.finder-callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 36px;
}

.callout-bar {
  display: flex;
  align-items: center;
  gap: 48px;
}

.callout-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-unit {
  font-size: 13px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.callout-text {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 580px;
}

/* === ARBITRAGE CLOCK === */
.arbitrage-clock { border-top: 1px solid var(--border); }

.clock-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-time {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fg);
}

.timeline-content p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 560px;
}

.timeline-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--accent-cyan);
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  align-self: start;
  margin-top: 2px;
}

.timeline-item--highlight .timeline-time { color: var(--accent-amber); }
.timeline-item--highlight .timeline-tag { background: var(--accent-amber); color: var(--bg); }
.timeline-item--highlight { background: rgba(255, 145, 0, 0.03); margin: 0 -24px; padding: 28px 24px; border-radius: 8px; }

.timeline-connector {
  width: 1px;
  height: 0;
}

.clock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.clock-stat {
  padding: 20px 24px;
  background: var(--bg-card);
  text-align: center;
}

.cstat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.cstat-label {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* === MANIFESTO === */
.manifesto {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-content { max-width: 840px; }

.manifesto-quote {
  position: relative;
  padding-left: 0;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--accent-cyan);
  opacity: 0.15;
  line-height: 0.5;
  display: block;
  margin-bottom: 24px;
  font-weight: 800;
}

.manifesto-quote p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.manifesto-quote p:last-child { margin-bottom: 0; }

/* === CLOSING === */
.closing { border-top: 1px solid var(--border); }

.closing-inner { max-width: 800px; }

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 48px;
}

.closing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  padding: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.closing-stat { text-align: center; }

.cs-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: -0.02em;
}

.cs-label {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.closing-tagline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.footer-desc {
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 12px;
  color: var(--fg-muted);
}

/* === MOBILE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    gap: 48px;
    min-height: auto;
  }

  .hero-text { padding-right: 0; order: -1; }
  .hero-visual { order: 0; }

  .nav { padding: 14px 24px; }

  section { padding: 72px 24px; }

  .finder-grid { grid-template-columns: 1fr; }

  .timeline-item { grid-template-columns: 60px 1fr; }
  .timeline-tag { display: none; }

  .closing-stats { grid-template-columns: 1fr; }
  .callout-bar { flex-direction: column; gap: 16px; }

  .footer { flex-direction: column; gap: 16px; align-items: flex-start; }

  .wave-stats { grid-template-columns: 1fr; }

  .clock-stats { grid-template-columns: 1fr; }
}

/* === FOCUS === */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === LINKS === */
a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
