/* ZecBooks site — molten private ledger */
:root {
  --ink: #0c0b09;
  --ink-2: #161410;
  --ink-3: #201c14;
  --ink-elev: #2a2418;
  --paper: #f7f2ea;
  --paper-soft: #e8dfd0;
  --muted: #c9bda8;
  --gold: #f4b728;
  --gold-soft: #fdc63e;
  --gold-deep: #c8880a;
  --gold-line: rgba(244, 183, 40, 0.28);
  --danger: #e8a07a;
  --ok: #9fd4a3;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --nav-h: 72px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% -10%, rgba(244, 183, 40, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 40% at -5% 40%, rgba(200, 136, 10, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 35% at 100% 90%, rgba(244, 183, 40, 0.08), transparent 55%),
    var(--ink);
}

/* ledger ruling texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(244, 183, 40, 0.55) 31px,
      rgba(244, 183, 40, 0.55) 32px
    );
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-soft); }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  background: var(--gold); color: #1a1205; padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* --- nav --- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid var(--gold-line);
  background: rgba(12, 11, 9, 0.94);
  backdrop-filter: blur(18px);
}
.site-nav {
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--paper); text-decoration: none; font-weight: 700; letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(244,183,40,.35), 0 8px 24px rgba(244,183,40,.25);
  display: grid; place-items: center;
}
.brand-mark img { width: 22px; height: 22px; border-radius: 5px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; color: var(--paper); font-weight: 700; padding: 8px 10px;
  border: 1px solid var(--gold-line); border-radius: 999px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel {
  position: absolute; right: 0; top: 48px; width: 220px; padding: 10px;
  display: grid; gap: 4px; background: var(--ink-2); border: 1px solid var(--gold-line);
  border-radius: 14px; box-shadow: var(--shadow);
}
.nav-menu-panel a {
  padding: 10px 12px; color: var(--paper); text-decoration: none; border-radius: 8px;
}
.nav-menu-panel a:hover { background: rgba(244,183,40,.1); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  font-weight: 700; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  color: #1a1205 !important;
  box-shadow: 0 0 0 1px rgba(244,183,40,.4), 0 12px 40px rgba(244,183,40,.28);
}
.button-primary:hover { box-shadow: 0 0 0 1px rgba(244,183,40,.55), 0 16px 48px rgba(244,183,40,.38); }
.button-ghost {
  border-color: var(--gold-line); color: var(--paper) !important; background: rgba(255,255,255,.03);
}
.button-ghost:hover { border-color: var(--gold); color: var(--gold-soft) !important; }

/* --- hero --- */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 28px) 0 0;
  display: grid;
  align-content: start;
}
.hero-copy {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 28px;
  max-width: 34rem;
  animation: rise .9s ease both;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--paper);
}
.hero-tag {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
}
.hero-badges {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note {
  margin: 18px 0 0;
  max-width: 36rem;
  color: var(--paper-soft);
  font-size: 0.95rem;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(244, 183, 40, 0.08);
  border-radius: 0 10px 10px 0;
}

.hero-stage {
  position: relative;
  width: 100%;
  margin-top: 12px;
  animation: rise .9s .12s ease both;
}
.hero-stage::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 18%;
  height: 64%;
  background: radial-gradient(ellipse at center, rgba(244,183,40,.28), transparent 68%);
  filter: blur(8px);
  z-index: 0;
}
.hero-shot {
  position: relative; z-index: 1;
  width: 100%;
  max-height: min(62vh, 720px);
  object-fit: cover;
  object-position: top center;
  border-block: 1px solid var(--gold-line);
  box-shadow: 0 -40px 120px rgba(244,183,40,.08);
}

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

/* --- sections --- */
section { position: relative; z-index: 1; padding: clamp(64px, 9vw, 120px) 0; }
.section-kicker {
  margin: 0 0 10px; color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 560; letter-spacing: -0.03em; line-height: 1.05;
  max-width: 16ch;
}
.section-lede {
  margin: 0 0 36px; color: var(--muted); max-width: 40rem; font-size: 1.08rem;
}

.trust-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-item {
  background: rgba(22, 20, 16, 0.92);
  padding: 28px 24px;
}
.trust-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 560;
}
.trust-item p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.trust-item strong { color: var(--gold); font-weight: 700; }

/* watch / video */
.watch-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow), 0 0 0 1px rgba(244,183,40,.08);
  background: #000;
}
.watch-frame video,
.watch-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.watch-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    linear-gradient(180deg, rgba(12,11,9,.15), rgba(12,11,9,.55)),
    center / cover no-repeat url("/demo/overview-poster.jpg");
  text-decoration: none; color: var(--paper);
}
.watch-placeholder .play {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #1a1205;
  box-shadow: 0 16px 48px rgba(244,183,40,.4);
  font-size: 28px; transition: transform .2s ease;
}
.watch-placeholder:hover .play { transform: scale(1.06); }
.watch-caption {
  max-width: 960px; margin: 16px auto 0;
  color: var(--muted); font-size: 0.95rem; text-align: center;
}

/* how it works — diagonal rail, not cards */
.flow {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--gold-line);
  margin-left: 12px;
}
.flow-step {
  position: relative;
  padding: 8px 0 36px 36px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .55s ease, transform .55s ease;
}
.flow-step.is-in { opacity: 1; transform: none; }
.flow-step::before {
  content: attr(data-step);
  position: absolute; left: -15px; top: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); border: 2px solid var(--gold);
  color: var(--gold); font-size: 13px; font-weight: 700;
}
.flow-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 560;
}
.flow-step p { margin: 0; color: var(--muted); max-width: 38rem; }

/* product gallery — overlapping planes, not card grid */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}
.gallery-main, .gallery-side figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--ink-2);
  box-shadow: var(--shadow);
}
.gallery-side { display: grid; gap: 18px; }
.gallery figcaption {
  padding: 14px 16px 16px;
  color: var(--muted); font-size: 0.92rem;
  border-top: 1px solid var(--gold-line);
}
.gallery figcaption strong { color: var(--paper); display: block; margin-bottom: 4px; }

.proof-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.proof-strip figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--ink-2);
}

/* guides preview */
.guide-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.guide-teaser {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px; padding: 26px;
  text-decoration: none; color: inherit;
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(244,183,40,.08), transparent 42%),
    var(--ink-2);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.guide-teaser:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  color: inherit;
}
.guide-teaser .label {
  color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.guide-teaser h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 560; line-height: 1.15;
  color: var(--paper);
}
.guide-teaser p { margin: 0; color: var(--muted); flex: 1; }
.guide-teaser .more {
  margin-top: 20px; color: var(--gold); font-weight: 700; font-size: 0.92rem;
}

.guides-all {
  margin-top: 22px;
  display: flex; justify-content: flex-end;
}

/* final CTA band */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 22px;
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(244,183,40,.22), transparent 50%),
    linear-gradient(135deg, var(--ink-3), var(--ink-2));
  box-shadow: var(--shadow);
}
.cta-band h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 560; letter-spacing: -0.02em;
}
.cta-band p { margin: 0; color: var(--muted); max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* footer */
.site-footer {
  position: relative; z-index: 1;
  padding: 48px 0 64px;
  border-top: 1px solid var(--gold-line);
  color: var(--muted); font-size: 0.92rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  align-items: center; justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* reveal helper */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 900px) {
  .trust-rail, .guide-preview, .gallery, .proof-strip, .cta-band {
    grid-template-columns: 1fr;
  }
  .hero-copy { max-width: none; }
  .hero-shot { max-height: 48vh; }
  .cta-actions { justify-content: flex-start; }
}
