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

:root {
  --bg: #0A0E1A;
  --bg-alt: #0F1629;
  --surface: #141D2E;
  --border: rgba(0, 212, 255, 0.08);
  --accent: #00D4FF;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.25);
  --text: #E8EEF4;
  --text-muted: #7A8FA6;
  --text-dim: #4A5A6E;
  --positive: #00E5A0;
  --warning: #FFB800;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 14, 26, 0.7);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--accent-glow);
  border-radius: 100px;
  background: var(--accent-dim);
  width: fit-content;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.headline-accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-lede {
  max-width: 540px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Stack visual */
.hero-stack-visual {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}

.stack-card {
  flex: 1;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.3s;
}

.stack-card:hover {
  border-color: var(--accent-glow);
}

.stack-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.stack-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.stack-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.stack-connector {
  display: flex;
  align-items: center;
  padding: 0 4px;
  align-self: center;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 64px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step-card {
  background: var(--bg-alt);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.step-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.step-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-facts li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.step-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s;
}

.feature-item:hover {
  background: var(--surface);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== METRICS ===== */
.metrics {
  position: relative;
  padding: 80px 32px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.metrics-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 60%);
}

.metrics-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.metric-card {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.metrics-footnote {
  max-width: 1200px;
  margin: 24px auto 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

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

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

blockquote {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
  border: none;
  padding: 0;
}

.manifesto-cta {
  margin-top: 48px;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--accent-glow);
  border-radius: 100px;
  background: var(--accent-dim);
}

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

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.closing p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stack-visual {
    flex-direction: column;
  }

  .stack-connector {
    transform: rotate(90deg);
    align-self: center;
    padding: 4px 0;
  }

  .nav-tagline {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero, .how-it-works, .features, .metrics, .manifesto, .closing {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
