:root {
  --bg: #000000;
  --bg-alt: #131209;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --line: #272727;
  --line-2: #313131;
  --text: #F2F2F0;
  --muted: #9B9B9B;
  --accent: #7CC47F;
  --accent-ink: #0B1A0C;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 40px; --s8: 48px; --s9: 64px; --s10: 80px; --s11: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .nw { white-space: nowrap; } }
.mono {font-family: "Geist", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--text); color: #000; padding: var(--s2) var(--s3); border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s4); }

.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 768px) { .container { padding: 0 var(--s6); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: var(--s2) var(--s3); border-radius: 12px; border: 1px solid transparent;
  font: 600 1rem/1.5rem "Geist", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), opacity 300ms var(--ease);
}
.btn-sm { font-size: 0.875rem; line-height: 1.25rem; border-radius: 8px; }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: #FFFFFF; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary .ph { transition: transform 300ms var(--ease); }
.btn-primary:hover .ph-arrow-right { transform: translateX(4px); }
.btn-block { width: 100%; padding: var(--s3) var(--s3); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Nav */
.nav-wrap { position: fixed; top: var(--s4); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--s4); pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: var(--s5);
  padding: var(--s2) var(--s2) var(--s2) var(--s4);
  background: rgba(24, 24, 24, 0.7); border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; width: 100%; max-width: 760px; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; }
.brand-book {
  width: 20px; height: 30px; border-radius: 2px 4px 4px 2px; object-fit: cover;
  box-shadow: -2px 0 0 #2a2a2a, 0 2px 8px rgba(0,0,0,0.6);
}
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-by { font-size: 0.75rem; line-height: 1rem; font-weight: 400; color: var(--muted); }
.nav-links { display: none; gap: var(--s1); }
.nav-links a {
  display: block; padding: var(--s2) var(--s3); border-radius: 8px; text-decoration: none;
  font-size: 0.875rem; line-height: 1.25rem; color: var(--muted);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a[aria-current="true"] { color: var(--text); background: rgba(255,255,255,0.08); }
.nav-cta { display: none; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none !important; }
}

.menu-toggle {
  position: relative; width: 40px; height: 40px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,0.06); cursor: pointer; display: inline-block;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 500ms var(--ease);
}
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 120px var(--s5) var(--s6);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s2); }
.mobile-menu a:not(.btn) { display: block; padding: var(--s3) 0; font-size: 1.875rem; line-height: 2.25rem; font-weight: 500; text-decoration: none; }
.mobile-menu .btn { margin-top: var(--s5); width: 100%; }
.mobile-menu li { opacity: 0; transform: translateY(24px); }
.mobile-menu.open li { opacity: 1; transform: none; transition: opacity 500ms var(--ease), transform 500ms var(--ease); }

/* Hero */
.hero { padding: 144px 0 var(--s10); }
.hero-grid { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 160px 0 var(--s11); }
  .hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: var(--s7); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s1) var(--s3); border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); margin-bottom: var(--s5);
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.hero-title {
  max-width: 680px; font-size: 3rem; line-height: 1; letter-spacing: -0.03em; font-weight: 600;
  padding-bottom: var(--s1);
}
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.grad-text {
  background: linear-gradient(90deg, #FFFFFF 0%, #9B9B9B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 680px; margin-top: var(--s5); font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
@media (min-width: 640px) { .hero-sub { font-size: 1.25rem; line-height: 1.75rem; } }
.hero-actions { margin-top: var(--s6); display: flex; gap: var(--s3); }
.hero-proof { margin-top: var(--s5); display: flex; gap: var(--s2); align-items: flex-start; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); max-width: 480px; }
.hero-proof .ph { color: var(--accent); font-size: 1.25rem; flex: none; }

.hero-visual {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--s6) 0 var(--s4); isolation: isolate;
}
.blueprint {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: rgba(124, 196, 127, 0.2);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.blueprint .bp-line { color: rgba(124, 196, 127, 0.35); stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2400ms var(--ease) 400ms forwards; }
.blueprint .bp-node { fill: var(--accent); opacity: 0; animation: fade 600ms var(--ease) 1800ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 0.8; } }

