/* ==========================================================================
   Corona Rework — Premium dark finance brand
   Archetype: Mouse-Reactive Gradient
   ========================================================================== */

/* ---------- 1. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  --bg: #0a0908;
  --bg-2: #131110;
  --bg-3: #1b1815;
  --ink: #f4efe6;
  --ink-mute: #a89e8e;
  --line: rgba(244, 239, 230, 0.10);

  --gold: #d8b369;
  --teal: #5d8f80;
  --plum: #6a4f7a;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --mx: 50%;
  --my: 40%;

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- 3. Accessibility helpers ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: #1a1408;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 4. Splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  animation: splash-hide 4.5s forwards;
}
.splash__mark {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-style: italic;
  color: var(--gold);
  opacity: 0;
  animation: splash-mark 1.2s var(--ease) forwards 0.2s;
  letter-spacing: 0.08em;
}
@keyframes splash-mark {
  to { opacity: 1; }
}
@keyframes splash-hide {
  0%, 80% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

/* ---------- 5. Mouse-reactive gradient mesh ---------- */
.gradient-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(216, 179, 105, 0.16), transparent 60%),
    radial-gradient(800px circle at calc(100% - var(--mx)) calc(100% - var(--my)), rgba(93, 143, 128, 0.12), transparent 60%),
    var(--bg);
  transition: background 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .gradient-mesh {
    background:
      radial-gradient(800px circle at 70% 20%, rgba(216, 179, 105, 0.14), transparent 60%),
      radial-gradient(900px circle at 20% 80%, rgba(93, 143, 128, 0.10), transparent 60%),
      var(--bg);
  }
}

/* ---------- 6. Layout helpers ---------- */
.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head h2 { margin: 0.5rem 0 0; }
.section-head__sub {
  margin-top: 1rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* ---------- 7. Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; }
em { font-style: italic; color: var(--gold); }

h2 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ---------- 8. Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  margin-right: auto;
}
.nav__links {
  display: flex;
  gap: 1.75rem;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--ink-mute);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.currency-select select {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------- 9. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  cursor: pointer;
}
.btn--primary {
  background: var(--gold);
  color: #1a1408;
}
.btn--primary:hover {
  background: #e8c986;
}
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--small { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn--large { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* ---------- 10. Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6rem, 12vh, 10rem) var(--gutter) 4rem;
}
.hero__inner {
  max-width: 920px;
  text-align: center;
}
.hero__title {
  font-size: clamp(2.6rem, 9vw, 6rem);
  margin: 1rem 0 1.5rem;
}
.hero__sub {
  max-width: 520px;
  margin: 0 auto 2.25rem;
  color: var(--ink-mute);
  font-size: 1.05rem;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  display: block;
  width: 100%;
  height: 30%;
  background: var(--gold);
  animation: scroll-trace 2.2s ease-in-out infinite;
}
@keyframes scroll-trace {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(330%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation-duration: 4s; }
}

/* ---------- 11. About ---------- */
.about {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about__title { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-top: 0.75rem; }
.about__body p {
  color: var(--ink-mute);
  margin: 0 0 1.25rem;
}
.about__body p:last-child { margin-bottom: 0; }

/* ---------- 12. Stats ---------- */
.stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
}
.stats__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold);
}
.stat__label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* ---------- 13. Ebooks grid ---------- */
.ebooks {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.ebooks__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.book-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.1s linear;
}
.book-card:hover { border-color: rgba(216,179,105,0.35); }

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--bg-3);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,0.35), transparent 60%);
  pointer-events: none;
}
.book-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}
.book-card__subtitle {
  font-size: 0.95rem;
  color: var(--ink-mute);
  margin: 0;
}
.book-card__desc {
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.55;
}
.book-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-mute);
}
.book-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
}
.price__old {
  text-decoration: line-through;
  color: var(--ink-mute);
  font-size: 0.85rem;
}
.price__new {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- 14. Bundle ---------- */
.bundle {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bundle__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.bundle__inner h2 { margin-top: 0.75rem; }
.bundle__desc {
  color: var(--ink-mute);
  max-width: 540px;
  margin: 1.25rem auto 2rem;
}
.bundle__covers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.bundle__cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease);
}
.bundle__cover:hover { transform: translateY(-4px); }

.bundle__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  text-align: left;
}
.bundle__list li {
  font-size: 0.9rem;
  color: var(--ink-mute);
  padding-left: 1.4rem;
  position: relative;
}
.bundle__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 1px;
  background: var(--gold);
}
.bundle__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
}
.bundle__old {
  text-decoration: line-through;
  color: var(--ink-mute);
  font-size: 1.2rem;
}
.bundle__new {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
}
.bundle__note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ---------- 15. Testimonials ---------- */
.testimonials {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.testimonials__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.5;
}
.testimonial__name { font-weight: 600; font-size: 0.9rem; }
.testimonial__role { color: var(--ink-mute); font-size: 0.8rem; }

/* ---------- 16. FAQ ---------- */
.faq {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.faq-item__icon {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item__a p {
  margin: 0 0 1.5rem;
  color: var(--ink-mute);
  max-width: 60ch;
}

/* ---------- 17. Final CTA ---------- */
.final-cta {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 14vw, 10rem) var(--gutter);
  text-align: center;
}
.final-cta__inner h2 { margin-bottom: 2rem; }

/* ---------- 18. Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
}
.footer__brand p {
  color: var(--ink-mute);
  font-size: 0.88rem;
  margin: 0.5rem 0 0;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer__links a {
  font-size: 0.88rem;
  color: var(--ink-mute);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: var(--ink-mute);
}
.footer__bottom p { margin: 0; max-width: 60ch; }

/* ---------- 19. Reveal animations ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.js-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1280px) {
  .ebooks__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .about__inner { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .bundle__covers { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .ebooks__grid { grid-template-columns: 1fr; }
  .bundle__covers { grid-template-columns: repeat(3, 1fr); }
  .bundle__list { grid-template-columns: 1fr; }
  .nav__right .btn { display: none; }
}

@media (max-width: 540px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .footer__inner { flex-direction: column; }
}
