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

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-accent: #1c2333;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --gold: #f0b429;
  --green: #3fb950;
  --red: #f85149;
  --border: #30363d;
  --radius: 12px;
  --max-w: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem;
  font-size: 1.125rem; font-weight: 600; font-family: var(--font);
  border: none; border-radius: 8px; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 4px 20px rgba(88,166,255,.3);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); box-shadow: 0 6px 28px rgba(88,166,255,.45); }
.btn-secondary {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover { background: rgba(88,166,255,.1); color: var(--accent-hover); border-color: var(--accent-hover); }

/* ===== NAV ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,17,23,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.site-nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-size: 1rem; font-weight: 700; color: var(--text); font-family: var(--font-mono); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: .875rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  padding: 8rem 0 5rem;
  min-height: 90vh;
  display: flex; align-items: center;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-block; padding: .375rem 1rem;
  background: rgba(88,166,255,.1); border: 1px solid rgba(88,166,255,.25);
  border-radius: 50px; font-size: .8rem; font-weight: 600;
  color: var(--accent); margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero h1 .highlight { color: var(--accent); }
.hero-sub {
  font-size: 1.25rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: .75rem;
}
.hero-author-cred {
  font-size: .95rem; color: var(--text-muted); margin-bottom: 2rem;
  border-left: 3px solid var(--accent); padding-left: 1rem;
}
.hero-author-cred strong { color: var(--text); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { display: flex; justify-content: center; }
.hero-image img {
  width: 100%; max-width: 380px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(88,166,255,.08);
  transition: transform .3s;
}
.hero-image img:hover { transform: scale(1.02) rotate(-1deg); }

/* ===== SECTIONS SHARED ===== */
section { padding: 5rem 0; }
.section-label {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.25; margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin-bottom: 3rem; }
.section-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== PAIN POINTS ===== */
.pain-points { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pain-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: border-color .2s, transform .2s;
}
.pain-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pain-icon { font-size: 2rem; margin-bottom: 1rem; }
.pain-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; }
.pain-card p { font-size: .95rem; color: var(--text-muted); line-height: 1.6; }

/* ===== WHAT'S INSIDE ===== */
.whats-inside-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.chapter-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; position: relative; overflow: hidden;
}
.chapter-card::before {
  content: attr(data-num); position: absolute; top: -10px; right: 10px;
  font-size: 5rem; font-weight: 900; color: rgba(88,166,255,.06);
  font-family: var(--font-mono); line-height: 1;
}
.chapter-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; color: var(--accent); font-family: var(--font-mono); }
.chapter-card p { font-size: .95rem; color: var(--text-muted); }

/* ===== SOCIAL PROOF ===== */
.social-proof { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.review-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem;
}
.review-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: .75rem; letter-spacing: 2px; }
.review-text { font-size: .95rem; color: var(--text-muted); line-height: 1.7; font-style: italic; margin-bottom: 1rem; }
.review-author { font-size: .85rem; font-weight: 600; color: var(--text); }
.review-source { font-size: .8rem; color: var(--text-muted); }

/* ===== ABOUT AUTHOR ===== */
.about-author .container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.author-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.stat-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); font-family: var(--font-mono); }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }
.author-bio p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1rem; }
.author-bio p:first-of-type { color: var(--text); font-size: 1.1rem; }
.author-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; margin-top: .5rem; }

/* ===== EMAIL CAPTURE ===== */
.email-capture {
  background: linear-gradient(135deg, rgba(88,166,255,.08), rgba(88,166,255,.02));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.email-capture .container { text-align: center; max-width: 640px; }
.email-form { display: flex; gap: .75rem; margin-top: 2rem; justify-content: center; }
.email-form input[type="email"] {
  flex: 1; max-width: 360px; padding: .875rem 1.25rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 1rem; font-family: var(--font);
  outline: none; transition: border-color .2s;
}
.email-form input[type="email"]:focus { border-color: var(--accent); }
.email-form input[type="email"]::placeholder { color: var(--text-muted); }
.email-note { font-size: .8rem; color: var(--text-muted); margin-top: .75rem; }

/* ===== FINAL CTA ===== */
.final-cta { text-align: center; padding: 6rem 0; }
.final-cta .section-title { max-width: 600px; margin: 0 auto 1rem; }
.final-cta .section-subtitle { margin-bottom: 2.5rem; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0; text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: .875rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: .8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 6rem 0 3rem; min-height: auto; }
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-author-cred { border-left: none; border-top: 3px solid var(--accent); padding-left: 0; padding-top: 1rem; }
  .hero-ctas { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 260px; }
  .about-author .container { grid-template-columns: 1fr; gap: 2rem; }
  .author-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .stat-item { flex: 1; min-width: 120px; }
  .email-form { flex-direction: column; align-items: center; }
  .email-form input[type="email"] { max-width: 100%; width: 100%; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .75rem; }
  section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .btn { padding: .75rem 1.5rem; font-size: 1rem; }
  .pain-grid { grid-template-columns: 1fr; }
}

@media (min-width: 481px) and (max-width: 900px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}
