/* ============================================================
   LeadFoundry — Production Styles
   Exact mockup CSS + responsive additions
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

/* ── EXACT MOCKUP CSS BELOW ── */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #080a0f;
  color: #e8edf5;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg: #080a0f;
  --surface: #111520;
  --surface2: #161c2a;
  --border: #1e2738;
  --accent: #00e5a0;
  --accent2: #0066ff;
  --text: #e8edf5;
  --muted: #6b7a96;
  --dim: #3a4560;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 99;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(8,10,15,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.logo {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.logo-icon { flex-shrink: 0; }
.logo-text { display: inline-flex; align-items: baseline; letter-spacing: -0.02em; }
.logo-word-lead { color: var(--text); }
.logo-word-foundry {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--text); font-family: 'Inter', sans-serif; }
.nav-links a { color: #b0bcd4; text-decoration: none; transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #000 !important;
  padding: 8px 18px; border-radius: 6px; font-weight: 500 !important;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }

/* ── HERO ── */
.hero {
  min-height: 90vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 48px 64px;
  position: relative;
  overflow: hidden;
}
/* subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,229,160,0.07) 0%, transparent 70%);
  top: 30%; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
/* grid lines */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,39,56,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,39,56,0.35) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px; position: relative; z-index: 1;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 500px; font-size: 17px; line-height: 1.65;
  color: var(--muted); font-weight: 300;
  margin-bottom: 40px; position: relative; z-index: 1;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 60px; position: relative; z-index: 1;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 15px;
  padding: 13px 26px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,229,160,0.25);
}
.btn-primary.btn-lg { padding: 14px 32px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 15px;
  padding: 13px 26px; border-radius: 8px; text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }

/* How it works */
.how-it-works {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  padding-top: 40px; border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.hiw-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 160px;
}
.hiw-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.hiw-num {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 4px; opacity: 0.7;
}
.hiw-title {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--text); margin-bottom: 4px; letter-spacing: -0.02em;
}
.hiw-desc {
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.hiw-arrow {
  display: flex; align-items: center; padding-top: 20px;
  margin: 0 16px;
}

/* ── DATA FIELDS SECTION ── */
.data-fields-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0d1017;
  padding: 80px 48px;
}
.data-fields-inner {
  max-width: 1140px;
  margin: 0 auto;
}
.data-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.df-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px; color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.df-item:hover {
  border-color: rgba(0,229,160,0.3);
  color: var(--text);
}
.df-item svg { flex-shrink: 0; }

/* ── SECTION SHARED ── */
.section { padding: 64px 48px; max-width: 1140px; margin: 0 auto; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 14px;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.section-title {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 14px;
}
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.65; max-width: 440px; }

/* ── FEATURES ── */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  margin-top: 56px;
}
.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.3s;
}
.feature-card:hover { background: var(--surface2); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 20px;
}
.feature-title {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 17px;
  margin-bottom: 10px; letter-spacing: -0.02em;
}
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }
.feature-tag {
  display: inline-block; margin-top: 16px;
  padding: 3px 9px; border-radius: 4px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  background: rgba(0,229,160,0.1); color: var(--accent);
  border: 1px solid rgba(0,229,160,0.2);
}

/* ── SUPPORTED BROWSERS STRIP ── */
.browsers {
  text-align: center; padding: 48px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #0d1017;
}
.browsers-label {
  font-family: 'DM Mono', monospace; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--dim); margin-bottom: 24px;
}
.browsers-list { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.browser-badge-link { display: inline-flex; transition: opacity 0.2s, transform 0.2s; }
.browser-badge-link:hover { opacity: 0.85; transform: translateY(-2px); }
.browser-badge { height: 48px; width: auto; display: block; border-radius: 6px; }

/* ── PRICING ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 56px; align-items: start;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px; position: relative;
  transition: transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--accent); background: var(--surface2);
}
.pricing-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 14px 14px 0 0;
}
.popular-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--accent); color: #000;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 100px;
}
.plan-name {
  font-family: 'DM Mono', monospace; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px;
}
.plan-price {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 44px;
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px;
}
.plan-price sup { font-size: 22px; vertical-align: top; margin-top: 8px; color: var(--muted); font-weight: 400; }
.plan-price span { font-size: 15px; color: var(--muted); font-weight: 300; }
.plan-desc {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 600; flex-shrink: 0; }
.plan-features li.off::before { content: '–'; color: var(--dim); }
.plan-features li.off { color: var(--dim); }
.btn-plan-solid {
  display: block; width: 100%; text-align: center;
  background: var(--accent); color: #000;
  padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-plan-solid:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-plan-outline {
  display: block; width: 100%; text-align: center;
  background: transparent; color: var(--muted);
  padding: 12px; border-radius: 8px; font-size: 14px;
  text-decoration: none; border: 1px solid var(--border); cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.btn-plan-outline:hover { border-color: var(--muted); color: var(--text); }

/* ── FAQ ── */
.faq-wrap { max-width: 720px; margin: 0 auto; padding: 64px 48px; }
.faq-list {
  margin-top: 48px; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left;
  padding: 22px 26px;
  background: var(--surface); border: none; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 15px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--surface2); }
.faq-plus {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 16px; flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-q.open .faq-plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  background: #0d1017;
}
.faq-a.open { max-height: 200px; padding: 0 26px 20px; }
.faq-a p {
  font-size: 14px; color: var(--muted); line-height: 1.7;
  padding-top: 14px; border-top: 1px solid var(--border);
}

/* ── FINAL CTA ── */
.cta-section {
  text-align: center; padding: 64px 48px;
  border-top: 1px solid var(--border); position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(0,229,160,0.05), transparent);
  pointer-events: none;
}
.cta-section h2 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.03em;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.cta-section p { font-size: 16px; color: var(--muted); margin-bottom: 36px; position: relative; z-index: 1; }
.cta-section .btn-primary { position: relative; z-index: 1; }

/* ── FOOTER ── */
footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'DM Mono', monospace; font-size: 12px; color: var(--dim);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }


/* ═════════════════════════════════════════════════════════════
   ADDITIONS: Mobile nav + Responsive
   ═════════════════════════════════════════════════════════════ */

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; border: none; background: none; cursor: pointer; z-index: 101;
}
.hamburger-line {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 98;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}

/* Tablet */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .hero { padding: 80px 24px 64px; }
  .section { padding: 80px 24px; }
  .faq-wrap { padding: 80px 24px; }
  .cta-section { padding: 80px 24px; }
  footer { padding: 28px 24px; }
  .browsers { padding: 48px 24px; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .features-grid { grid-template-columns: 1fr; }
  .how-it-works { gap: 0; }
  .data-fields-section { padding: 60px 24px; }
  .data-fields-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-overlay { display: block; }
  .nav-overlay.open { opacity: 1; pointer-events: all; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: 280px;
    max-width: 85vw;
    background: var(--surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; display: block; width: 100%; }
  .nav-links .nav-cta { margin-top: 16px; text-align: center; padding: 12px 18px; border-bottom: none; }

  .hero { min-height: auto; padding: 60px 20px 48px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .how-it-works { flex-direction: column; align-items: center; gap: 16px; }
  .hiw-arrow { transform: rotate(90deg); margin: 0; padding: 0; }
  .data-fields-section { padding: 48px 20px; }
  .data-fields-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .df-item { font-size: 12px; padding: 10px 12px; }

  .section { padding: 64px 20px; }
  .faq-wrap { padding: 64px 20px; }
  .cta-section { padding: 64px 20px; }
  .browsers { padding: 36px 20px; }
  .browsers-list { gap: 32px; }

  footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 20px; }
  .footer-links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .chip-track { animation: none; }
}
