/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1629;
  --surface: #141c32;
  --surface-2: #1c2540;
  --accent: #3b82f6;
  --accent-glow: #60a5fa;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --text: #e8edf5;
  --text-2: #8896b3;
  --text-3: #4a5578;
  --border: rgba(136, 150, 179, 0.1);
  --live: #22c55e;
  --pending: #f59e0b;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Figtree', sans-serif;
}
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* === HERO === */
.hero {
  padding: 5rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-lede {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 420px;
}
.hero-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.node-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.node-row.muted { opacity: 0.4; }
.node-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  min-width: 60px;
}
.node-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  max-width: 80px;
}
.node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.node-caption {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Flow mock */
.flow-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.08);
}
.flow-header {
  background: var(--bg-alt);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.flow-dot { width: 10px; height: 10px; border-radius: 50%; }
.flow-dot.red { background: #ff5f57; }
.flow-dot.yellow { background: #febc2e; }
.flow-dot.green { background: #28c840; }
.flow-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--text-2);
  margin-left: 0.5rem;
}
.flow-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.flow-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.flow-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.flow-icon.ai { background: var(--accent-dim); color: var(--accent-glow); }
.flow-icon.suggestion { background: rgba(245, 158, 11, 0.1); color: var(--pending); }
.flow-info { flex: 1; min-width: 0; }
.flow-name {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.125rem;
}
.flow-meta {
  font-size: 0.6875rem;
  color: var(--text-2);
}
.suggestion-text { color: var(--pending); }
.flow-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.flow-status.live { background: var(--live); box-shadow: 0 0 6px var(--live); }
.flow-status.pending { background: var(--pending); }

/* === PROBLEM === */
.problem { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem-inner { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.problem-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 3rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.problem-stat { border-left: 2px solid var(--accent); padding-left: 1.5rem; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.stat-desc { font-size: 0.9375rem; color: var(--text-2); line-height: 1.5; }
.problem-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-2);
  border-left: 3px solid var(--surface-2);
  padding-left: 1.5rem;
  max-width: 600px;
}

/* === DISCOVER === */
.discover { padding: 6rem 2rem; max-width: 1100px; margin: 0 auto; }
.discover-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.discover-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text);
  margin-bottom: 4rem;
  line-height: 1.15;
}
.discover-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step { flex: 1; }
.step-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.step p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; max-width: 280px; }
.step-connector { padding: 0 2rem; color: var(--text-3); display: flex; align-items: flex-start; padding-top: 1.5rem; }

/* === FEATURES === */
.features { background: var(--bg-alt); border-top: 1px solid var(--border); }
.features-inner { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; }
.features-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.features-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text);
  margin-bottom: 3.5rem;
  line-height: 1.15;
  max-width: 540px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-alt);
  padding: 2.5rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface); }
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-glow);
  margin-bottom: 1.5rem;
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.feature-card p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; }

/* === MANIFESTO === */
.manifesto { padding: 6rem 2rem; max-width: 1100px; margin: 0 auto; }
.manifesto-inner { max-width: 720px; }
.manifesto-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.manifesto-body {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.manifesto-tagline {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2.5rem;
}

/* === CLOSING === */
.closing {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.closing-inner { max-width: 1100px; margin: 0 auto; padding: 8rem 2rem; text-align: center; position: relative; z-index: 1; }
.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.closing-sub {
  font-size: 1rem;
  color: var(--text-2);
}

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem; }
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-tagline { font-size: 0.875rem; color: var(--text-3); margin-bottom: 2rem; }
.footer-links { display: flex; gap: 2rem; margin-bottom: 2rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.75rem; color: var(--text-3); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .flow-mock { max-width: 380px; margin: 0 auto; }
  .problem-grid { grid-template-columns: 1fr; gap: 2rem; }
  .discover-steps { flex-direction: column; gap: 2rem; }
  .step-connector { display: none; }
  .step p { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.5rem 4rem; }
  .hero-nodes { display: none; }
  .nav-links { display: none; }
}