:root {
  --bg: #08111f;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.68);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(255,255,255,0.1);
  --primary: #7c3aed;
  --primary-2: #22c55e;
  --accent: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(34, 197, 94, 0.16), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #0c1424 45%, #07101b 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 92px 0;
}

.section-accent {
  background: linear-gradient(180deg, rgba(124,58,237,0.09), rgba(124,58,237,0.02));
}

.section-dark {
  background: linear-gradient(180deg, rgba(3,7,18,0.78), rgba(2,6,23,0.92));
}

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.33;
}
.page-glow-1 { background: rgba(124, 58, 237, 0.28); top: -120px; left: -100px; }
.page-glow-2 { background: rgba(34, 197, 94, 0.24); bottom: -100px; right: -80px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 31, 0.58);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
}
.brand-text {
  font-size: 0.96rem;
  color: var(--muted);
}
.brand-text strong { color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: var(--muted);
  transition: .2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }
.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  margin: 5px auto;
}

.hero-grid,
.featured-grid,
.format-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero h1,
.section-head h2,
.cta-box h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.5rem);
  max-width: 12ch;
}
.hero h1 span {
  background: linear-gradient(135deg, #faf5ff, #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text,
.section-head p,
.info-card p,
.timeline-item p,
.featured-book-copy p,
.book-card p,
.format-list li,
.cta-box p {
  color: var(--muted);
  line-height: 1.7;
}
.hero-text { max-width: 60ch; font-size: 1.08rem; }

.eyebrow,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e9d5ff;
  font-size: 0.9rem;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}
.button-primary {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: white;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.28);
}
.button-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}

.hero-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero-points li {
  color: var(--muted);
  padding-left: 22px;
  position: relative;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary-2));
}

.glass {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.glass.dark {
  background: rgba(255,255,255,0.04);
}

.hero-visual { position: relative; min-height: 520px; }
.hero-card-main {
  padding: 28px;
  max-width: 430px;
  margin-left: auto;
}
.hero-card-main h3,
.info-card h3,
.timeline-item h3,
.featured-book-copy h3,
.book-card h3 { margin: 0 0 12px; }
.hero-card-main p { color: var(--muted); }
.hero-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-card-meta span,
.timeline-week {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fef3c7;
  font-size: 0.92rem;
}
.hero-stack {
  position: absolute;
  left: 0;
  bottom: 24px;
  display: grid;
  gap: 16px;
}
.hero-mini {
  padding: 18px 20px;
  min-width: 220px;
}
.hero-mini strong { display: block; font-size: 1.5rem; margin-bottom: 5px; }
.hero-mini span { color: var(--muted); }

.section-head {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 36px;
}
.section-head.left {
  text-align: left;
  margin-left: 0;
}
.section-head.light p,
.section-head.light h2 { color: var(--text); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.6rem); }

.info-grid,
.books-grid,
.stats-grid {
  display: grid;
  gap: 20px;
}
.info-grid { grid-template-columns: repeat(3, 1fr); }
.books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.info-card,
.stat {
  padding: 24px;
}

.timeline {
  padding: 24px;
  display: grid;
  gap: 16px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.timeline-item:last-child { border-bottom: 0; padding-bottom: 0; }

.featured-book {
  padding: 22px;
}
.featured-cover-wrap {
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
}
.text-link { color: #c4b5fd; font-weight: 600; }

.book-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 18px;
  align-items: center;
}
.book-card img,
.featured-cover-wrap img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}

.format-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.format-list li {
  padding-left: 22px;
  position: relative;
}
.format-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #4ade80);
}
.stat {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.stat strong {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 6px;
}
.stat span { color: var(--muted); }

.cta-box {
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-wrap p,
.footer-wrap a { color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid,
  .featured-grid,
  .format-grid,
  .info-grid,
  .books-grid,
  .stats-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 16px;
  }
  .hero-card-main { max-width: none; margin-left: 0; }
  .hero-stack {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .timeline-item,
  .book-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 24px;
    background: rgba(8,17,31,0.95);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: .2s ease;
  }
  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a { padding: 10px 6px; }
  .hero h1 { max-width: 100%; }
  .section { padding: 74px 0; }
  .hero-stack { grid-template-columns: 1fr; }
  .cta-box { align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .nav-wrap { min-height: 70px; }
  .brand-text { font-size: .84rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .book-card { padding: 14px; }
  .info-card, .stat, .timeline, .featured-book, .cta-box { padding: 20px; }
}


/* FAQ */
.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease;
}

.faq-icon::before {
  width: 18px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 18px;
}

.faq-item[open] .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(.3);
}

.faq-content {
  padding: 0 28px 24px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 900px;
}

@media (max-width: 767px) {
  .faq-item summary {
    padding: 20px 18px;
    font-size: 1rem;
  }

  .faq-content {
    padding: 0 18px 20px;
    font-size: 0.96rem;
  }
}


/* WOW book effects */
.book-card img {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.book-card:hover img {
  transform: rotateY(12deg) rotateX(6deg) scale(1.05);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

/* glow effect */
.book-card {
  position: relative;
  overflow: hidden;
}

.book-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.book-card:hover::after {
  opacity: 1;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox.active {
  display: flex;
}


.cta-box {
  max-width: 1000px;
  margin: 0 auto;
}

.cta-box p {
  max-width: 100%;
}

.stat strong {
  word-break: break-word;
  font-size: 2rem;
}

.stat {
  overflow: hidden;
}

h1, h2, h3 {
  word-break: break-word;
}

@media (max-width: 768px) {
  .cta-box {
    padding: 20px;
  }
}


/* Last level enhancements */
#starfield{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:-2;
  opacity:.45;
  pointer-events:none;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 20% 20%, rgba(88,128,255,.16), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(143,74,255,.18), transparent 22%),
    radial-gradient(circle at 50% 85%, rgba(0,202,255,.12), transparent 28%),
    linear-gradient(180deg, rgba(2,6,23,.94), rgba(2,6,23,.98));
  pointer-events:none;
}

.live-pill{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:40;
  max-width:min(92vw, 360px);
  padding:14px 18px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(10,18,40,.78);
  color:#fff;
  font-size:.95rem;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
}

.stats-grid-upgraded .stat strong{
  font-size:clamp(2rem, 2.2vw, 3.4rem);
  line-height:.95;
  letter-spacing:-.04em;
  display:block;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
.stats-grid-upgraded .stat span{
  display:block;
  margin-top:10px;
  max-width:16ch;
}
.stats-grid-upgraded{
  align-items:stretch;
}
.stats-grid-upgraded .stat{
  min-height:168px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.experience-section{
  position:relative;
}
.experience-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:24px;
  margin-top:24px;
}
.panel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.panel-label{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.86);
  font-size:.92rem;
  font-weight:600;
}
.quote-dots{
  display:flex;
  gap:10px;
}
.quote-dot{
  width:10px;
  height:10px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  cursor:pointer;
  padding:0;
}
.quote-dot.active{background:#8b5cf6; box-shadow:0 0 0 6px rgba(139,92,246,.15);}
.quote-panel,.reading-panel{
  padding:28px;
}
.quote-slider{
  position:relative;
  min-height:220px;
}
.quote-card{
  margin:0;
  position:absolute;
  inset:0;
  opacity:0;
  transform:translateY(18px) scale(.985);
  transition:opacity .45s ease, transform .45s ease;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.quote-card.active{
  opacity:1;
  transform:translateY(0) scale(1);
}
.quote-card p{
  font-size:clamp(1.3rem, 2vw, 2rem);
  line-height:1.25;
  letter-spacing:-.03em;
  margin:0 0 18px;
  max-width:22ch;
}
.quote-card footer{
  color:rgba(255,255,255,.6);
  font-size:.95rem;
}

.reading-plan{
  display:grid;
  gap:14px;
}
.reading-step{
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.reading-step span{
  display:block;
  color:#8b5cf6;
  font-size:.85rem;
  margin-bottom:8px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.reading-step strong{
  display:block;
  font-size:1.1rem;
  margin-bottom:8px;
}
.reading-step p{
  margin:0;
  color:rgba(255,255,255,.72);
}

.signal-strip{
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  padding:18px;
}
.signal-item{
  padding:18px 20px;
  border-radius:20px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
}
.signal-kicker{
  display:block;
  margin-bottom:10px;
  color:rgba(255,255,255,.56);
  font-size:.84rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.signal-item strong{
  font-size:1.1rem;
  line-height:1.35;
}

.counter{
  font-variant-numeric: tabular-nums;
}

.cta-box-fixed{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:start;
  max-width:none !important;
}
.cta-box-fixed .cta-content{
  min-width:0;
}
.cta-box-fixed .cta-content p{
  max-width:none !important;
  width:100%;
  text-wrap:pretty;
}
.cta-box-fixed .cta-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:stretch;
  min-width:220px;
}
.cta-box-fixed .button{
  justify-content:center;
  text-align:center;
}

.reading-modal{
  position:fixed;
  inset:0;
  z-index:70;
  display:none;
}
.reading-modal.is-open{
  display:block;
}
.reading-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.78);
  backdrop-filter: blur(10px);
}
.reading-modal__dialog{
  position:relative;
  width:min(760px, calc(100% - 32px));
  margin:6vh auto 0;
  padding:30px;
  z-index:1;
}
.reading-modal__dialog p{
  max-width:58ch;
}
.reading-modal__cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:24px;
}
.reading-modal__card{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
}
.reading-modal__card strong{
  display:block;
  font-size:1.2rem;
  margin-bottom:8px;
}
.reading-modal__card span{
  color:rgba(255,255,255,.72);
}
.reading-close{
  position:absolute;
  top:12px;
  right:12px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:1.8rem;
  line-height:1;
  cursor:pointer;
}

@media (max-width: 1024px){
  .experience-grid,
  .cta-box-fixed{
    grid-template-columns:1fr;
  }
  .cta-box-fixed .cta-actions{
    flex-direction:row;
    flex-wrap:wrap;
    min-width:0;
  }
  .signal-strip{
    grid-template-columns:1fr;
  }
}

@media (max-width: 767px){
  .live-pill{
    left:12px;
    right:12px;
    bottom:12px;
    max-width:none;
    border-radius:20px;
    font-size:.9rem;
  }
  .quote-panel,.reading-panel{
    padding:22px 18px;
  }
  .quote-card{
    position:relative;
    inset:auto;
    display:none;
    min-height:auto;
  }
  .quote-card.active{
    display:flex;
  }
  .quote-card p{
    max-width:none;
    font-size:1.22rem;
  }
  .reading-modal__dialog{
    width:calc(100% - 20px);
    padding:24px 18px;
    margin-top:4vh;
  }
  .reading-modal__cards{
    grid-template-columns:1fr;
  }
  .stats-grid-upgraded .stat{
    min-height:132px;
  }
  .stats-grid-upgraded .stat strong{
    font-size:clamp(1.7rem, 8vw, 2.3rem);
  }
}


/* Real animated cosmic background */
#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  display: block;
  background:
    radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.08), transparent 26%),
    radial-gradient(circle at 80% 25%, rgba(129, 92, 255, 0.10), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.06), transparent 28%),
    linear-gradient(180deg, #020617 0%, #020b24 48%, #04132e 100%);
}

