:root {
  --bg: #0a0c10;
  --bg-alt: #0d1016;
  --ink: #eef1f6;
  --ink-dim: #9aa4b2;
  --line: rgba(255,255,255,0.08);
  --accent: #5b8def;
  --accent-2: #7c5cff;
  --card-bg: #10141c;
  --radius: 14px;
  --font: -apple-system, "SF Pro Display", "Segoe UI", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,12,16,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 14px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 80px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-svg { width: 100%; height: 100%; }
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero-sub {
  margin-top: 28px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  width: 100%;
  max-width: 900px;
}
.waveform { width: 100%; height: auto; display: block; }
.wave-noisy path { opacity: 0.55; }
.wave-clean path {
  filter: drop-shadow(0 0 6px rgba(91,141,239,0.5));
}

@media (prefers-reduced-motion: no-preference) {
  .wave-clean path {
    stroke-dasharray: 6 4;
    animation: dash 6s linear infinite;
  }
}
@keyframes dash {
  to { stroke-dashoffset: -200; }
}

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 640px;
}
.lede {
  margin-top: 20px;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 620px;
}

.tag-grid {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--ink-dim);
}
.tag-grid-wide span { font-size: 15px; }

.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(91,141,239,0.4); transform: translateY(-2px); }
.card-icon {
  width: 40px; height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--ink-dim); font-size: 0.95rem; }

.pipeline {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pipe-step {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}
.pipe-final { border-color: rgba(91,141,239,0.5); background: linear-gradient(135deg, rgba(91,141,239,0.12), rgba(124,92,255,0.12)); }
.pipe-num { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.pipe-arrow { color: var(--ink-dim); font-size: 14px; }

.philosophy { text-align: center; }
.philosophy .container { display: flex; flex-direction: column; align-items: center; }
.philosophy-quote {
  margin: 0 auto;
  max-width: 700px;
}
.philosophy .lede { margin-left: auto; margin-right: auto; }

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-weight: 600; letter-spacing: 0.1em; font-size: 14px; }
.footer-tag { color: var(--ink-dim); font-size: 13px; margin-top: 4px; }
.footer-copy { color: var(--ink-dim); font-size: 13px; }

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

@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .btn { padding: 13px 22px; font-size: 13px; }
}
