/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-primary: #0a0a10;
  --bg-secondary: #0e0e18;
  --bg-card: #12121e;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --accent-blue: #4d7cff;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06d6a0;
  --glow-blue: rgba(77, 124, 255, 0.15);
  --glow-purple: rgba(139, 92, 246, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(77, 124, 255, 0.3);
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --max-w: 1140px;
}

html { scroll-behavior: smooth; }

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

/* ── Ambient background ──────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -40%; left: -20%;
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(77,124,255,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -30%; right: -15%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ──────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ── Navigation ──────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-brand span { color: var(--accent-blue); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ── Hero ────────────────────────────────────── */
.hero {
  padding: 180px 0 120px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(77,124,255,0.08) 0%, rgba(139,92,246,0.04) 40%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-blue);
  margin-bottom: 28px;
  background: var(--glow-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent-blue); }
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
.hero-protocols {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.protocol-tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.protocol-tag.highlight {
  border-color: var(--border-glow);
  color: var(--accent-blue);
  background: var(--glow-blue);
}

/* ── Section ─────────────────────────────────── */
.section { padding: 100px 0; }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-purple);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Feature Block ───────────────────────────── */
.feature {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.feature:last-child { border-bottom: none; }
.feature.reverse .feature-content { order: 1; }
.feature.reverse .feature-visual { order: 2; }

.feature-content { display: flex; flex-direction: column; gap: 14px; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--glow-blue);
  border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 4px;
}
.feature-title {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.feature-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}
.feature-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.feature-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── Feature Visual (image) ──────────────────── */
.feature-visual { position: relative; }
.feature-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.feature-img-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(77,124,255,0.2), transparent 50%, rgba(139,92,246,0.15));
  z-index: 1;
  pointer-events: none;
}
.feature-img-wrap img {
  display: block;
  width: 100%;
  border-radius: 12px;
  position: relative;
  z-index: 0;
}

/* ── Before/After comparison ─────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}
.compare-label.after { color: var(--accent-cyan); }

/* ── Tech Grid ───────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.tech-card {
  padding: 24px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.tech-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.tech-card-icon {
  font-size: 22px;
  margin-bottom: 12px;
}
.tech-card h4 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.tech-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ── Animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .compare-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
}
