/* ============================================================
   THE MODERN MASTER KEY — Website Styles
   Palette: Deep Navy + Gold + Cream
   Font: Cormorant Garamond (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy: #0A1628;
  --navy-light: #111D32;
  --navy-mid: #162440;
  --gold: #C5A258;
  --gold-light: #D4B978;
  --gold-pale: #E8D5A8;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D0;
  --white: #FFFFFF;
  --grey: #8A8A8A;
  --grey-light: #B0B0B0;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --section-padding: clamp(60px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--cream); background: var(--navy); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ---- NAV ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: background 0.4s ease, padding 0.4s ease; }
.nav.scrolled { background: rgba(10, 22, 40, 0.92); backdrop-filter: blur(20px); padding: 12px 0; box-shadow: 0 2px 40px rgba(0,0,0,0.3); }
.nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 500; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 400; color: var(--cream); letter-spacing: 0.05em; text-transform: uppercase; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { font-size: 0.8rem !important; padding: 8px 20px; border: 1px solid var(--gold); color: var(--gold) !important; letter-spacing: 0.1em; transition: background 0.3s ease, color 0.3s ease; }
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO ---- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 20px 80px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
#particles-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg::after { content: ''; position: absolute; top: 50%; left: 50%; width: 800px; height: 800px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(197, 162, 88, 0.08) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow { font-family: var(--font-body); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; opacity: 0; animation: fadeUp 1s ease 0.3s forwards; }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 300; line-height: 1.05; color: var(--gold); margin-bottom: 8px; opacity: 0; animation: fadeUp 1s ease 0.5s forwards; }
.hero-title strong { font-weight: 600; display: block; }
.hero-subtitle { font-family: var(--font-heading); font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 300; font-style: italic; color: var(--cream); margin-top: 16px; margin-bottom: 12px; opacity: 0; animation: fadeUp 1s ease 0.7s forwards; }
.hero-credit { font-family: var(--font-body); font-size: 0.85rem; color: var(--grey-light); margin-bottom: 40px; opacity: 0; animation: fadeUp 1s ease 0.9s forwards; }
.hero-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s ease 1.1s forwards; }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 1; opacity: 0; animation: fadeUp 1s ease 1.5s forwards; }
.hero-scroll span { display: block; width: 1px; height: 50px; background: linear-gradient(to bottom, var(--gold), transparent); margin: 0 auto; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }

/* ---- BUTTONS ---- */
.btn { display: inline-block; font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; padding: 14px 36px; border: none; cursor: pointer; transition: all 0.4s ease; position: relative; overflow: hidden; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(197, 162, 88, 0.3); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(197, 162, 88, 0.1); color: var(--gold-light); transform: translateY(-2px); }

/* ---- QUOTE BANNER ---- */
.quote-banner { padding: 60px 20px; text-align: center; border-top: 1px solid rgba(197, 162, 88, 0.15); border-bottom: 1px solid rgba(197, 162, 88, 0.15); }
.quote-banner blockquote { font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 300; font-style: italic; color: var(--gold-light); max-width: 700px; margin: 0 auto; line-height: 1.5; }

/* ---- ABOUT / PITCH ---- */
.about-section { padding: var(--section-padding) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-wrap { position: relative; }
.about-image-wrap .book-mockup { width: 100%; max-width: 380px; margin: 0 auto; position: relative; z-index: 1; }
.about-image-wrap::before { content: ''; position: absolute; top: -20px; left: -20px; right: 20px; bottom: 20px; border: 1px solid rgba(197, 162, 88, 0.2); z-index: 0; }
.about-eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.about-heading { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; color: var(--cream); line-height: 1.2; margin-bottom: 24px; }
.about-text { font-size: 1rem; line-height: 1.8; color: var(--grey-light); margin-bottom: 16px; }
.about-text strong { color: var(--cream); font-weight: 500; }

/* ---- FEATURES / WHAT'S INSIDE ---- */
.features-section { padding: var(--section-padding) 0; background: var(--navy-light); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; color: var(--cream); line-height: 1.2; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-card { padding: 40px 30px; border: 1px solid rgba(197, 162, 88, 0.12); transition: border-color 0.4s ease, transform 0.4s ease; position: relative; }
.feature-card:hover { border-color: rgba(197, 162, 88, 0.4); transform: translateY(-4px); }
.feature-card .feature-number { font-family: var(--font-heading); font-size: 3rem; font-weight: 300; color: rgba(197, 162, 88, 0.15); position: absolute; top: 16px; right: 20px; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 500; color: var(--gold); margin-bottom: 12px; }
.feature-card p { font-size: 0.9rem; line-height: 1.7; color: var(--grey-light); }

/* ---- PARALLAX QUOTE ---- */
.parallax-quote { padding: 140px 20px; text-align: center; position: relative; overflow: hidden; }
.parallax-quote .bg-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-heading); font-size: clamp(8rem, 20vw, 18rem); font-weight: 700; color: rgba(197, 162, 88, 0.03); white-space: nowrap; pointer-events: none; user-select: none; }
.parallax-quote blockquote { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 300; font-style: italic; color: var(--cream); max-width: 800px; margin: 0 auto; line-height: 1.5; position: relative; z-index: 1; }
.parallax-quote cite { display: block; font-family: var(--font-body); font-size: 0.85rem; font-style: normal; color: var(--gold); margin-top: 20px; letter-spacing: 0.1em; }