.book-stage { perspective: 1600px; animation: rise 900ms var(--ease) both 120ms; }
.book {
  --w: min(300px, 64vw); --d: 26px;
  position: relative; width: var(--w); aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(6deg);
  transition: transform 800ms var(--ease);
  animation: float 7s var(--ease) infinite alternate 1s;
}
@media (min-width: 1100px) { .book { --w: 320px; } }
.book picture, .book-front {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  border-radius: 2px 6px 6px 2px; object-fit: cover; backface-visibility: hidden;
}
.book-front { box-shadow: inset 4px 0 6px rgba(0,0,0,0.5); }
.book-spine {
  position: absolute; top: 0; left: 0; width: var(--d); height: 100%;
  background: #0d1014 url("/assets/book-spine.jpg") center / 100% 100% no-repeat;
  transform-origin: left center; transform: rotateY(-90deg);
  filter: brightness(0.7);
}
.book-pages {
  position: absolute; top: 3px; right: 0; width: var(--d); height: calc(100% - 6px);
  background: repeating-linear-gradient(90deg, #EDEAE2 0 1px, #D6D2C8 1px 2px);
  transform-origin: right center; transform: rotateY(90deg) translateX(0);
  filter: brightness(0.55);
}
.book-sheen {
  position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 60%);
  background-size: 300% 100%; background-position: 100% 0; opacity: 0.9;
  transition: background-position 1200ms var(--ease);
}
.book:hover .book-sheen { background-position: 0 0; }
.book-shadow {
  width: calc(min(300px, 64vw) * 0.9); height: 24px; margin: var(--s6) auto 0;
  background: rgba(124, 196, 127, 0.18); border-radius: 50%; filter: blur(18px);
  transform: translateX(16px);
}
@keyframes float { from { translate: 0 0; } to { translate: 0 -12px; } }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s5); }
.hero-tags li {
  padding: var(--s1) var(--s3); border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(24,24,24,0.7); font-size: 0.75rem; line-height: 1rem; color: var(--muted);
}
.hero-copy > * { animation: rise 800ms var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 60ms; }
.hero-copy > *:nth-child(3) { animation-delay: 120ms; }
.hero-copy > *:nth-child(4) { animation-delay: 180ms; }
.hero-copy > *:nth-child(5) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* Stats */
.stats { border: 1px solid var(--line); border-left: 0; border-right: 0; background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: var(--s6) var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.stat-num { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }

/* Sections */
.section { padding: var(--s10) 0; }
@media (min-width: 768px) { .section { padding: var(--s11) 0; } }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: var(--s8); }
.kicker { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--accent); margin-bottom: var(--s3); letter-spacing: 0.02em; }
.h2 { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .h2 { font-size: 2.25rem; line-height: 2.5rem; } }
.lead { margin-top: var(--s4); font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.prose p { color: #C9C9C6; font-size: 1.125rem; line-height: 1.75rem; }
.prose p + p { margin-top: var(--s4); }
.prose strong { color: var(--text); font-weight: 600; }

.two-col { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s9); } }

