/* ============================================================
   From Trusted to Tested — Design System
   Near-Black · Burgundy · Gold · Tilted Floors
   ============================================================ */

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

:root {
  --ink:       #050D1A;
  --ink-alt:   #071629;
  --ink-card:  #0A1F3C;
  --burg:      #0E2850;
  --burg-mid:  #173570;
  --burg-hi:   #C8A951;
  --gold:      #C8A951;
  --gold-hi:   #D4BE76;
  --gold-lo:   #A8893A;
  --cream:     #E8EDF5;
  --text:      #E8EDF5;
  --muted:     #9BADC8;
  --dim:       #6B85AA;
  --border:    rgba(200,169,81,.16);
  --border-hi: rgba(200,169,81,.44);
  --glow:      rgba(200,169,81,.08);

  --font-disp: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease:      cubic-bezier(.16,1,.3,1);
  --dur:       .4s;
  --wrap:      1160px;
  --section:   100px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--ink); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { color: inherit; }

/* ── PROGRESS ── */
#prog {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--burg-mid), var(--gold), var(--gold-hi));
  z-index: 9999; transition: width .1s linear;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  padding: 24px 0; transition: all var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(7,3,10,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-disp); font-size: 1.1rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--text); }
.logo em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color var(--dur); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { border: 1px solid var(--burg-mid) !important; color: var(--cream) !important; padding: 7px 18px; border-radius: 3px; transition: all var(--dur) !important; }
.nav-cta:hover { background: var(--burg-mid) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); transition: all .3s; border-radius: 2px; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 70% 0%,   rgba(23,53,112,.35) 0%, transparent 60%),
    radial-gradient(ellipse 60%  60% at 20% 100%,  rgba(200,169,81,.04) 0%, transparent 55%),
    radial-gradient(ellipse 80%  80% at 100% 50%,  rgba(23,53,112,.15) 0%, transparent 70%);
}
.hero-lines {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.hero-lines::before {
  content: ''; position: absolute;
  top: -20%; left: 55%; width: 2px; height: 140%;
  background: linear-gradient(to bottom, transparent, rgba(200,169,81,.12), transparent);
  transform: rotate(12deg); transform-origin: top center;
}
.hero-lines::after {
  content: ''; position: absolute;
  top: -20%; left: 65%; width: 1px; height: 140%;
  background: linear-gradient(to bottom, transparent, rgba(200,169,81,.1), transparent);
  transform: rotate(12deg); transform-origin: top center;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: 100px 48px 80px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center;
}
.hero-left { }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
  opacity: 0; transform: translateY(14px);
}
.hero-kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: .5; }
.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(3.5rem, 6.5vw, 6.5rem);
  font-weight: 700; line-height: 1;
  margin-bottom: 10px;
  opacity: 0; transform: translateY(28px);
}
.hero-title .t1 { display: block; color: var(--text); }
.hero-title .t2 {
  display: block;
  background: linear-gradient(120deg, var(--gold-lo) 0%, var(--gold) 50%, var(--gold-hi) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-title .t3 { display: block; color: var(--text); font-size: clamp(2rem,3.5vw,3.5rem); margin-top: 8px; }
.hero-title .t4 {
  display: block;
  background: linear-gradient(120deg, var(--gold-lo) 0%, var(--gold) 50%, var(--gold-hi) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-size: clamp(2rem,3.5vw,3.5rem);
}
.hero-sub {
  font-size: clamp(.95rem, 1.5vw, 1.15rem); color: var(--muted);
  max-width: 480px; line-height: 1.75; margin-bottom: 16px;
  opacity: 0; transform: translateY(18px);
}
.hero-reg {
  font-family: var(--font-disp); font-size: 1rem; font-style: italic;
  color: var(--gold); margin-bottom: 42px;
  opacity: 0; transform: translateY(18px);
}
.hero-dates {
  display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 36px;
  opacity: 0; transform: translateY(18px);
}
.date-pill {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
}
.dp-pre  { background: rgba(200,169,81,.13); border: 1px solid rgba(200,169,81,.38); color: var(--gold); }
.dp-rel  { background: rgba(200,169,81,.08);  border: 1px solid rgba(200,169,81,.3);  color: var(--gold); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; transform: translateY(18px); }

/* Book on the right */
.hero-right { display: flex; justify-content: center; align-items: center; }
.book-stage { position: relative; display: flex; justify-content: center; opacity: 0; transform: scale(.92) translateX(20px); }
.book-shadow {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 140px; height: 30px;
  background: radial-gradient(ellipse, rgba(122,28,46,.6) 0%, transparent 70%);
  filter: blur(16px);
}
.book {
  width: 260px; aspect-ratio: 2/3;
  background: linear-gradient(168deg, #12060E 0%, #261220 45%, #12060E 100%);
  border-radius: 3px 10px 10px 3px;
  box-shadow:
    -7px 0 0 rgba(200,169,81,.25),
    0 30px 80px rgba(0,0,0,.7),
    inset -3px 0 12px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center; position: relative; overflow: hidden;
  animation: bookFloat 5s ease-in-out infinite;
}
@keyframes bookFloat { 0%,100%{transform:translateY(0) rotateY(-10deg)} 50%{transform:translateY(-20px) rotateY(-6deg)} }
.book::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(158deg, rgba(200,169,81,.1) 0%, transparent 45%);
}
.book::after {
  content: ''; position: absolute;
  inset: 8px; border: 1px solid rgba(200,169,81,.12); border-radius: 2px 8px 8px 2px;
  pointer-events: none;
}
.b-bar  { width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 20px; opacity: .6; }
.b-from { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(200,169,81,.7); margin-bottom: 4px; font-weight: 700; }
.b-trt  { font-family: var(--font-disp); font-size: 2.4rem; font-weight: 800; color: #fff; line-height: .9; margin-bottom: 3px; }
.b-to   { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(200,169,81,.65); margin-bottom: 3px; }
.b-test { font-family: var(--font-disp); font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: .9; margin-bottom: 24px; }
.b-line { width: 32px; height: 1px; background: var(--gold); opacity: .45; margin: 0 auto 16px; }
.b-wt   { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); line-height: 1.6; margin-bottom: 16px; }
.b-auth { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 3px; font-size: .8rem;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  position: relative; overflow: hidden; transition: all var(--dur) var(--ease);
}
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.08); transform: translateX(-100%); transition: transform .4s var(--ease); }
.btn:hover::after { transform: translateX(0); }
.btn-gold { background: linear-gradient(130deg, var(--gold-lo), var(--gold)); color: var(--ink); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(200,169,81,.35); }
.btn-burg { background: linear-gradient(130deg, var(--burg), var(--burg-mid)); color: #fff; }
.btn-burg:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(158,37,64,.4); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(232,232,220,.2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── DIVIDER SLASH ── */
.slash {
  height: 80px; overflow: hidden; margin: 0; line-height: 0;
  background: var(--ink);
}
.slash svg { display: block; width: 100%; }

/* ── SECTION COMMONS ── */
.section { padding: var(--section) 48px; }
.wrap    { max-width: var(--wrap); margin: 0 auto; }
.sec-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.sec-tag::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.sec-title {
  font-family: var(--font-disp);
  font-size: clamp(2.2rem,4.5vw,3.4rem); font-weight: 700; line-height: 1.1;
  margin-bottom: 22px;
}
.sec-title .g { color: var(--gold); }
.sec-title .r { color: var(--burg-hi); }
.sec-lead { font-size: 1.05rem; color: var(--muted); max-width: 620px; line-height: 1.82; }

/* ── ABOUT THE BOOK ── */
.abt-book { background: var(--ink-alt); }
.abt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; }
.abt-text {}
.abt-body { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.abt-body p { color: var(--muted); line-height: 1.88; padding-left: 18px; border-left: 2px solid rgba(200,169,81,.2); transition: border-color var(--dur); }
.abt-body p:hover { border-left-color: var(--gold); }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.theme {
  padding: 18px 20px; background: var(--ink-card); border: 1px solid var(--border);
  border-radius: 6px; transition: all var(--dur) var(--ease);
}
.theme:hover { border-color: var(--border-hi); background: rgba(200,169,81,.05); }
.theme-icon { font-size: 1.4rem; margin-bottom: 8px; }
.theme-label { font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.theme-desc  { font-size: .76rem; color: var(--muted); line-height: 1.5; }

/* Stats column */
.abt-stats { display: flex; flex-direction: column; gap: 24px; }
.abt-stat {
  padding: 28px 30px; background: var(--ink-card); border: 1px solid var(--border); border-radius: 8px;
  position: relative; overflow: hidden; transition: all var(--dur) var(--ease);
}
.abt-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.abt-stat:nth-child(2)::before { background: var(--burg-mid); }
.abt-stat:nth-child(3)::before { background: var(--burg-hi); }
.abt-stat:hover { border-color: var(--border-hi); transform: translateX(4px); }
.abt-stat-n { font-family: var(--font-disp); font-size: 2.6rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.abt-stat:nth-child(2) .abt-stat-n { color: var(--burg-hi); }
.abt-stat-l { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* ── DISCOVER ── */
.discover { background: var(--ink); }
.discover-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px; }
.disc-card {
  background: var(--ink-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 34px 28px; transition: all var(--dur) var(--ease); position: relative; overflow: hidden;
}
.disc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.disc-card:hover { border-color: var(--border-hi); transform: translateY(-5px); }
.disc-card:hover::after { transform: scaleX(1); }
.disc-num {
  font-family: var(--font-disp); font-size: 3rem; font-weight: 700;
  color: rgba(200,169,81,.12); line-height: 1; margin-bottom: 12px;
  transition: color var(--dur);
}
.disc-card:hover .disc-num { color: rgba(200,169,81,.22); }
.disc-title { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.disc-desc  { font-size: .86rem; color: var(--muted); line-height: 1.72; }

/* ── AUTHOR ── */
.author { background: var(--ink-alt); }
.author-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center; }
.author-img {
  width: 100%; aspect-ratio: 3/4; background: var(--ink-card);
  border-radius: 4px; overflow: hidden; position: relative;
}
.author-ph {
  width: 100%; height: 100%;
  background: linear-gradient(155deg, #2A1525 0%, #150D18 60%, rgba(200,169,81,.04) 100%);
  display: flex; align-items: center; justify-content: center;
}
.author-ph svg { width: 70px; height: 70px; opacity: .12; fill: var(--gold); }
.author-frame { position: absolute; inset: -12px; border: 1px solid rgba(200,169,81,.2); border-radius: 4px; pointer-events: none; transform: translate(12px,12px); }
.author-body { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.author-body p { color: var(--muted); line-height: 1.88; }
.author-creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cred {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid rgba(200,169,81,.25); color: var(--gold);
  background: rgba(200,169,81,.07);
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, #050D1A 0%, #0A1F3C 50%, #050D1A 100%);
  padding: var(--section) 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(200,169,81,.07) 0%, transparent 65%);
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-band .sec-title { text-align: center; }
.cta-band .sec-lead  { text-align: center; margin: 0 auto 36px; color: rgba(245,236,208,.65); }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: #020810; border-top: 1px solid rgba(200,169,81,.12); padding: 44px 48px;
}
.foot-inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot-logo { font-family: var(--font-disp); font-size: 1.05rem; font-weight: 600; }
.foot-logo em { font-style: normal; color: var(--gold); }
.foot-links { display: flex; gap: 24px; list-style: none; }
.foot-links a { font-size: .78rem; color: var(--muted); text-decoration: none; letter-spacing: .05em; transition: color var(--dur); }
.foot-links a:hover { color: var(--gold); }
.foot-copy { max-width: var(--wrap); margin: 24px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.04); font-size: .74rem; color: var(--dim); text-align: center; }

/* ── REVEAL ANIMATIONS ── */
.reveal, .reveal-l, .reveal-r { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal   { transform: translateY(36px); }
.reveal-l { transform: translateX(-36px); }
.reveal-r { transform: translateX(36px); }
.reveal.in, .reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > *:nth-child(1){transition-delay:0ms}
.stagger.in > *:nth-child(2){transition-delay:90ms}
.stagger.in > *:nth-child(3){transition-delay:180ms}
.stagger.in > *:nth-child(4){transition-delay:270ms}
.stagger.in > *:nth-child(5){transition-delay:360ms}
.stagger.in > *:nth-child(6){transition-delay:450ms}
.stagger.in > * { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-content  { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-kicker   { justify-content: center; }
  .hero-btns     { justify-content: center; }
  .hero-right    { display: none; }
  .abt-grid      { grid-template-columns: 1fr; gap: 48px; }
  .discover-grid { grid-template-columns: repeat(2,1fr); }
  .author-grid   { grid-template-columns: 1fr; gap: 48px; }
  .author-img    { max-width: 360px; margin: 0 auto; }
}
/* ── WAITLIST FORM (CTA section) ── */
.waitlist-form   { margin: 32px auto 0; max-width: 520px; }
.waitlist-row    { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.waitlist-row input[type="email"] {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 6px;
  border: 1px solid rgba(245,236,208,.25); background: rgba(255,255,255,.08);
  color: #f5ecd0; font-size: .95rem; outline: none;
}
.waitlist-row input[type="email"]::placeholder { color: rgba(245,236,208,.4); }
.waitlist-row input[type="email"]:focus { border-color: var(--ac); }
.wl-note { margin-top: 12px; font-size: .85rem; min-height: 20px; }
.wl-note.ok   { color: #7fcf8e; }
.wl-note.fail { color: #f08080; }

@media (max-width: 768px) {
  :root { --section: 64px; }
  .section, .cta-band, footer { padding-inline: 20px; }
  .nav-inner { padding-inline: 20px; }
  .hero-content { padding-inline: 20px; }
  .nav-links { display: none; position: fixed; inset: 0; background: #040208; flex-direction: column; align-items: center; justify-content: center; gap: 28px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .hamburger { display: flex; z-index: 1000; }
  .themes { grid-template-columns: 1fr; }
  .discover-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .waitlist-row { flex-direction: column; align-items: stretch; }
}
