/* ===== TOKENS ===== */
:root {
  --bg: #0f0f1a;
  --bg-card: #14141f;
  --bg-card-hover: #1a1a27;
  --fg: #f0f0f5;
  --fg-muted: #8a8a9a;
  --fg-subtle: #4a4a5a;
  --accent: #00E5B8;
  --accent-dim: rgba(0,229,184,0.08);
  --accent-mid: rgba(0,229,184,0.2);
  --warm: #FF6B35;
  --warm-dim: rgba(255,107,53,0.08);
  --border: rgba(240,240,245,0.07);
  --border-strong: rgba(240,240,245,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

/* ===== 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); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding: 4px 10px; border: 1px solid var(--accent-mid); border-radius: 100px; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

/* Animated grid background */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,184,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.grid-nodes { position: absolute; inset: 0; }
.node {
  position: absolute; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(0,229,184,0.3);
  animation: nodePulse 3s ease-in-out infinite;
}
.n1 { top: 20%; left: 30%; animation-delay: 0s; }
.n2 { top: 35%; left: 70%; animation-delay: 0.5s; }
.n3 { top: 55%; left: 45%; animation-delay: 1s; }
.n4 { top: 70%; left: 25%; animation-delay: 1.5s; }
.n5 { top: 45%; left: 85%; animation-delay: 2s; }
.n6 { top: 75%; left: 65%; animation-delay: 0.8s; }

@keyframes nodePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

.grid-connector {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,184,0.3), transparent);
  transform-origin: left center;
  animation: connectorMove 8s ease-in-out infinite;
}
.c1 { width: 200px; top: 20%; left: 30%; transform: rotate(15deg); animation-duration: 7s; }
.c2 { width: 150px; top: 35%; left: 45%; transform: rotate(-10deg); animation-duration: 9s; animation-delay: 1s; }
.c3 { width: 180px; top: 55%; left: 55%; transform: rotate(5deg); animation-duration: 6s; animation-delay: 2s; }
.c4 { width: 120px; top: 70%; left: 35%; transform: rotate(-8deg); animation-duration: 10s; animation-delay: 0.5s; }
@keyframes connectorMove {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.2; }
}

/* Hero content layout */
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 420px; gap: 80px;
  max-width: 1280px; margin: 0 auto; width: 100%;
  align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 24px; }
.eyebrow-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: nodePulse 2s ease-in-out infinite; }
.hero-title { font-size: clamp(52px, 6vw, 84px); font-weight: 900; line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 28px; }
.title-accent { color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--fg-muted); line-height: 1.7; max-width: 500px; }

/* System visualization panel */
.system-viz {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.sv-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(0,229,184,0.04); }
.sv-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.sv-live { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); padding: 3px 8px; border-radius: 100px; border: 1px solid var(--accent-mid); }
.sv-lines { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.sv-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.02); border: 1px solid var(--border); }
.sv-icon { font-size: 10px; color: var(--fg-muted); width: 16px; }
.sv-icon.ai { color: var(--accent); }
.sv-name { font-size: 13px; flex: 1; color: var(--fg); }
.sv-status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 100px; }
.sv-status.on { color: var(--accent); background: var(--accent-dim); }
.sv-revenue { padding: 16px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.sv-rev-label { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); }
.sv-rev-val { font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }

.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg-subtle); font-size: 12px; z-index: 1; }

/* ===== MANIFESTO ===== */
.manifesto { padding: 100px 48px; }
.manifesto-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.manifesto-text { font-size: clamp(22px, 2.5vw, 30px); font-weight: 300; line-height: 1.7; color: var(--fg-muted); }
.manifesto-text strong { color: var(--fg); font-weight: 500; }
.manifesto-rule { width: 40px; height: 1px; background: var(--accent); margin: 40px auto; }
.manifesto-sub { font-size: 15px; color: var(--fg-muted); line-height: 1.8; }
.m-highlight { color: var(--warm); }

/* ===== FEATURES ===== */
.features { padding: 80px 48px 100px; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-header { text-align: center; margin-bottom: 64px; }
.section-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 16px; }
.features-title { font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 1200px; margin: 0 auto; }
.feat { background: var(--bg-card); padding: 40px 36px; transition: background 0.2s; }
.feat:hover { background: var(--bg-card-hover); }
.feat-icon { color: var(--accent); margin-bottom: 20px; }
.feat h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.feat p { font-size: 14px; color: var(--fg-muted); line-height: 1.7; }

/* ===== MILESTONES ===== */
.milestones { padding: 100px 48px; }
.milestones-header { text-align: center; margin-bottom: 72px; }
.milestones-title { font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.milestones-sub { font-size: 16px; color: var(--fg-muted); }
.milestones-track { max-width: 860px; margin: 0 auto; position: relative; }
.milestones-track::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: var(--border-strong); }
.milestone { display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--border); align-items: start; }
.milestone:last-child { border-bottom: none; }
.ms-num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--accent-mid); border-radius: 50%; background: var(--accent-dim); }
.ms-body { padding-top: 4px; }
.ms-stage { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); display: block; margin-bottom: 4px; }
.ms-amount { font-size: 36px; font-weight: 900; letter-spacing: -0.03em; color: var(--fg); display: block; margin-bottom: 12px; }
.ms-body p { font-size: 14px; color: var(--fg-muted); line-height: 1.7; max-width: 520px; }

/* ===== CLOSING ===== */
.closing { padding: 100px 48px 120px; }
.closing-inner { max-width: 900px; margin: 0 auto; }
.closing-rule { width: 1px; height: 64px; background: linear-gradient(to bottom, var(--accent), transparent); margin-bottom: 48px; }
.closing-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.closing-title { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.closing-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.8; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 40px 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--fg-muted); }
.footer-note { font-size: 14px; color: var(--fg-subtle); margin-left: auto; }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--fg-subtle); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-content { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 80px; }
  .manifesto { padding: 72px 24px; }
  .features { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .milestones { padding: 72px 24px; }
  .milestones-track::before { display: none; }
  .milestone { grid-template-columns: 1fr; gap: 16px; }
  .ms-amount { font-size: 28px; }
  .closing { padding: 72px 24px 96px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-note { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 42px; }
  .nav-tag { display: none; }
}