/* Tagline reveal */
.tagline { padding: var(--s11) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tagline-text {
  max-width: 900px; font-size: 2.25rem; line-height: 2.5rem; font-weight: 500; letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (min-width: 768px) { .tagline-text { font-size: 3rem; line-height: 1.1; } }
@media (min-width: 1100px) { .tagline-text { font-size: 3.75rem; line-height: 1.05; } }
.tagline-text .w { color: rgba(242, 242, 240, 0.28); transition: color 600ms var(--ease); }
.tagline-text .w.on { color: var(--text); }

/* Inside */
.inside-grid { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 960px) { .inside-grid { grid-template-columns: 1fr 1fr; gap: var(--s9); } }
.mockup { position: relative; }
.mockup img { width: 100%; filter: drop-shadow(0 32px 48px rgba(0,0,0,0.7)); }
.benefits { display: flex; flex-direction: column; gap: var(--s5); }
.benefit { display: flex; gap: var(--s4); }
.benefit > .ph {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent); font-size: 1.25rem;
}
.benefit h3 { font-size: 1.125rem; line-height: 1.75rem; }
.benefit p { margin-top: var(--s1); color: var(--muted); }

/* Steps */
.steps { display: grid; gap: var(--s4); counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: var(--s5); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.step-num { display: inline-block; font-size: 0.875rem; line-height: 1.25rem; color: var(--accent); margin-bottom: var(--s6); }
.step h3 { font-size: 1.25rem; line-height: 1.75rem; }
.step p { margin-top: var(--s2); color: var(--muted); }

/* Cards */
.cards { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; padding: var(--s5); border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 500ms var(--ease), border-color 300ms var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: 1.5rem; margin-bottom: var(--s5); }
.card h3 { font-size: 1.25rem; line-height: 1.75rem; }
.card p { margin-top: var(--s2); color: var(--muted); flex: 1; }
.card-link {
  margin-top: var(--s5); display: inline-flex; align-items: center; gap: var(--s1);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; text-decoration: none; color: var(--text);
}
.card-link .ph { transition: transform 300ms var(--ease); }
.card-link:hover .ph { transform: translate(2px, -2px); }

/* Quotes */
.quotes { display: grid; gap: var(--s4); }
@media (min-width: 800px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; padding: var(--s6); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.quote > .ph { font-size: 2.25rem; color: var(--accent); }
.quote blockquote { margin: var(--s4) 0 0; font-size: 1.5rem; line-height: 2rem; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.quote figcaption { margin-top: var(--s5); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }

/* Author */
.author-grid { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 900px) { .author-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s9); } }
.author-photo { border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); max-width: 420px; }
.author-copy .prose { margin-top: var(--s5); }
.author-links { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2); }
.author-links a {
  display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3);
  border-radius: 8px; border: 1px solid var(--line-2); text-decoration: none;
  font-size: 0.875rem; line-height: 1.25rem; color: var(--muted);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.author-links a:hover { color: var(--text); background: var(--surface-2); }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: var(--s5) 0; font-size: 1.125rem; line-height: 1.75rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { flex: none; color: var(--muted); transition: transform 500ms var(--ease); }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq summary:hover { color: #FFFFFF; }
.faq details p { padding: 0 0 var(--s5); color: var(--muted); max-width: 680px; }
.faq details p a { color: var(--text); }

/* Final CTA + form */
.final { border-top: 1px solid var(--line); }
.final-grid { display: grid; gap: var(--s8); align-items: start; }
@media (min-width: 900px) { .final-grid { grid-template-columns: 1fr 1fr; gap: var(--s9); } }
.final .h2 { font-size: 2.25rem; line-height: 2.5rem; }
@media (min-width: 768px) { .final .h2 { font-size: 3rem; line-height: 1.05; } }
.form { padding: var(--s6); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.field input, .field select {
  font: 400 1rem/1.5rem "Geist", sans-serif; color: var(--text);
  background: #000; border: 1px solid var(--line-2); border-radius: 12px; padding: var(--s3);
  transition: border-color 300ms var(--ease);
}
.field select { appearance: none; background-image: none; }
.field input:hover, .field select:hover { border-color: #4A4A4A; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; border-radius: 12px; }
.field.invalid input { border-color: #E5484D; }
.err { color: #FF8A8E; font-size: 0.875rem; line-height: 1.25rem; min-height: 0; }
.err:empty { display: none; }
.form-note { font-size: 0.75rem; line-height: 1rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: var(--s3); border-radius: 12px; font-size: 0.875rem; line-height: 1.25rem; }
.form-msg.ok { background: rgba(124,196,127,0.12); color: #B7E3B9; border: 1px solid rgba(124,196,127,0.3); }
.form-msg.bad { background: rgba(229,72,77,0.12); color: #FF8A8E; border: 1px solid rgba(229,72,77,0.3); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: var(--s6) 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.footer ul { display: flex; gap: var(--s5); }
.footer a { text-decoration: none; transition: color 300ms var(--ease); }
.footer a:hover { color: var(--text); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Simple pages */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; padding: 144px 0 var(--s10); }
.page .prose h2 { font-size: 1.25rem; line-height: 1.75rem; margin: var(--s6) 0 var(--s2); }
.page .prose { max-width: 680px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { transform: none; transition: opacity 400ms linear; }
  .mobile-menu li { transform: none; }
  .card:hover, .btn-primary:hover { transform: none; }
  .book { animation: none; }
  .blueprint .bp-line { stroke-dashoffset: 0; }
  .blueprint .bp-node { opacity: 0.8; }
}
