/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #F8F4EE;
  --bg-alt: #F0EAE1;
  --fg: #1B4332;
  --fg-muted: #3D6252;
  --fg-light: #52796F;
  --accent: #74C69D;
  --accent-dark: #40916C;
  --white: #FFFFFF;
  --border: #D4E8DC;
  --shadow: rgba(27, 67, 50, 0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ===== RESET + BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }

::selection { background: var(--accent); color: var(--fg); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ===== LAYOUT ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.section-label.light { color: var(--accent); }

.section-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  max-width: 680px;
  margin-bottom: 20px;
}

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

.section-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-light);
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--fg);
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--fg-muted); }

.nav-cta-secondary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  background: #E8F5EC;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
  border: 1.5px solid #74C69D;
}

.nav-cta-secondary:hover { background: #D8EFDC; }

.nav-home-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-home-link:hover { color: var(--fg); }

/* ===== HERO CTA BUTTONS ===== */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--fg);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.hero-cta-primary:hover { background: var(--fg-muted); }

.hero-cta-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-cta-secondary:hover { color: var(--fg); border-color: var(--fg-muted); }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 100px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.eyebrow-dot.light { background: var(--accent); }

.hero-headline {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.hero-headline-main {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  font-optical-sizing: auto;
  color: var(--fg);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-headline-sub {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  font-optical-sizing: auto;
  color: var(--accent-dark);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 48px;
}

/* Proof row */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px 0 0;
}

.proof-item:first-child { padding-left: 0; }

.proof-stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof-label {
  font-size: 0.72rem;
  color: var(--fg-light);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 32px 0 0;
  flex-shrink: 0;
}

/* ===== HERO CARD (Mock Browser) ===== */
.hero-visual { display: flex; align-items: center; }

.hero-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px var(--shadow), 0 2px 8px rgba(27,67,50,0.04);
  overflow: hidden;
  width: 100%;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.card-dot.green { background: #52C41A; }
.card-dot.yellow { background: #FAAD14; }
.card-dot.red { background: #FF4D4F; }

.hero-card-body { padding: 20px; }

/* SEO mock */
.seo-mock {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.seo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.seo-favicon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.seo-url {
  font-size: 0.72rem;
  color: var(--fg-light);
}

.seo-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a73e8;
  margin-bottom: 6px;
  text-decoration: underline;
  text-decoration-color: #1a73e820;
  cursor: pointer;
}

.seo-description {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Rank mock */
.mock-ranks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.rank-item.rank-1 {
  background: #E8F5EC;
  border-color: var(--accent);
}

.rank-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg-muted);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.rank-text {
  font-size: 0.8rem;
  color: var(--fg-muted);
  flex: 1;
}

.rank-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--fg);
  padding: 2px 8px;
  border-radius: 100px;
}

/* Stat row */
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-stat {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.mock-stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
}

.mock-stat-lab {
  font-size: 0.65rem;
  color: var(--fg-light);
  display: block;
  margin-top: 2px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--white);
}

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

.step-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  background: var(--bg);
  position: relative;
  border-left: 3px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.step-icon {
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.step-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-bullet {
  font-size: 0.78rem;
  color: var(--fg-light);
  padding-left: 16px;
  position: relative;
}

.step-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== NUMBERS ===== */
.numbers {
  padding: 100px 0;
  background: var(--fg);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.number-card {
  padding: 36px 32px;
  border: 1px solid rgba(116, 198, 157, 0.2);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}

.number-big {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.number-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.number-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}

/* ===== CASE STUDY ===== */
.case-study {
  padding: 100px 0;
  background: var(--bg-alt);
}

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.cs-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.cs-card-inner {
  padding: 40px;
}

.cs-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 24px;
  display: block;
  font-weight: 700;
}

.cs-quote {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 28px;
}

.cs-attribution {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cs-attrib-text { display: flex; flex-direction: column; gap: 2px; }

.cs-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.cs-role {
  font-size: 0.78rem;
  color: var(--fg-light);
}

/* Trust row */
.cs-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
}

.trust-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  background: var(--bg);
  position: relative;
}

.pricing-card-featured {
  background: var(--fg);
  border-color: var(--fg);
  transform: scale(1.04);
  box-shadow: 0 16px 60px rgba(27,67,50,0.2);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--fg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.pricing-card-featured .pricing-tier { color: var(--white); }

.pricing-price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  line-height: 1;
}

.pricing-card-featured .pricing-price { color: var(--white); }

.pricing-per {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-light);
}

.pricing-card-featured .pricing-per { color: rgba(255,255,255,0.6); }

.pricing-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.pricing-card-featured .pricing-tagline { color: rgba(255,255,255,0.7); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.pf-item.pf-include { color: var(--fg); }
.pf-item.pf-exclude { color: #9CA3AF; text-decoration: line-through; }

.pricing-card-featured .pf-item.pf-include { color: rgba(255,255,255,0.9); }
.pricing-card-featured .pf-item.pf-exclude { color: rgba(255,255,255,0.35); }

.pricing-cta { padding-top: 8px; border-top: 1px solid var(--border); }
.pricing-card-featured .pricing-cta { border-top-color: rgba(255,255,255,0.15); }

.pricing-cta-note {
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 500;
}

.pricing-card-featured .pricing-cta-note { color: var(--accent); }

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--fg-light);
  margin-top: 40px;
  font-style: italic;
}

/* ===== CLOSING ===== */
.closing {
  padding: 100px 0;
  background: var(--fg);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.closing-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.closing-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 40px;
}

.closing-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 40px;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-light);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link-item {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.footer-sep {
  color: var(--border);
  font-size: 0.75rem;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--fg-light);
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card-featured { transform: none; }
}

@media (max-width: 768px) {
  .section-inner { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .hero-inner { padding: 0 24px; grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid .number-card:last-child { grid-column: 1 / -1; }
  .cs-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-proof { flex-wrap: wrap; gap: 24px; }
  .proof-divider { display: none; }
  .proof-item { padding: 0; }
  .nav-tagline { display: none; }
  .how-it-works { padding: 64px 0; }
  .numbers { padding: 64px 0; }
  .case-study { padding: 64px 0; }
  .pricing { padding: 64px 0; }
  .closing { padding: 64px 0; }
  .closing-inner { padding: 0 24px; }
  .footer-inner { padding: 0 24px; }
}

@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .hero-headline-main, .hero-headline-sub { font-size: 2.5rem; }
  .hero-lede { font-size: 1rem; }
}