body {
  position: relative;
  overflow-x: hidden;
  background: transparent !important;
}

.site-header,
main,
.site-footer,
.lightbox {
  position: relative;
  z-index: 2;
}

.page-glow {
  z-index: 1;
  pointer-events: none;
}

/* extra subtle glass glow on sections so stars are visible but text stays readable */
.section,
.site-header,
.site-footer {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.06));
  pointer-events: none;
  z-index: -1;
}


/* Mobile nav fix */
@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-wrap {
    position: relative;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 84px);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .brand-text {
    min-width: 0;
    display: block;
    font-size: 0.95rem;
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    position: relative;
    z-index: 52;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed !important;
    top: 84px;
    left: 12px;
    right: 12px;
    z-index: 51;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(4, 15, 40, 0.96);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
    max-height: calc(100vh - 104px);
    overflow: auto;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    font-size: 1rem;
    line-height: 1.2;
  }

  .site-nav .nav-cta {
    margin-top: 4px;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid,
  .featured-grid,
  .format-grid {
    gap: 20px;
  }

  .hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-trigger {
  margin-top: 16px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
}
.hero-description {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
}
  .hero-copy,
  .hero-visual,
  .section-head,
  .cta-box,
  .info-card,
  .book-card,
  .featured-book,
  .timeline,
  .stat {
    position: relative;
    z-index: 2;
  }
}



