:root {
    --navy: #0a0f2e;
    --deep-blue: #0d1b4b;
    --electric: #2563eb;
    --gold: #f5c842;
    --red: #e63946;
    --white: #f8f9ff;
    --muted: #8892b0;
    --card-bg: rgba(13,27,75,0.7);
  }

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

  body {
    background: var(--navy);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 4rem;
    background: rgba(10,15,46,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37,99,235,0.2);
  }
  .nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--white);
  }
  .nav-logo span { color: var(--gold); }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: 0.85rem; font-weight: 500; letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
  }
  .nav-links a:hover { color: var(--gold); }

  /* ─── HERO ─── */
  .hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,0.18) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 20% 80%, rgba(245,200,66,0.08) 0%, transparent 60%),
      linear-gradient(135deg, #0a0f2e 0%, #0d1b4b 100%);
  }
  .stars {
    position: absolute; inset: 0;
    background-image:
      radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 100%),
      radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 50% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
      radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.6) 0%, transparent 100%),
      radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
      radial-gradient(1px 1px at 35% 45%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 65% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
      radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,0.6) 0%, transparent 100%),
      radial-gradient(1px 1px at 5% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 95% 40%, rgba(255,255,255,0.4) 0%, transparent 100%);
    background-size: 600px 600px;
    animation: drift 30s linear infinite;
  }
  @keyframes drift { from { transform: translateY(0); } to { transform: translateY(-60px); } }

  .grid-lines {
    position: absolute; inset: 0; opacity: 0.06;
    background-image:
      linear-gradient(rgba(37,99,235,1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(37,99,235,1) 1px, transparent 1px);
    background-size: 80px 80px;
  }

  .hero-content { position: relative; z-index: 2; max-width: 680px; }
  .hero-eyebrow {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 6px; font-size: 0.9rem;
    color: var(--gold); margin-bottom: 1rem;
    opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
  }
  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900; line-height: 1.0;
    margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
  }
  .hero-title .gold { color: var(--gold); }
  .hero-desc {
    font-size: 1.1rem; line-height: 1.75;
    color: var(--muted); margin-bottom: 2.5rem; max-width: 520px;
    opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
  }
  .hero-btns {
    display: flex; gap: 1rem; flex-wrap: wrap;
    opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
  }
  .btn-primary {
    background: var(--electric); color: #fff;
    padding: 0.9rem 2.2rem; border-radius: 4px;
    font-weight: 600; font-size: 0.95rem; letter-spacing: 0.5px;
    text-decoration: none; transition: all 0.3s;
    border: 2px solid var(--electric);
  }
  .btn-primary:hover { background: transparent; color: var(--electric); }
  .btn-outline {
    background: transparent; color: var(--gold);
    padding: 0.9rem 2.2rem; border-radius: 4px;
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.3s;
    border: 2px solid var(--gold);
  }
  .btn-outline:hover { background: var(--gold); color: var(--navy); }

  .hero-stats {
    position: absolute; right: 4rem; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 1.5rem;
    opacity: 0; animation: fadeLeft 0.8s 1s forwards;
  }
  .stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: 12px; padding: 1.2rem 1.8rem;
    text-align: center;
    backdrop-filter: blur(10px);
  }
  .stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem; color: var(--gold); line-height: 1;
  }
  .stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; letter-spacing: 1px; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeLeft {
    from { opacity: 0; transform: translateX(30px) translateY(-50%); }
    to { opacity: 1; transform: translateX(0) translateY(-50%); }
  }

  section { padding: 6rem 4rem; }
  .section-eyebrow {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 5px; font-size: 0.85rem;
    color: var(--electric); margin-bottom: 0.8rem;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; margin-bottom: 1rem; line-height: 1.2;
  }
  .section-divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--electric), var(--gold));
    margin-bottom: 3rem; border-radius: 2px;
  }

  #about {
    background: linear-gradient(180deg, var(--navy) 0%, var(--deep-blue) 100%);
    position: relative;
  }
  .about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center; max-width: 1100px; margin: 0 auto;
  }
  .about-img-wrap { position: relative; }
  .about-img-placeholder {
    width: 100%; aspect-ratio: 3/4; border-radius: 12px;
    background: linear-gradient(135deg, var(--deep-blue), #1a2a6c);
    border: 2px solid rgba(37,99,235,0.3);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; color: var(--muted);
  }
  .about-img-placeholder .icon { font-size: 4rem; opacity: 0.4; }
  .about-badge {
    position: absolute; bottom: -1.5rem; right: -1.5rem;
    background: var(--gold); color: var(--navy);
    padding: 1rem 1.5rem; border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem; letter-spacing: 2px;
    text-align: center;
  }
  .about-text p {
    color: var(--muted); line-height: 1.85; font-size: 1.05rem;
    margin-bottom: 1.2rem;
  }
  .about-text p strong { color: var(--white); }
  .tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
  .tag {
    background: rgba(37,99,235,0.15); color: var(--electric);
    border: 1px solid rgba(37,99,235,0.3);
    padding: 0.4rem 1rem; border-radius: 100px;
    font-size: 0.8rem; font-weight: 500;
  }

  #books { background: var(--navy); position: relative; }
  .books-header { max-width: 600px; margin-bottom: 3rem; }
  .books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem; max-width: 1200px;
  }
  .book-card {
    background: var(--card-bg);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 12px; overflow: hidden;
    transition: all 0.4s; cursor: pointer;
    position: relative;
  }
  .book-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), transparent);
    opacity: 0; transition: opacity 0.4s;
  }
  .book-card:hover { transform: translateY(-8px); border-color: var(--electric); box-shadow: 0 20px 60px rgba(37,99,235,0.3); }
  .book-card:hover::before { opacity: 1; }
  .book-cover {
    width: 100%; height: 220px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    position: relative; overflow: hidden;
  }
  .book-cover-1 { background: linear-gradient(135deg, #1a0a0a, #3d0000); }
  .book-cover-2 { background: linear-gradient(135deg, #0a1540, #1a3a8f); }
  .book-cover-3 { background: linear-gradient(135deg, #1a0f00, #4a2800); }
  .book-cover-4 { background: linear-gradient(135deg, #0a1a2a, #0a4a6a); }
  .book-cover-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 1.5rem; text-align: center;
  }
  .book-series {
    font-family: 'Bebas Neue', sans-serif; letter-spacing: 3px;
    font-size: 0.75rem; margin-bottom: 0.5rem;
  }
  .book-cover-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 700; line-height: 1.2;
  }
  .book-info { padding: 1.5rem; }
  .book-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; margin-bottom: 0.5rem;
  }
  .book-info p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
  .book-tag {
    display: inline-block; margin-top: 0.8rem;
    background: rgba(245,200,66,0.12); color: var(--gold);
    border: 1px solid rgba(245,200,66,0.3);
    padding: 0.3rem 0.9rem; border-radius: 100px; font-size: 0.75rem;
  }

  .series-banner {
    background: linear-gradient(135deg, var(--deep-blue), #0a2060);
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: 16px; padding: 3rem;
    display: flex; align-items: center; gap: 3rem;
    max-width: 1100px; margin: 4rem auto 0;
    position: relative; overflow: hidden;
  }
  .series-banner::after {
    content: 'AI MADE EZ';
    position: absolute; right: -2rem; top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 8rem; color: rgba(37,99,235,0.06);
    letter-spacing: 5px; white-space: nowrap;
  }
  .series-banner-icon { font-size: 4rem; flex-shrink: 0; }
  .series-banner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; margin-bottom: 0.5rem;
  }
  .series-banner p { color: var(--muted); line-height: 1.7; }
  .series-books-list {
    list-style: none; margin-top: 1rem;
    display: flex; flex-wrap: wrap; gap: 0.5rem;
  }
  .series-books-list li {
    background: rgba(37,99,235,0.15);
    padding: 0.3rem 0.8rem; border-radius: 4px;
    font-size: 0.8rem; color: var(--electric);
  }

  #contact {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #081030 100%);
    position: relative; text-align: center;
  }
  #contact::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(37,99,235,0.15) 0%, transparent 70%);
  }
  .cta-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
  .cta-inner .section-eyebrow { display: block; }
  .cta-inner .section-title { margin-bottom: 1rem; }
  .cta-inner p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 2.5rem; }
  .cta-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--electric), #1d4ed8);
    color: #fff; padding: 1.1rem 3rem;
    border-radius: 6px; font-weight: 600; font-size: 1rem;
    text-decoration: none; letter-spacing: 0.5px;
    transition: all 0.3s; box-shadow: 0 10px 40px rgba(37,99,235,0.4);
  }
  .cta-link:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(37,99,235,0.6); }
  .url-pill {
    display: inline-block; margin-top: 1.5rem;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem 1.5rem; border-radius: 100px;
    font-size: 0.9rem; color: var(--muted);
  }

  footer {
    background: #060b1e; padding: 2rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(37,99,235,0.1);
  }
  footer .logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 3px; }
  footer .logo span { color: var(--gold); }
  footer p { color: var(--muted); font-size: 0.8rem; }

  .reveal { opacity: 0; transform: translateY(25px); transition: all 0.7s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }