:root {
  --bg: #07080f;
  --panel: #10131e;
  --panel2: #171a29;
  --text: #f4f7ff;
  --muted: #aeb6c9;
  --cyan: #00d4ff;
  --purple: #9b30ff;
  --amber: #ffad2f;
  --green: #33f2a7;
  --danger: #ff6b6b;
  --line: rgba(255,255,255,.13);
  --shadow: 0 28px 90px rgba(0,0,0,.48);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(155,48,255,.22), transparent 30rem),
    radial-gradient(circle at 12% 12%, rgba(0,212,255,.18), transparent 30rem),
    linear-gradient(180deg, #07080f 0%, #0c0f18 54%, #07080f 100%);
  line-height: 1.6;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 4rem);
  background: rgba(7,8,15,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(0,212,255,.22)); }
nav { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .94rem; justify-content: flex-end; }
nav a { text-decoration: none; }
nav a:hover { color: var(--cyan); }
.section, .hero, .terminal-band {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 2rem);
}
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: .16em;
  font-size: .78rem;
  margin: 0 0 .8rem;
}
h1, h2, h3 { line-height: 1.04; margin: 0 0 1rem; }
h1 { font-size: clamp(2.65rem, 6.6vw, 5.8rem); letter-spacing: -.06em; max-width: 900px; }
h2 { font-size: clamp(2rem, 4.8vw, 4.1rem); letter-spacing: -.045em; }
h3 { font-size: 1.45rem; }
p { margin-top: 0; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); max-width: 780px; }
.meta-line, .pill-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.meta-line span, .pill-row span, .coming-grid span {
  border: 1px solid rgba(0,212,255,.25);
  color: #dffaff;
  background: rgba(0,212,255,.075);
  padding: .36rem .68rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 0; }
.cta-row.compact { margin-top: 1.4rem; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: .88rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
}
.btn.primary { background: linear-gradient(135deg, var(--amber), #ffe08a); color: #160900; box-shadow: 0 0 30px rgba(255,173,47,.28); }
.btn.secondary { border-color: rgba(0,212,255,.32); color: var(--text); background: rgba(0,212,255,.07); }
.btn.ghost { border-color: var(--line); background: rgba(255,255,255,.045); }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.hero-art { display: flex; justify-content: center; min-height: 560px; align-items: center; }
.cover-stack { position: relative; width: min(100%, 520px); height: 560px; }
.cover {
  position: absolute;
  width: min(72%, 345px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow), 0 0 56px rgba(0,212,255,.16);
  background: var(--panel);
}
.cover-one { left: 0; top: 38px; z-index: 2; transform: rotate(-4deg); }
.cover-two { right: 0; top: 0; z-index: 1; transform: rotate(5deg); filter: saturate(1.05); }
.terminal-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
  gap: 2rem;
  align-items: center;
  border-block: 1px solid var(--line);
  max-width: none;
  padding-inline: max(clamp(1rem, 4vw, 2rem), calc((100vw - 1220px) / 2 + 2rem));
  background: linear-gradient(90deg, rgba(0,212,255,.08), rgba(155,48,255,.1));
}
.terminal-card, .feature-card, .newsletter, .book-card, .coming-grid article {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.terminal-card { padding: 1.35rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.terminal-card p { margin: .45rem 0; color: var(--muted); overflow-wrap: anywhere; }
.terminal-card span { color: var(--green); }
.terminal-card strong { color: var(--text); }
.book-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.book-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  align-items: center;
}
.book-card img { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 60px rgba(0,0,0,.36); }
.book-kicker { color: var(--amber); text-transform: uppercase; font-weight: 950; letter-spacing: .14em; font-size: .78rem; margin-bottom: .55rem; }
.book-card p, .feature-card p, .newsletter p, .coming-grid p, footer { color: var(--muted); }
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.coming-grid article { padding: 1.2rem; box-shadow: none; }
.coming-grid a, .text-link { color: var(--cyan); font-weight: 950; text-decoration: none; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.feature-card { padding: clamp(1.35rem, 4vw, 2.5rem); }
.check-list { padding-left: 1.25rem; color: var(--muted); }
.check-list li { margin: .75rem 0; }
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: start;
}
.newsletter form { display: grid; gap: 1rem; }
label { color: var(--muted); font-weight: 850; }
label span { font-weight: 700; opacity: .72; }
input {
  width: 100%;
  margin-top: .35rem;
  padding: .95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.24);
  color: var(--text);
  font: inherit;
}
.form-status { min-height: 1.5rem; margin: 0; font-weight: 850; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--danger); }
footer { padding: 2rem; text-align: center; border-top: 1px solid var(--line); }
footer a { color: var(--cyan); text-decoration: none; }
@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero, .terminal-band, .book-card, .split-section, .newsletter { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 2rem; }
  .hero-art { order: -1; min-height: 430px; }
  .cover-stack { height: 430px; max-width: 410px; }
  .cover { width: min(70%, 275px); }
  .terminal-band { padding-inline: clamp(1rem, 4vw, 2rem); }
  .coming-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
  .brand img { width: 36px; height: 36px; }
  .hero-art { min-height: 350px; }
  .cover-stack { height: 350px; }
  .cover { width: 72%; }
  .cover-one { top: 56px; }
  .btn { width: 100%; }
}
.sample-page h1 { max-width: 900px; }
.chapter-card {
  max-width: 860px;
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  box-shadow: var(--shadow);
}
.chapter-card p { color: #dbe2f3; font-size: 1.05rem; }