/* Menu + performance fixes */
.nav-overlay[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-nav {
    align-items: stretch;
  }

  .site-nav a {
    color: rgba(255,255,255,0.96);
    text-decoration: none;
    font-weight: 600;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255,255,255,0.08);
    outline: none;
  }
}

@media (min-width: 901px) {
  .nav-overlay {
    display: none !important;
  }
}

/* Reduce visual load from space background */
#space-canvas {
  opacity: 0.82;
}

@media (max-width: 768px) {
  #space-canvas {
    opacity: 0.72;
  }
}


/* No meteors mode */
#space-canvas {
  opacity: 0.68;
}


/* ===== Stable performance + mobile menu fix ===== */
body {
  overflow-x: hidden;
}

#space-canvas,
#starfield {
  display: none !important;
}

.nav-overlay[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav-wrap {
    position: relative;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 84px);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .brand-text {
    min-width: 0;
    display: block;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    position: relative;
    z-index: 121;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed !important;
    top: 84px;
    left: 12px;
    right: 12px;
    z-index: 120;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(4, 15, 40, 0.98);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.96);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
  }

  .site-nav .nav-cta {
    margin-top: 4px;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(2, 6, 23, 0.38);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 901px) {
  .nav-overlay {
    display: none !important;
  }
}

.cta-box {
  align-items: start;
}

.cta-box p {
  max-width: none !important;
}

.stat {
  overflow: hidden;
}

.stat strong {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1;
}

.hero-copy h1,
.section-head h2,
.info-card h3,
.featured-book h3,
.book-card h3 {
  overflow-wrap: anywhere;
}

.page-glow {
  pointer-events: none;
}

.book-card img {
  will-change: auto;
}

.book-card:hover img {
  transform: rotateY(8deg) rotateX(4deg) scale(1.03);
}


/* ===== Premium background ===== */
html {
  background:
    radial-gradient(circle at 18% 20%, rgba(122, 92, 255, 0.16) 0%, rgba(122, 92, 255, 0.00) 26%),
    radial-gradient(circle at 78% 18%, rgba(58, 123, 255, 0.14) 0%, rgba(58, 123, 255, 0.00) 24%),
    radial-gradient(circle at 52% 78%, rgba(66, 209, 170, 0.10) 0%, rgba(66, 209, 170, 0.00) 26%),
    linear-gradient(180deg, #020617 0%, #07112c 42%, #081735 100%);
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 15% 18%, rgba(125, 92, 255, 0.09), transparent 60%),
    radial-gradient(950px 650px at 85% 22%, rgba(66, 133, 244, 0.08), transparent 60%),
    radial-gradient(900px 600px at 50% 85%, rgba(74, 222, 128, 0.05), transparent 60%);
  color: #f8fafc;
}

/* static star layers */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  opacity: 0.7;
  background-image:
    radial-gradient(2px 2px at 8% 14%, rgba(255,255,255,0.95) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 18% 72%, rgba(255,255,255,0.82) 0, transparent 60%),
    radial-gradient(1px 1px at 27% 33%, rgba(255,255,255,0.76) 0, transparent 60%),
    radial-gradient(2px 2px at 38% 81%, rgba(255,255,255,0.90) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 49% 25%, rgba(255,255,255,0.88) 0, transparent 60%),
    radial-gradient(1px 1px at 58% 61%, rgba(255,255,255,0.76) 0, transparent 60%),
    radial-gradient(2px 2px at 66% 16%, rgba(255,255,255,0.92) 0, transparent 60%),
    radial-gradient(1px 1px at 74% 49%, rgba(255,255,255,0.72) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 78%, rgba(255,255,255,0.86) 0, transparent 60%),
    radial-gradient(2px 2px at 94% 36%, rgba(255,255,255,0.90) 0, transparent 60%),
    radial-gradient(1px 1px at 12% 48%, rgba(180,220,255,0.8) 0, transparent 60%),
    radial-gradient(1px 1px at 31% 58%, rgba(180,220,255,0.72) 0, transparent 60%),
    radial-gradient(1px 1px at 61% 86%, rgba(180,220,255,0.65) 0, transparent 60%),
    radial-gradient(1px 1px at 79% 7%, rgba(180,220,255,0.7) 0, transparent 60%);
  background-repeat: no-repeat;
}

body::after {
  opacity: 0.28;
  background-image:
    radial-gradient(240px 240px at 14% 18%, rgba(140, 90, 255, 0.34), transparent 70%),
    radial-gradient(300px 300px at 80% 22%, rgba(58, 123, 255, 0.30), transparent 72%),
    radial-gradient(260px 260px at 48% 82%, rgba(66, 209, 170, 0.18), transparent 74%);
  background-repeat: no-repeat;
  filter: blur(24px);
}

.site-header,
main,
.site-footer,
.lightbox {
  position: relative;
  z-index: 2;
}

/* premium section depth */
.section {
  position: relative;
}

.hero::before,
.section-accent::before,
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.hero > .container,
.section > .container,
.site-header > .container,
.site-footer > .container {
  position: relative;
  z-index: 1;
}

/* softer glass */
.glass {
  background: linear-gradient(180deg, rgba(8,16,40,0.78), rgba(5,12,32,0.68));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  background: linear-gradient(180deg, rgba(4,10,26,0.72), rgba(4,10,26,0.48));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer {
  background: linear-gradient(180deg, rgba(4,10,26,0.35), rgba(4,10,26,0.6));
}

.button-primary {
  box-shadow: 0 12px 35px rgba(90, 86, 255, 0.35);
}

.button-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #eef2ff;
}

.hero-copy h1,
.section-head h2 {
  text-shadow: 0 4px 30px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
  body::before {
    opacity: 0.62;
  }
  body::after {
    opacity: 0.22;
    filter: blur(18px);
  }
}



/* premium bg menu fix */
.nav-overlay[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-wrap {
    position: relative;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 84px);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .brand-text {
    min-width: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    position: relative;
    z-index: 121;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed !important;
    top: 84px;
    left: 12px;
    right: 12px;
    z-index: 120;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(4, 15, 40, 0.98);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.96);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(2, 6, 23, 0.38);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 901px) {
  .nav-overlay {
    display: none !important;
  }
}


/* Apple-style buttons restored */
.button-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c6cff, #4f46e5);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 34px rgba(79, 70, 229, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  overflow: hidden;
}

.button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.24), transparent 45%);
  pointer-events: none;
  opacity: 0.95;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 42px rgba(79, 70, 229, 0.46),
    inset 0 1px 0 rgba(255,255,255,0.22);
  filter: saturate(1.05);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: #eef2ff;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.button-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.08);
}


/* ===== Блок "Почему это важно" ===== */
.meaning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.meaning-card {
  padding: 24px;
  border-radius: 24px;
}

.meaning-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.meaning-card p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

.meaning-note {
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: 24px;
}

.meaning-note p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.84);
}

@media (max-width: 900px) {
  .meaning-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .meaning-card,
  .meaning-note {
    padding: 20px;
    border-radius: 20px;
  }

  .meaning-card h3 {
    font-size: 1.2rem;
  }

  .meaning-note p {
    font-size: 1rem;
    line-height: 1.65;
  }
}
.about-bottom {
  margin-top: 28px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  text-align: center;
}
