/* CORE TOKENS */
:root {
  --primary:#b91c1c;
  --primary-soft:#fee2e2;
  --accent:#f59e0b;
  --bg:#0b1120;
  --text:#0f172a;
  --muted:#6b7280;
  --card:#ffffff;
  --border:#e5e7eb;
  --radius-lg:18px;
  --radius-md:12px;
  --shadow-soft:0 18px 45px rgba(15,23,42,.08);
  --shadow-chip:0 10px 25px rgba(15,23,42,.06);
  --max-width:1120px;
}

/* RESET */
*,
*::before,
*::after{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#f9fafb;
  color:var(--text);
  line-height:1.6;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button,input{font:inherit}

/* UTILITY */
.container{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 1.25rem;
}
.flex-between{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.section{
  padding:4rem 0;
}
.section-alt{
  padding:4rem 0;
  background:#f3f4f6;
}
.section-header{
  text-align:center;
  margin-bottom:2.5rem;
}
.section-header h2{
  font-size:1.9rem;
  margin-bottom:.5rem;
}
.section-header p{
  color:var(--muted);
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#ffffff;
  box-shadow:0 1px 0 rgba(148,163,184,.4);
}
.top-bar{
  background:#0f172a;
  color:#e5e7eb;
  font-size:.78rem;
  padding:.4rem 0;
}
.top-bar .top-link{
  margin-left:1rem;
  opacity:.8;
}
.top-bar .top-link:hover{opacity:1}
.brand-mini{font-weight:500}
.lang-switch button{
  background:none;
  border:none;
  color:#e5e7eb;
  margin-left:1.5rem;
  cursor:pointer;
}

/* NAV BAR */
.nav-bar{
  padding:.8rem 0;
}
.logo{
  display:flex;
  align-items:center;
  gap:.7rem;
}
.logo-mark{
  width:38px;
  height:38px;
  border-radius:30%;
  background:radial-gradient(circle at 20% 20%,#fecaca,var(--primary));
  color:#fff;
  display:flex;
  justify-content:center;
  align-items:center;
  font-weight:700;
  box-shadow:var(--shadow-chip);
}
.logo-text{
  display:flex;
  flex-direction:column;
  font-size:.78rem;
}
.logo-text strong{
  font-size:1.05rem;
}
.main-nav{
  margin-left:2.5rem;
}
.nav-list{
  display:flex;
  align-items:center;
  gap:1.5rem;
  font-size:.94rem;
}
.nav-list > li > a,
.nav-list > li > button{
  background:none;
  border:none;
  cursor:pointer;
  padding:.4rem 0;
  color:var(--text);
  font-weight:500;
}
.nav-list > li > a:hover,
.nav-list > li > button:hover{
  color:var(--primary);
}

/* DROPDOWNS */
.has-dropdown{
  position:relative;
}
.dropdown{
  position:absolute;
  top:120%;
  left:0;
  background:#ffffff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
  padding:.9rem 1rem;
  min-width:210px;
  display:none;
}
.dropdown-wide{
  display:none;
  min-width:390px;
  display:none;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:hover > .dropdown-wide{
  display:flex;
}
.dropdown a{
  display:block;
  font-size:.9rem;
  padding:.25rem 0;
  color:var(--muted);
}
.dropdown a:hover{color:var(--primary)}
.dropdown-wide{
  gap:2rem;
}
.dropdown-col h4{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  margin-bottom:.35rem;
}

/* NAV CTA + TOGGLE */
.nav-cta{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-primary-sm,
.btn-secondary-sm{
  border-radius:999px;
  padding:.6rem 1.2rem;
  font-size:.9rem;
  font-weight:600;
  border:1px solid transparent;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg,var(--primary),#7f1d1d);
  color:#fff;
  box-shadow:0 12px 30px rgba(185,28,28,.35);
}
.btn-secondary{
  background:#f9fafb;
  border-color:var(--border);
}
.btn-ghost{
  background:transparent;
  border-color:rgba(255,255,255,.4);
  color:#fff;
}
.btn-primary-sm,
.btn-secondary-sm{
  padding:.4rem .9rem;
  font-size:.82rem;
}
.btn-primary-sm{
  background:linear-gradient(135deg,var(--primary),#7f1d1d);
  color:#fff;
}
.btn-secondary-sm{
  background:#f9fafb;
  border-color:var(--border);
}
.icon-btn{
  border:none;
  background:#f3f4f6;
  border-radius:999px;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:.23rem;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
}
.nav-toggle span{
  height:2px;
  width:16px;
  background:#0f172a;
}

/* HERO */
.hero{
  padding:3.5rem 0 3rem;
  background:radial-gradient(circle at top left,#fee2e2,#fff);
}
.hero-grid{
  display:grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.5fr);
  gap:2.5rem;
  align-items:center;
}
.eyebrow{
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--primary);
  font-weight:600;
  margin-bottom:.6rem;
}
.hero h1{
  font-size:2.4rem;
  line-height:1.15;
  margin-bottom:.8rem;
}
.hero-sub{
  color:var(--muted);
  max-width:34rem;
  margin-bottom:1.3rem;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  margin-bottom:1.3rem;
}
.hero-meta span{
  font-size:.84rem;
  color:var(--muted);
}
.hero-featured{
  display:flex;
  flex-direction:column;
  gap:.9rem;
}
.feature-card{
  background:#ffffff;
  border-radius:var(--radius-lg);
  padding:1rem 1.1rem;
  box-shadow:var(--shadow-soft);
}
.feature-card .tag{
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
}
.feature-card h3{
  margin:.45rem 0;
  font-size:1.06rem;
}
.feature-card p{
  font-size:.9rem;
  color:var(--muted);
}
.link-arrow{
  font-size:.87rem;
  margin-top:.4rem;
  display:inline-flex;
  align-items:center;
  gap:.2rem;
  color:var(--primary);
}

/* QUOTE SECTION */
.section-quote{
  background:#0f172a;
  color:#e5e7eb;
  text-align:center;
  padding:3rem 0;
}
.section-quote h2{
  margin-bottom:1.5rem;
}
.quote-card{
  max-width:640px;
  margin:0 auto 1.5rem;
  padding:1.6rem 1.8rem;
  border-radius:var(--radius-lg);
  background:rgba(15,23,42,.9);
  box-shadow:0 20px 60px rgba(15,23,42,.7);
}
.quote-text{
  font-size:1.2rem;
}
.quote-author{
  margin-top:.8rem;
  font-size:.94rem;
  color:#9ca3af;
}
.quote-tags{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:.6rem;
}
.quote-tags button{
  border-radius:999px;
  border:1px solid rgba(148,163,184,.7);
  background:transparent;
  color:#e5e7eb;
  padding:.3rem .75rem;
  font-size:.8rem;
}

/* BOOKS */
.tabs-nav{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-bottom:1.5rem;
}
.tabs-nav button{
  border-radius:999px;
  border:1px solid var(--border);
  padding:.35rem .9rem;
  background:#fff;
  font-size:.85rem;
  cursor:pointer;
}
.tabs-nav button.is-active{
  background:var(--primary-soft);
  color:var(--primary);
  border-color:transparent;
}
.tabs-panel{display:none}
.tabs-panel.is-active{display:block}

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:1.5rem;
}
.card-grid-3{
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.book-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:1.1rem 1.1rem 1rem;
  box-shadow:var(--shadow-soft);
}
.book-cover{
  width:100%;
  padding-top:140%;
  border-radius:var(--radius-md);
  background:linear-gradient(135deg,#fecaca,#991b1b);
  margin-bottom:.75rem;
}
.book-card h3{
  margin-bottom:.3rem;
  font-size:1.02rem;
}
.book-card p{
  font-size:.9rem;
  color:var(--muted);
}
.book-meta{
  display:flex;
  gap:.4rem;
  margin:.7rem 0 .5rem;
}
.badge{
  font-size:.72rem;
  padding:.18rem .6rem;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
}
.book-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:.3rem;
}
.price{
  font-weight:600;
}

/* COURSES */
.course-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:1.3rem 1.3rem 1.1rem;
  box-shadow:var(--shadow-soft);
}
.course-meta{
  margin:.6rem 0;
  font-size:.85rem;
  color:var(--muted);
}

/* PODCASTS */
.podcast-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.2rem;
}
.podcast-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:1.2rem 1.2rem 1rem;
  box-shadow:var(--shadow-soft);
}
.podcast-badges{
  margin-top:1.5rem;
  text-align:center;
  color:var(--muted);
}
.badge-row{
  margin-top:.5rem;
  display:flex;
  justify-content:center;
  gap:.7rem;
  flex-wrap:wrap;
}
.platform-badge{
  padding:.3rem .8rem;
  border-radius:999px;
  background:#111827;
  color:#f9fafb;
  font-size:.8rem;
}

/* TRUST SECTION */
.trust-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,1.4fr);
  gap:2rem;
  align-items:flex-start;
}
.icon-list li{
  margin-bottom:.45rem;
  position:relative;
  padding-left:1.2rem;
}
.icon-list li::before{
  content:"•";
  position:absolute;
  left:0;
  color:var(--primary);
}
.trust-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:1.6rem 1.5rem;
  box-shadow:var(--shadow-soft);
}

