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

:root {
  --dark:        #0A1628;
  --dark2:       #112240;
  --dark3:       #0D1F3C;
  --cyan:        #00C2D4;
  --cyan2:       #00E5FA;
  --cyan-dim:    rgba(0,194,212,0.12);
  --white:       #FFFFFF;
  --muted:       #8898AA;
  --grey:        #4A5568;
  --light:       #EEF2F7;
  --rule:        rgba(200,211,224,0.15);
  --green:       #0F7B55;
  --green-light: #E6F5F0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── BACKGROUND ─────────────────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,194,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,212,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }

.nav-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--dark);
  background: var(--cyan);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ── MAIN CONTENT ────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,194,212,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 800px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-title .cyan { color: var(--cyan); }

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--cyan);
  margin: 2rem 0;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  animation: fadeUp 0.6s 0.4s ease both;
}

.btn-primary {
  background: var(--cyan);
  color: var(--dark);
  padding: 0.8rem 2rem;
  border-radius: 2px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--cyan2);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(0,194,212,0.3);
  color: var(--cyan);
  padding: 0.8rem 2rem;
  border-radius: 2px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0,194,212,0.05);
}

/* ── SECTIONS ────────────────────────────────────────────────── */
section {
  padding: 5rem 3rem;
  position: relative;
}

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.section-rule {
  width: 40px;
  height: 2px;
  background: var(--cyan);
  margin-bottom: 1.5rem;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.5px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--dark2);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--cyan);
  transition: height 0.3s ease;
}

.card:hover { background: rgba(17,34,64,0.9); }
.card:hover::before { height: 100%; }

.card-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card-body {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── STAT ROW ────────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  margin: 2rem 0;
}

.stat-cell {
  padding: 1.8rem 1.5rem;
  border-right: 1px solid var(--rule);
}

.stat-cell:last-child { border-right: none; }

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 0.2rem;
}

/* ── FLOW ────────────────────────────────────────────────────── */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 2rem 0;
}

.flow-node {
  flex: 1;
  background: var(--dark2);
  padding: 1.5rem;
  position: relative;
  text-align: center;
}

.flow-node.highlight {
  background: var(--dark3);
  border: 1px solid rgba(0,194,212,0.3);
  box-shadow: 0 0 30px rgba(0,194,212,0.08);
}

.flow-node-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.flow-node-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.flow-node.highlight .flow-node-sub { color: var(--cyan); }

.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.3rem;
  color: var(--cyan);
  font-size: 0.9rem;
}

/* ── DIVIDER ─────────────────────────────────────────────────── */
.h-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 3rem;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: rgba(10,22,40,0.95);
  border-top: 1px solid var(--rule);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-logo span { color: var(--cyan); }

.footer-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { padding: 3rem 1.5rem; }
  section { padding: 3rem 1.5rem; }
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-direction: column; }
}
