/* =========================================
   FixRunner — Dark Developer Tooling Aesthetic
   Typography: Syne (display) + DM Sans (body)
   Palette: #0c0e14 bg / #00e5ff cyan / #ff6b35 orange
   ========================================= */

:root {
  --bg: #0c0e14;
  --bg-2: #111420;
  --bg-3: #161b28;
  --fg: #e8ecf4;
  --fg-muted: #6b7a99;
  --fg-dim: #4a5270;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --orange: #ff6b35;
  --orange-dim: rgba(255, 107, 53, 0.15);
  --green: #39d98a;
  --red: #ff4f6a;
  --border: rgba(255,255,255,0.06);
  --radius: 12px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 96px 32px 80px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-40%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 20px;
}
.headline-accent {
  color: var(--orange);
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* Terminal */
.hero-terminal {
  width: 100%;
  max-width: 680px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  margin-bottom: 48px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green { background: #28c840; }
.term-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.terminal-body {
  padding: 20px 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.7;
}
.term-line { display: flex; align-items: baseline; gap: 8px; }
.term-line.muted { color: var(--fg-dim); }
.term-line.error { color: var(--red); }
.term-line.success { color: var(--green); }
.term-line.cyan { color: var(--cyan); }
.term-prompt { color: var(--cyan); font-weight: 600; }
.term-cmd { color: var(--fg); }
.term-spacer { height: 16px; }
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 680px;
}
.metric {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
}
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.5px;
}
.metric-label {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.metric-div {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- SECTION COMMONS ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--fg);
  line-height: 1.15;
}

/* ---- HOW IT WORKS ---- */
.howitworks {
  padding: 96px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.step-card {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-dim);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.step-icon {
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-arrow {
  flex-shrink: 0;
  margin-top: -40px;
}

/* ---- FEATURES ---- */
.features {
  padding: 96px 32px;
}
.features-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-2px);
}
.feature-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border-radius: 10px;
  margin-bottom: 16px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- WHY ---- */
.why {
  padding: 96px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.why-left .section-tag { text-align: left; }
.why-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--fg);
  line-height: 1.2;
  margin: 12px 0 20px;
  text-align: left;
}
.why-body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.why-stat-row {
  display: flex;
  gap: 24px;
}
.why-stat {}
.why-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -1px;
}
.why-stat-desc {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
  max-width: 160px;
  line-height: 1.4;
}

/* Comparison cards */
.why-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comparison-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.comp-header {
  margin-bottom: 16px;
}
.comp-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.comparison-card:first-child .comp-label { color: var(--fg-dim); }
.comparison-card:last-child .comp-label { color: var(--green); }
.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comp-list li {
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}
.comp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-dim);
}
.comparison-card:last-child .comp-list li::before { background: var(--green); }

/* ---- CLOSING ---- */
.closing {
  padding: 120px 32px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.closing-inner { position: relative; z-index: 1; }
.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,107,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dim);
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: 100px;
  padding: 8px 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.cta-note {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.footer-copy {
  font-size: 13px;
  color: var(--fg-dim);
  margin: 0 auto;
}
.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-link {
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--fg-muted); }
.footer-sep { color: var(--fg-dim); font-size: 12px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 64px 20px 60px; }
  .hero-sub { font-size: 16px; }
  .steps-grid { flex-direction: column; gap: 12px; }
  .step-arrow { transform: rotate(90deg); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .why-content { grid-template-columns: 1fr; gap: 40px; }
  .why-left .section-tag { text-align: center; }
  .why-title { text-align: center; }
  .why-body { text-align: center; }
  .why-stat-row { justify-content: center; }
  .hero-metrics { flex-direction: column; }
  .metric-div { width: 80%; height: 1px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-headline { letter-spacing: -1px; }
  .closing-headline { letter-spacing: -0.8px; }
}