/* ============================================
   Crypto Mastery — Design Tokens
   Palette: ink navy + brass/gold + candle green/red
   Type: Fraunces (display) / Manrope (body) / JetBrains Mono (data)
   ============================================ */
:root {
  --ink: #0a0f1c;
  --ink-2: #111a2e;
  --ink-3: #16213a;
  --paper: #f2ede2;
  --paper-dim: #c9c3b4;
  --brass: #c9a24a;
  --brass-bright: #e6c777;
  --green: #3fae72;
  --red: #c1584f;
  --line: rgba(242, 237, 226, 0.12);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

::selection { background: var(--brass); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--brass);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  font-weight: 500;
}
.ticker__track {
  display: inline-flex;
  gap: 36px;
  padding: 7px 0;
  animation: ticker-scroll 32s linear infinite;
}
.ticker__track span { padding-right: 36px; border-right: 1px solid rgba(10,15,28,0.25); }
.ticker__track span:last-child { border-right: none; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.logo__text em { color: var(--brass); font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color .18s ease;
}
.btn--primary {
  background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(201,162,74,0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(201,162,74,0.7); }
.btn--large { padding: 17px 36px; font-size: 16px; }
.btn--ghost {
  border-color: var(--brass);
  color: var(--brass);
  background: transparent;
}
.btn--ghost:hover { background: rgba(201,162,74,0.1); }
.btn--small { padding: 9px 18px; font-size: 13px; }
.btn--text { padding: 13px 4px; color: var(--paper-dim); font-weight: 600; }
.btn--text:hover { color: var(--brass-bright); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
}
.eyebrow--center { text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--paper);
}
.section__title--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 88px 28px 100px;
  position: relative;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.12;
  margin: 0 0 22px;
  animation: rise 0.8s ease both;
}
.hero__title-em { color: var(--brass-bright); font-style: italic; }
.hero__sub {
  font-size: 17.5px;
  color: var(--paper-dim);
  max-width: 480px;
  margin: 0 0 32px;
  animation: rise 0.8s ease 0.1s both;
}
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: rise 0.8s ease 0.2s both;
}
.hero__proof {
  display: flex;
  gap: 40px;
  animation: rise 0.8s ease 0.3s both;
}
.proof__item { display: flex; flex-direction: column; }
.proof__num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--brass-bright);
  font-weight: 600;
}
.proof__label { font-size: 12.5px; color: var(--paper-dim); max-width: 110px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Book mockup (signature element) ---------- */
.hero__book {
  display: flex;
  justify-content: center;
  perspective: 1400px;
  animation: rise 1s ease 0.15s both;
}
.book {
  --book-depth: 24px;
  position: relative;
  width: 300px;
  height: 420px;
  transform: rotateY(-24deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.hero__book:hover .book { transform: rotateY(-15deg) rotateX(2deg); }
.book > * { position: absolute; top: 0; left: 0; backface-visibility: hidden; }

/* Front cover — the face the whole box is built around */
.book__front {
  width: 100%;
  height: 100%;
}
.book__cover {
  position: absolute;
  inset: 0;
  border-radius: 3px 8px 8px 3px;
  background:
    radial-gradient(120% 140% at 15% 0%, #1c2846 0%, #101a30 55%, #0b1424 100%);
  border: 1px solid rgba(201,162,74,0.35);
  box-shadow:
    18px 26px 50px -14px rgba(0,0,0,0.65),
    inset 0 0 0 1px rgba(255,255,255,0.02);
  padding: 34px 28px;
  color: var(--brass);
  display: flex;
  flex-direction: column;
}

/* Back cover — a flat plane one full depth behind the front, closing the box */
.book__back {
  width: 100%;
  height: 100%;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(160deg, #0e1728, #080d18);
  transform: translateZ(calc(var(--book-depth) * -1));
}

/* Spine — hinged at the front's left edge (x:0) and folded back into the depth */
.book__spine {
  width: var(--book-depth);
  height: 100%;
  border-radius: 4px 0 0 4px;
  background: repeating-linear-gradient(
    to bottom,
    #182242 0px, #182242 22px,
    #0e1526 22px, #0e1526 24px
  );
  box-shadow: inset -3px 0 6px rgba(0,0,0,0.45);
  transform-origin: left center;
  transform: rotateY(-90deg);
}

/* Pages — hinged at the front's right edge and folded back into the depth */
.book__pages {
  left: calc(100% - var(--book-depth));
  width: var(--book-depth);
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(
    to bottom,
    #efe7d2 0px, #efe7d2 2px,
    #ddd2b3 2px, #ddd2b3 3px
  );
  box-shadow: inset 2px 0 5px rgba(0,0,0,0.25);
  transform-origin: right center;
  transform: rotateY(90deg);
}

/* Top edge — hinged at the front's top edge and folded back into the depth */
.book__top {
  width: 100%;
  height: var(--book-depth);
  border-radius: 3px 6px 0 0;
  background: linear-gradient(to right, #182242 0%, #182242 8%, #e9e0c8 18%, #e9e0c8 100%);
  transform-origin: center top;
  transform: rotateX(90deg);
}
.book__chart { color: var(--brass); opacity: 0.85; height: 66px; margin-bottom: 22px; }
.book__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 0 0 10px;
}
.book__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.08;
  font-weight: 600;
  color: var(--paper);
  margin: 0;
}
.book__rule {
  width: 42px;
  height: 2px;
  background: var(--brass);
  margin: 22px 0 14px;
}
.book__author {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--brass-bright);
  margin: 0 0 4px;
}
.book__tag { font-size: 12px; color: var(--paper-dim); margin: 0; }
.book__band {
  position: absolute;
  top: 26px;
  right: -34px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 40px;
  transform: rotate(35deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ---------- Steps ---------- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--brass);
  opacity: 0.85;
  line-height: 1;
}
.step__body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 10px;
  color: var(--paper);
}
.step__body p { color: var(--paper-dim); max-width: 620px; margin: 0 0 6px; }
.email-link { color: var(--brass-bright); font-weight: 600; border-bottom: 1px solid rgba(230,199,119,0.4); }
.email-link:hover { border-color: var(--brass-bright); }

.exchange-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.exchange-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 240px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.exchange-card:hover {
  border-color: var(--brass);
  background: var(--ink-3);
  transform: translateY(-2px);
}
.exchange-card__name { font-weight: 700; font-family: var(--font-body); }
.exchange-card__cta { font-family: var(--font-mono); font-size: 12.5px; color: var(--brass); }
.step__note {
  font-size: 12.5px;
  color: rgba(242,237,226,0.4);
  font-style: italic;
  margin-top: 14px !important;
}

/* ---------- Bonus ---------- */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.bonus-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.bonus-card:hover { transform: translateY(-4px); border-color: rgba(201,162,74,0.4); }
.bonus-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 20px;
}
.bonus-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--paper);
}
.bonus-card p { color: var(--paper-dim); margin: 0; font-size: 15px; }

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.portrait-frame {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  border: 1px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(201,162,74,0.08);
}
.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.92) contrast(1.03);
}
.about__lede { font-size: 18px; color: var(--paper); margin: 0 0 18px; }
.about p { color: var(--paper-dim); }
.about strong { color: var(--paper); }
.about em { color: var(--brass-bright); font-style: italic; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 52px auto 0; display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brass);
  transition: transform 0.2s ease;
  margin-left: 20px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--paper-dim); margin: 14px 0 0; max-width: 640px; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: radial-gradient(120% 180% at 50% 0%, rgba(201,162,74,0.08), transparent 60%);
}
.final-cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--paper);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer__note { color: var(--paper-dim); font-size: 13.5px; max-width: 480px; margin: 0; }
.footer__copy { color: rgba(242,237,226,0.35); font-size: 12.5px; margin: 0; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero__book { order: -1; margin-bottom: 20px; }
  .book { width: 240px; height: 340px; --book-depth: 19px; }
  .book__title { font-size: 24px; }
  .about__inner { grid-template-columns: 1fr; text-align: left; }
  .portrait-frame { width: 140px; height: 140px; }
  .portrait-initials { font-size: 38px; }
  .bonus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 20px 64px; gap: 40px; }
  .hero__proof { gap: 24px; flex-wrap: wrap; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; padding: 28px 0; }
  .step__num { font-size: 28px; }
  .exchange-card { min-width: 0; width: 100%; }
  .exchange-row { flex-direction: column; }
  .bonus-grid { grid-template-columns: 1fr; }
  .book { width: 200px; height: 290px; --book-depth: 16px; }
  .book__cover { padding: 24px 20px; }
  .book__title { font-size: 20px; }
  .book__chart { height: 46px; margin-bottom: 14px; }
  .final-cta__title { padding: 0 4px; }
  .br-desktop { display: none; }
}
