/* Home page regions: nav, hero, counters, book feed, steps, limits, footer. */

/* ---- nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px); background: rgba(10,10,12,0.72);
  border-bottom: 1px solid transparent; transition: border-color 0.25s, background 0.25s;
}
.nav.stuck { border-bottom-color: var(--line); background: rgba(10,10,12,0.9); }
.nav .container { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; flex: none; border-radius: 8px; object-fit: cover; }
.brand .name { font-size: 15px; color: var(--cream); }
.brand .tick { font-family: var(--mono); font-size: 11px; color: var(--cream); background: var(--brand); border: 1px solid var(--brand); padding: 2px 6px; border-radius: 6px; }
.nav-links { display: flex; gap: 22px; margin-left: 10px; }
.nav-links a { font-size: 14px; color: var(--ash); transition: color 0.18s; }
.nav-links a:hover { color: var(--cream); }
.ca-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 10px 8px 13px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,0.02);
  font-family: var(--mono); font-size: 12px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.ca-pill:hover { border-color: var(--brand-text); background: rgba(157,51,30,0.10); }
.ca-pill .k { color: var(--ash-2); }
.ca-pill .v { color: var(--cream); }
.ca-pill .copy { width: 14px; height: 14px; opacity: 0.6; }

/* ---- hero */
.hero { position: relative; padding: 86px 0 64px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; }
.hero-glow {
  position: absolute; left: 50%; top: 42%; width: min(900px, 120vw); height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(157,51,30,0.30), transparent 68%);
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 54px; align-items: center; }
.hero h1 { margin: 18px 0 0; }
.hero .sub { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.ca-block {
  margin-top: 34px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(157,51,30,0.10), rgba(255,255,255,0.01));
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ca-block .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash-2); }
.ca-block .v { font-family: var(--mono); font-size: clamp(12px, 1.6vw, 15px); word-break: break-all; color: var(--cream); }
.ca-block .warn { width: 100%; font-size: 12px; color: var(--ash-2); }

/* the mark in the hero: the approved logo, presented as a deliberate tile */
.hero-art { position: relative; display: flex; justify-content: center; }
.book-art {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(100%, 420px); height: auto; aspect-ratio: 1 / 1;
  border-radius: 28px; background: var(--brand);
  box-shadow: 0 0 0 1px rgba(157,51,30,0.55), 0 0 60px rgba(157,51,30,0.45), 0 0 140px rgba(157,51,30,0.28), 0 34px 60px rgba(0,0,0,0.55);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.book-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.book-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the bloom off the flames: screened over the photo, flickering like a real fire's light */
.fire-glow { mix-blend-mode: screen; opacity: 0.55; animation: flicker 2.3s linear infinite; }
@keyframes flicker {
  0% { opacity: 0.55; } 8% { opacity: 0.72; } 15% { opacity: 0.5; } 23% { opacity: 0.8; }
  31% { opacity: 0.6; } 40% { opacity: 0.68; } 47% { opacity: 0.46; } 55% { opacity: 0.75; }
  63% { opacity: 0.58; } 71% { opacity: 0.84; } 80% { opacity: 0.52; } 88% { opacity: 0.7; } 94% { opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) { .book-art, .fire-glow { animation: none; } }

/* ---- counters */
.counters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0C0C0F; }
.counters .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.counter { padding: 26px 20px; border-right: 1px solid var(--line); }
.counter:last-child { border-right: 0; }
.counter .v { font-family: var(--mono); font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.03em; }
.counter .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash-2); margin-top: 6px; }

/* ---- sections */
.section { padding: 84px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head .sub { margin-top: 12px; }

/* ---- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px; position: relative; overflow: hidden; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--brand-text); letter-spacing: 0.16em; }
.step h3 { margin: 14px 0 9px; }
.step p { margin: 0; color: var(--ash); font-size: 14.5px; }
.step::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--brand-text), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.step.in::after { transform: scaleX(1); }

/* ---- limits */
.limits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.limit { padding: 22px 24px; border-left: 2px solid var(--line-2); background: #0D0D10; border-radius: 0 var(--r) var(--r) 0; }
.limit.hard { border-left-color: var(--brand-text); }
.limit h3 { font-size: 15px; }
.limit p { margin: 8px 0 0; color: var(--ash); font-size: 14px; }

/* ---- footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 60px; }
.footer .top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer .links a { font-size: 14px; color: var(--ash); }
.footer .links a:hover { color: var(--cream); }
.footer .fine { margin-top: 30px; font-size: 12px; color: var(--ash-2); max-width: 78ch; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .book-art { width: min(74%, 320px); }
  .steps { grid-template-columns: 1fr; }
  .limits { grid-template-columns: 1fr; }
  .counters .container { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(2n) { border-right: 0; }
  .counter:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  :root { --gut: 18px; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 60px 0; }
  .ca-block { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav .container { height: 60px; gap: 10px; }
  .brand { gap: 8px; }
  .brand .name { font-size: 13.5px; white-space: nowrap; }
  .brand .tick { display: none; }
  .brand .mark { width: 26px; height: 26px; }
  .ca-pill { padding: 6px 10px; font-size: 11px; white-space: nowrap; }
  .ca-pill .copy { display: none; }
  .book-art { width: 62%; border-radius: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .counter { padding: 20px 14px; }
}
