/* =========================================================
   SEO Gap Finder — Landing Page (Brutalist Archetype)
   Monospace type, raw borders, stark contrast, exposed grid
   Brand: #0f172a (navy), #38bdf8 (sky blue), #f59e0b (amber)
   ========================================================= */

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

:root {
  --navy: #0f172a;
  --sky: #38bdf8;
  --amber: #f59e0b;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --black: #020617;

  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --border: 3px solid var(--navy);
  --border-light: 2px solid var(--gray-200);
  --border-accent: 3px solid var(--sky);
  --radius: 0px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--sky);
}

.strike {
  text-decoration: line-through;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
}

/* =========================================================
   NAV
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--sky);
}

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

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-tag {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gray-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.skip-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sky);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border: 2px solid var(--sky);
  transition: background 0.15s, color 0.15s;
}

.skip-link:hover {
  background: var(--sky);
  color: var(--navy);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  background: var(--navy);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(56, 189, 248, 0.06) 39px,
      rgba(56, 189, 248, 0.06) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(56, 189, 248, 0.06) 39px,
      rgba(56, 189, 248, 0.06) 40px
    );
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid var(--amber);
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-form {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 0;
}

.input-brutalist {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 14px 18px;
  border: 3px solid var(--gray-600);
  background: var(--gray-800);
  color: var(--white);
  outline: none;
  flex: 1;
  min-width: 0;
  transition: border-color 0.15s;
}

.input-brutalist::placeholder {
  color: var(--gray-400);
}

.input-brutalist:focus {
  border-color: var(--sky);
}

.btn-brutalist {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border: 3px solid;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sky);
  color: var(--navy);
  border-color: var(--sky);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 8px;
  min-height: 1.4em;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: var(--amber);
}

.hero-skip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-400);
}

.hero-skip a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hero-skip a:hover {
  border-bottom-color: var(--sky);
}

/* Terminal window */
.terminal-window {
  background: var(--black);
  border: 3px solid var(--gray-600);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
}

.terminal-bar {
  background: var(--gray-800);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--gray-600);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: var(--amber); }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
  color: var(--gray-400);
  font-size: 0.7rem;
  margin-left: 8px;
}

.terminal-body {
  padding: 18px;
  line-height: 2;
}

.terminal-line {
  color: var(--gray-200);
}

.t-prompt {
  color: var(--sky);
  font-weight: 700;
}

.t-dim {
  color: var(--gray-400);
}

.t-ok {
  color: #4ade80;
  font-weight: 700;
}

.t-warn {
  color: var(--amber);
  font-weight: 700;
}

.t-err {
  color: #ef4444;
  font-weight: 700;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--sky);
  animation: blink 1s step-end infinite;
  margin-top: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */

.section {
  padding: 80px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
  padding-left: 2px;
}

.section-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* =========================================================
   PROBLEM SECTION
   ========================================================= */

.section-problem {
  background: var(--off-white);
  border-top: var(--border);
  border-bottom: var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 40px;
}

.problem-card {
  padding: 32px;
  border: var(--border);
  margin-right: -3px;
  margin-bottom: -3px;
}

.problem-card:nth-child(2) {
  border-left-color: var(--sky);
  border-right-color: var(--sky);
}

.problem-stat {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
}

.problem-card:nth-child(3) .problem-stat {
  color: var(--amber);
}

.problem-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 8px;
}

.problem-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-400);
}

.problem-kicker {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.7;
  max-width: 700px;
  padding: 24px;
  border-left: 4px solid var(--sky);
  background: var(--white);
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */

.section-how {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.step-card {
  padding: 36px 28px;
  border: var(--border);
  margin-right: -3px;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.3;
}

.step-border {
  width: 40px;
  height: 3px;
  background: var(--navy);
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--navy);
}

.step-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* =========================================================
   FEATURES
   ========================================================= */

.section-features {
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--sky);
}

.section-features .section-headline {
  color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.feature-card {
  padding: 36px;
  border: 2px solid var(--gray-800);
}

.feature-card:nth-child(1) {
  border-right-color: var(--gray-600);
  border-bottom-color: var(--gray-600);
}

.feature-card:nth-child(2) {
  border-bottom-color: var(--gray-600);
}

.feature-card:nth-child(3) {
  border-right-color: var(--gray-600);
}

.feature-icon {
  color: var(--sky);
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sky);
}

.feature-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--white);
}

.feature-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* =========================================================
   SOCIAL PROOF
   ========================================================= */

.section-proof {
  background: var(--off-white);
  padding: 60px 0;
  border-top: var(--border);
  border-bottom: var(--border);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.proof-card {
  text-align: center;
  padding: 32px 20px;
  border-right: var(--border);
}

.proof-card:last-child {
  border-right: none;
}

.proof-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.proof-card:nth-child(4) .proof-value {
  text-decoration: line-through;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
}

.proof-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* =========================================================
   SECOND CTA
   ========================================================= */

.section-cta {
  background: var(--white);
  padding: 80px 0;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  border: var(--border);
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid var(--sky);
  pointer-events: none;
}

.cta-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .hero-form .form-row {
  justify-content: center;
}

.cta-box .input-brutalist {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
  max-width: 300px;
}

.cta-box .input-brutalist:focus {
  border-color: var(--sky);
}

.cta-skip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 16px;
}

.cta-skip a {
  color: var(--sky);
  text-decoration: none;
}

.cta-skip a:hover {
  text-decoration: underline;
}

/* =========================================================
   FAQ
   ========================================================= */

.section-faq {
  background: var(--off-white);
  border-top: var(--border);
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: var(--border);
}

.faq-item:first-child {
  border-top: var(--border);
}

.faq-question {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--sky);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  transition: transform 0.2s;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  border-color: var(--sky);
  color: var(--sky);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  padding-bottom: 20px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--navy);
  padding: 32px 0;
  border-top: 3px solid var(--sky);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-400);
}

.footer-copy a {
  color: var(--sky);
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 500px;
  }

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

  .problem-card {
    margin-right: 0;
  }

  .problem-card:nth-child(2) {
    border-left-color: var(--navy);
    border-right-color: var(--navy);
  }

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

  .step-card {
    margin-right: 0;
  }

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

  .feature-card {
    border-right-color: var(--gray-800) !important;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2) {
    border-bottom-color: var(--gray-600) !important;
  }

  .feature-card:nth-child(3) {
    border-bottom-color: var(--gray-600) !important;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-card:nth-child(2) {
    border-right: none;
  }

  .proof-card:nth-child(1),
  .proof-card:nth-child(2) {
    border-bottom: var(--border);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 48px 0 64px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .input-brutalist {
    border-bottom-width: 0;
  }

  .form-row .btn-brutalist {
    border-top-width: 3px;
  }

  .cta-box .input-brutalist {
    max-width: 100%;
  }

  .cta-box {
    padding: 32px 20px;
  }

  .cta-box::before {
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
  }

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

  .proof-card {
    border-right: none;
    border-bottom: var(--border);
  }

  .proof-card:last-child {
    border-bottom: none;
  }

  .nav-inner {
    padding: 12px 16px;
  }

  .section {
    padding: 56px 0;
  }

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