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

:root {
  --bg: #0D0D0F;
  --bg-alt: #111114;
  --surface: #161619;
  --surface-hover: #1E1E22;
  --fg: #F0EDE8;
  --fg-muted: #8A8880;
  --fg-dim: #5A5854;
  --accent: #B4FF4A;
  --accent-dim: #7AB82A;
  --accent-glow: rgba(180, 255, 74, 0.15);
  --border: rgba(255,255,255,0.06);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(13,13,15,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(180, 255, 74, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 255, 74, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-overline::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  font-weight: 300;
}

.hero-visual {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.signal-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.signal-arrow {
  display: flex;
  justify-content: center;
  transform: rotate(90deg);
}

.signal-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.node-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-trigger .node-icon {
  border-color: rgba(180,255,74,0.3);
  box-shadow: 0 0 20px rgba(180,255,74,0.1);
}

.node-trigger .node-icon::after {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  opacity: 0.8;
}

.agent-icon {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(180,255,74,0.08) 100%);
  border-color: rgba(180,255,74,0.4);
}

.agent-icon::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.action-icon {
  border-color: rgba(180,255,74,0.2);
}

.action-icon::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-dim);
  opacity: 0.6;
}

.node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--fg-dim);
  text-align: center;
  line-height: 1.4;
}

/* --- FEATURES --- */
.features {
  padding: 120px 40px;
  background: var(--bg-alt);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-header {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.features-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: rgba(180,255,74,0.15);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(180,255,74,0.2);
  margin-bottom: 24px;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.7;
}

.feature-name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* --- PROCESS --- */
.process {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-overline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.process-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 80px;
}

.process-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 4px;
  flex-shrink: 0;
}

.step-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), rgba(180,255,74,0.2), var(--border));
  flex-shrink: 0;
  margin-top: 28px;
}

/* --- PROOF --- */
.proof {
  padding: 80px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.proof-stat {
  flex: 1;
  text-align: center;
  padding: 0 40px;
}

.proof-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.proof-label {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
  font-weight: 300;
}

.proof-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
}

/* --- CLOSING --- */
.closing {
  padding: 160px 40px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.closing-content {
  max-width: 800px;
}

.closing-overline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 24px;
}

.closing-vibe {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

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

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.footer-desc {
  font-size: 13px;
  color: var(--fg-dim);
}

.footer-meta {
  display: flex;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: left;
    gap: 48px;
  }

  .hero-visual {
    position: static;
    transform: none;
    width: 100%;
    align-items: flex-start;
  }

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

  .process-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .step-connector {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--border), rgba(180,255,74,0.2), var(--border));
    margin: 0;
    margin-left: 20px;
  }

  .proof-inner {
    flex-direction: column;
    gap: 40px;
  }

  .proof-divider {
    width: 80px;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .nav-tagline {
    display: none;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 40px;
  }

  .process-title {
    font-size: 32px;
  }

  .closing-headline {
    font-size: 36px;
  }

  .features, .process, .closing {
    padding-left: 24px;
    padding-right: 24px;
  }
}