/* === TOKENS === */
:root {
  --bg: #080d14;
  --bg-card: #0d1520;
  --bg-elevated: #111d2e;
  --border: rgba(94, 234, 212, 0.12);
  --teal: #5eead4;
  --teal-dim: rgba(94, 234, 212, 0.15);
  --text: #e8f0f8;
  --text-muted: #6a8ba0;
  --text-dim: #3d5c6e;
  --red: #f87171;
  --yellow: #fbbf24;
  --green: #4ade80;
  --radius: 8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 40px;
  background: rgba(8, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

/* === HERO === */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 40px 80px;
  text-align: center;
}
.hero-eyebrow {
  margin-bottom: 24px;
}
.eyebrow-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(94, 234, 212, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(160deg, #ffffff 0%, #8ab8d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* === TERMINAL === */
.hero-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: left;
}
.terminal-bar {
  background: var(--bg-elevated);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.log-entry {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.log-entry:last-child { border-bottom: none; }
.log-time { color: var(--text-dim); flex-shrink: 0; }
.log-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tag-trigger { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.tag-analyze { background: rgba(251, 191, 36, 0.12); color: var(--yellow); }
.tag-pr { background: rgba(94, 234, 212, 0.1); color: var(--teal); }
.tag-merge { background: rgba(74, 222, 128, 0.12); color: var(--green); }
.tag-done { background: rgba(94, 234, 212, 0.15); color: var(--teal); }
.log-msg { color: var(--text-muted); }
.mono { color: var(--teal); font-family: 'IBM Plex Mono', monospace; }
.highlight { color: var(--green); font-weight: 600; }

/* === INTEGRATIONS === */
.hero-integrations {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.integration-label { font-size: 13px; color: var(--text-dim); }
.integration-logos { display: flex; gap: 8px; }
.logo-pill {
  font-size: 12px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
}

/* === SECTIONS === */n.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* === HOW IT WORKS === */
.howitworks {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.step-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--teal);
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-arrow { color: var(--text-dim); }

/* === FEATURES === */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid var(--border);
}
.features .section-title { max-width: 540px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* === TRIGGERS === */
.triggers {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid var(--border);
}
.triggers-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.triggers-copy h2 { font-size: 32px; margin-bottom: 16px; letter-spacing: -0.02em; }
.triggers-copy p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.triggers-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.triggers-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.triggers-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.triggers-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.config-block {}
.config-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.text-sm { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.config-code {
  padding: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre;
}
.cfg-comment { color: var(--text-dim); }
.cfg-key { color: #7dd3fc; }
.cfg-val { color: var(--teal); }
.cfg-bool { color: #fb923c; }

/* === PRICING === */
.pricing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.pricing-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 40px; }
.pricing-card {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 16px;
  padding: 40px 56px;
  text-align: left;
  max-width: 480px;
}
.pricing-header { margin-bottom: 28px; }
.pricing-tier { font-size: 13px; font-weight: 600; font-family: 'IBM Plex Mono', monospace; color: var(--teal); margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; }
.price-period { font-size: 16px; color: var(--text-muted); }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-feature {
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}
.pricing-cta { display: flex; flex-direction: column; gap: 4px; }
.cta-trial { font-size: 18px; font-weight: 600; color: var(--teal); }
.cta-note { font-size: 13px; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; }

/* === CLOSING === */
.closing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  border-top: 1px solid var(--border);
}
.closing-inner { text-align: center; }
.closing h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 20px; }
.closing p { font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0 auto 56px; line-height: 1.7; }
.closing-stats { display: flex; align-items: center; justify-content: center; gap: 40px; }
.stat-value { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; color: var(--teal); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { font-size: 16px; font-weight: 700; color: var(--teal); }
.footer-desc { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.footer-copy { font-size: 13px; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; }

/* === MOBILE === */
@media (max-width: 768px) {
  .hero { padding: 120px 24px 60px; }
  .howitworks, .features, .triggers, .pricing, .closing { padding: 60px 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .triggers-inner { grid-template-columns: 1fr; gap: 40px; }
  .pricing-card { padding: 28px 24px; }
  .closing-stats { flex-direction: column; gap: 24px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .nav { padding: 0 24px; }
}