/* NEWSLETTER */
.section-newsletter{
  background:linear-gradient(135deg,#111827,#1f2937);
  color:#e5e7eb;
}
.newsletter-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.8rem;
}
.newsletter-form{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
}
.newsletter-form input{
  min-width:230px;
  padding:.55rem .85rem;
  border-radius:999px;
  border:1px solid rgba(209,213,219,.9);
  background:#111827;
  color:#e5e7eb;
}
.newsletter-form button{
  border-radius:999px;
  border:none;
  background:#f97316;
  color:#111827;
  padding:.6rem 1.2rem;
  font-weight:600;
  cursor:pointer;
}
.newsletter-form .success{
  color:#bbf7d0;
}

/* FOOTER */
.site-footer{
  background:#020617;
  color:#9ca3af;
  padding:3rem 0 1.5rem;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:2rem;
}
.footer-logo .logo-mark{
  box-shadow:none;
}
.footer-about{
  margin-top:.75rem;
  font-size:.9rem;
}
.site-footer h4{
  margin-bottom:.8rem;
  font-size:.9rem;
  color:#e5e7eb;
}
.site-footer li{margin-bottom:.35rem}
.site-footer a:hover{color:#f97316}
.footer-social{
  display:flex;
  gap:.7rem;
  margin-top:.5rem;
  font-size:.85rem;
}
.footer-bottom{
  border-top:1px solid #111827;
  margin-top:2rem;
  padding-top:1rem;
  font-size:.8rem;
}

/* SEARCH OVERLAY */
.search-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.92);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding-top:6rem;
  z-index:60;
  color:#e5e7eb;
}
.search-overlay.is-open{display:flex}
.search-overlay-inner{
  width:100%;
  max-width:680px;
  padding:1.8rem 1.6rem;
}
.search-close{
  background:none;
  border:none;
  color:#e5e7eb;
  font-size:1.6rem;
  float:right;
  cursor:pointer;
}
.search-form{
  display:flex;
  gap:.7rem;
  margin:1.4rem 0 1rem;
}
.search-form input{
  flex:1;
  padding:.7rem 1rem;
  border-radius:999px;
  border:none;
}
.search-form button{
  border-radius:999px;
  border:none;
  padding:.7rem 1.2rem;
  background:#f97316;
  color:#111827;
  font-weight:600;
  cursor:pointer;
}

/* RESPONSIVE */
@media (max-width:960px){
  .nav-toggle{display:flex}
  .main-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#ffffff;
    padding:1rem 1.25rem 1rem;
    display:none;
    box-shadow:0 18px 34px rgba(15,23,42,.18);
  }
  .main-nav.is-open{display:block}
  .nav-list{
    flex-direction:column;
    align-items:flex-start;
    gap:.8rem;
  }
  .nav-cta{
    display:none;
  }
  .nav-cta.is-open{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:100%;
    right:1.25rem;
    margin-top:11rem;
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:hover > .dropdown-wide{
    display:none;
  }
  .has-dropdown.open > .dropdown,
  .has-dropdown.open > .dropdown-wide{
    display:block;
    position:static;
    box-shadow:none;
    padding:.4rem 0 .4rem 1rem;
  }
  .hero-grid{
    grid-template-columns:1fr;
  }
  .hero{
    padding:2.4rem 0 2.2rem;
  }
  .newsletter-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .trust-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:600px){
  .hero h1{
    font-size:2rem;
  }
  .section{
    padding:3rem 0;
  }
}
