/* ================================
   LeadStack — Theme CSS
   ================================ */

:root {
  --bg: #FAFAF7;
  --fg: #1C1C1A;
  --fg-muted: #6B6B63;
  --green-deep: #1B4332;
  --green-dark: #0F2A1D;
  --green-mid: #2D6A4F;
  --green-light: #3D8B6E;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --border: #E4E4DC;
  --card-bg: #FFFFFF;
}

/* ---- Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Nav ---- */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  background: var(--green-deep);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Section commons ---- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--fg);
  line-height: 1.2;
  margin: 10px 0 16px;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
}
.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(48px, 5.5vw, 72px);
  color: var(--green-deep);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-val {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--green-deep);
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 24px;
}

/* Hero visual — site card */
.hero-visual {
  display: flex;
  justify-content: center;
}
.site-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 24px 64px rgba(27, 67, 50, 0.12), 0 4px 16px rgba(27, 67, 50, 0.06);
}
.site-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.site-badge {
  background: var(--green-deep);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.site-url {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
.site-snippet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.site-snippet-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 4px;
}
.site-snippet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-snippet-label {
  font-size: 13px;
  color: var(--fg-muted);
}
.site-snippet-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.site-snippet-row.highlight {
  background: var(--green-deep);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 4px -4px 0;
}
.site-snippet-row.highlight .site-snippet-label {
  color: rgba(255,255,255,0.7);
}
.site-snippet-row.highlight .site-snippet-val.gold {
  color: var(--gold-light);
  font-weight: 700;
}
.site-map-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.map-dot.active {
  background: var(--green-mid);
}
.map-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: 4px;
}

/* ---- Mechanics ---- */
.mechanics {
  background: var(--green-deep);
  padding: 96px 0;
}
.mechanics .section-label {
  color: var(--gold-light);
}
.mechanics .section-title {
  color: white;
}
.mechanics .section-sub {
  color: rgba(255,255,255,0.65);
}
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}
.mech-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 32px;
}
.mech-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.7;
}
.mech-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.mech-body {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
.mech-quote {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
}
.mech-quote p {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: white;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}
.quote-mark { display: none; }
.quote-attr {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ---- Numbers ---- */
.numbers {
  padding: 96px 0;
  background: var(--bg);
}
.numbers-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 40px;
}
.num-col {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  margin-right: 16px;
}
.num-col:last-of-type { margin-right: 0; }
.num-equation {
  margin-bottom: 16px;
}
.num-val {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  color: var(--green-deep);
  line-height: 1;
  display: block;
}
.num-label {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
  display: block;
}
.num-result {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.result-text {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--fg);
  display: block;
  line-height: 1;
}
.result-label {
  font-size: 13px;
  color: var(--fg-muted);
  display: block;
  margin-top: 4px;
}
.num-sep {
  display: flex;
  align-items: center;
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--gold);
  padding: 0 8px;
}
.numbers-note {
  font-size: 15px;
  color: var(--fg-muted);
  text-align: center;
  font-style: italic;
}

/* ---- Niches ---- */
.niches {
  padding: 96px 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}
.niche-list {
  display: flex;
  flex-direction: column;
}
.niche-row {
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}
.niche-row:first-child { border-top: 1px solid var(--border); }
.niche-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--fg);
}
.niche-meta {
  font-size: 14px;
  color: var(--fg-muted);
}
.niche-rent {
  font-weight: 600;
  color: var(--green-deep);
  font-size: 15px;
  text-align: right;
}

/* ---- Closing ---- */
.closing {
  padding: 96px 0;
  background: var(--green-dark);
}
.closing .section-inner {
  max-width: 700px;
}
.closing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.closing-body {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.closing-rule {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 40px 0;
}
.closing-statement {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--gold-light);
  font-style: italic;
  line-height: 1.5;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--green-deep);
}
.footer-tagline {
  font-size: 12px;
  color: var(--fg-muted);
}
.footer-copy {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    order: -1;
  }
  .site-card {
    max-width: 100%;
  }
  .mechanics-grid {
    grid-template-columns: 1fr;
  }
  .numbers-grid {
    flex-direction: column;
    gap: 12px;
  }
  .num-col { margin-right: 0; }
  .num-sep { display: none; }
  .niche-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .niche-rent { text-align: left; }
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stat-divider { display: none; }
}