/* ---- AUTHOR ---- */
.author-section { padding: var(--section-padding) 0; border-top: 1px solid rgba(197, 162, 88, 0.1); }
.author-content { max-width: 700px; margin: 0 auto; text-align: center; }
.author-content h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 400; color: var(--gold); margin-bottom: 24px; }
.author-content p { font-size: 1rem; line-height: 1.8; color: var(--grey-light); margin-bottom: 16px; }

/* ---- EMAIL SIGNUP ---- */
.signup-section { padding: var(--section-padding) 0; background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%); }
.signup-card { max-width: 600px; margin: 0 auto; text-align: center; padding: 60px 40px; border: 1px solid rgba(197, 162, 88, 0.2); position: relative; }
.signup-card::before { content: ''; position: absolute; inset: -1px; background: linear-gradient(135deg, rgba(197, 162, 88, 0.15), transparent, rgba(197, 162, 88, 0.08)); z-index: -1; }
.signup-card h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 400; color: var(--cream); margin-bottom: 12px; }
.signup-card p { font-size: 0.95rem; color: var(--grey-light); margin-bottom: 28px; line-height: 1.6; }
.signup-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.signup-form input[type="email"] { flex: 1; padding: 12px 16px; font-family: var(--font-body); font-size: 0.9rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(197, 162, 88, 0.3); color: var(--cream); outline: none; transition: border-color 0.3s ease; }
.signup-form input[type="email"]::placeholder { color: var(--grey); }
.signup-form input[type="email"]:focus { border-color: var(--gold); }
.signup-form button { white-space: nowrap; }
.signup-note { font-size: 0.75rem; color: var(--grey); margin-top: 12px; }

/* ---- BUY SECTION ---- */
.buy-section { padding: var(--section-padding) 0; text-align: center; }
.buy-section h2 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: var(--cream); margin-bottom: 16px; }
.buy-section p { font-size: 1rem; color: var(--grey-light); margin-bottom: 36px; }
.buy-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- COUNTER ANIMATION ---- */
.counter-section { padding: 80px 0; border-top: 1px solid rgba(197, 162, 88, 0.1); border-bottom: 1px solid rgba(197, 162, 88, 0.1); }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.counter-item .counter-number { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 300; color: var(--gold); }
.counter-item .counter-label { font-size: 0.8rem; color: var(--grey-light); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; }

/* ---- FOOTER ---- */
.footer { padding: 40px 0; border-top: 1px solid rgba(197, 162, 88, 0.1); text-align: center; }
.footer p { font-size: 0.8rem; color: var(--grey); }
.footer-links { display: flex; gap: 24px; justify-content: center; list-style: none; margin-bottom: 16px; }
.footer-links a { font-size: 0.8rem; color: var(--grey-light); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.shimmer { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-pale) 25%, var(--gold) 50%, var(--gold-light) 75%, var(--gold) 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: shimmer 4s linear infinite; }
@keyframes shimmer { from { background-position: 0% center; } to { background-position: 200% center; } }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { order: -1; max-width: 300px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; gap: 24px; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10, 22, 40, 0.98); flex-direction: column; justify-content: center; align-items: center; gap: 28px; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: block; z-index: 1001; }
  .signup-form { flex-direction: column; }
  .hero { padding-top: 100px; }
}
