/* SEO Fire — shared marketing-site design system */

:root {
  --bg: #09090b;
  --bg-alt: #0d0d0f;
  --surface: #18181b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #b8b8c2;
  --text-faint: #9999a3;
  --text-faintest: #82828c;
  --orange: #f97316;
  --amber: #fbbf24;
  --lime: #a3e635;
  --teal: #2dd4bf;
  --radius-card: 8px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.gradient-text {
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.serif-italic {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  z-index: 100;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
}

.site-nav .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.nav-links a {
  color: var(--text-faint);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 8px 20px;
  font-size: 13px;
}

.btn-primary:hover {
  background: #ea6a0e;
}

.btn-white {
  background: #fff;
  color: var(--bg);
  padding: 14px 28px;
  font-size: 15px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 14px 28px;
  font-size: 15px;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 10px;
  font-size: 13px;
}

/* ---------- hero ---------- */

.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.08);
  color: var(--orange);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

h1 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.06;
  letter-spacing: -1.5px;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero .sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-chips {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-chips span {
  font-size: 12px;
  color: var(--text-faintest);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- terminal mockup ---------- */

.terminal {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  max-width: 760px;
  margin: 56px auto 0;
  overflow: hidden;
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.terminal-bar .dots {
  display: flex;
  gap: 6px;
}

.terminal-bar .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.terminal-bar .dots span:nth-child(1) { background: #f87171; }
.terminal-bar .dots span:nth-child(2) { background: #fbbf24; }
.terminal-bar .dots span:nth-child(3) { background: #4ade80; }

.terminal-bar .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-left: 6px;
}

.terminal-body {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.95;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.terminal-body .muted { color: var(--text-faint); }
.terminal-body .white { color: var(--text); }
.terminal-body .fail { color: #f87171; }
.terminal-body .warn { color: var(--amber); }
.terminal-body .ok { color: var(--lime); }
.terminal-body .divider {
  border-top: 1px dashed var(--border);
  margin: 10px 0;
}

.terminal-note {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: var(--text-faintest);
  padding: 12px 22px 18px;
  border-top: 1px solid var(--border);
}

/* ---------- sections ---------- */

section {
  padding: 100px 0;
}

section.bordered {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

section.alt-bg {
  background: var(--bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

h2 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head .sub {
  color: var(--text-faint);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.split p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 480px;
}

.factor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.factor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.factor-card .icon {
  font-size: 18px;
  margin-bottom: 8px;
  display: block;
}

.factor-card .name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 4px;
}

.factor-card p {
  font-size: 12px;
  color: var(--text-faint);
  margin: 0;
  max-width: none;
}

/* before/after cards */

.compare-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.compare-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #f87171; }
.dot-lime { background: var(--lime); }

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.compare-row:last-of-type {
  border-bottom: none;
}

.compare-row .field {
  color: var(--text-faint);
  min-width: 64px;
  flex-shrink: 0;
}

.compare-row .value {
  color: var(--text-muted);
  flex: 1;
}

.badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-red { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.badge-amber { background: rgba(251, 191, 36, 0.12); color: var(--amber); }
.badge-lime { background: rgba(163, 230, 53, 0.12); color: var(--lime); }

.score-pill {
  margin-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 500;
}

.score-red { color: #f87171; }
.score-lime { color: var(--lime); }

.compare-arrow {
  text-align: center;
  padding: 18px 0;
  font-size: 12px;
  color: var(--text-faint);
}

/* auto-fix section */

.autofix-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.autofix-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.autofix-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.25);
  color: var(--lime);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.pipeline-step {
  position: relative;
  padding: 20px 18px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.pipeline-step .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-faintest);
  margin-bottom: 10px;
}

.pipeline-step .title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}

.pipeline-step p {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0;
  max-width: none;
  line-height: 1.6;
}

/* cards / pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.featured {
  border-color: rgba(249, 115, 22, 0.4);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 12px;
}

.plan-price {
  font-family: "JetBrains Mono", monospace;
  font-size: 34px;
  color: #fff;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 13px;
  color: var(--text-faint);
}

.plan-credits {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex: 1;
}

.plan-features li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.plan-features li:first-child {
  border-top: none;
}

.plan-features li::before {
  content: "✓";
  color: var(--lime);
  flex-shrink: 0;
}

.plan-cta {
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.plan-cta.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.note-box {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.note-box strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
}

/* final cta */

.final-cta {
  text-align: center;
  position: relative;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at center, rgba(249, 115, 22, 0.08), transparent 70%);
  pointer-events: none;
}

.final-cta .wrap {
  position: relative;
}

.final-cta .note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-faintest);
}

/* footer */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-faintest);
}

/* legal / content pages */

.legal-page {
  padding: 140px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  text-align: left;
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 56px);
}

.legal-page .updated {
  font-size: 12.5px;
  color: var(--text-faintest);
  margin-bottom: 48px;
  font-family: "JetBrains Mono", monospace;
}

.legal-page h2 {
  font-size: 22px;
  margin-top: 44px;
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page a.inline-link {
  color: var(--orange);
  text-decoration: underline;
}

/* fade-in */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ---------- contact page ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.contact-email {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  color: var(--orange);
  display: inline-block;
  margin: 18px 0 22px;
}

/* ---------- responsive ---------- */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .pipeline-steps {
    grid-template-columns: 1fr;
  }

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

  footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}

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