:root {
  --acid: #39ff14;
  --acid-deep: #1fca00;
  --ink: #050505;
  --ink-soft: #121212;
  --paper: #f5efdf;
  --paper-deep: #dfd5bb;
  --muted: rgba(0, 0, 0, 0.58);
  --muted-light: rgba(255, 255, 255, 0.72);
  --line-dark: rgba(255, 255, 255, 0.18);
  --line-light: rgba(0, 0, 0, 0.18);
  --shadow-hard: 8px 8px 0 #000;
  --shadow-float: 0 26px 80px rgba(0, 0, 0, 0.24);
  --font-display: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-glow: 0.025;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(180deg, #46ff25 0%, #39ff14 26%, #31ef0e 100%);
  color: var(--ink);
  font-family: var(--font-body);
}

::selection {
  background: #000;
  color: var(--acid);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.ascii-shell {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.12));
}

.ascii-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, var(--pointer-glow)), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%, transparent 72%, rgba(0, 0, 0, 0.08));
}

.ascii-field {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2rem, 1160px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid #000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
}

.publisher-mark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
}

.publisher-mark span {
  color: var(--acid);
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.6rem;
}

.site-links a,
.nav-cta,
.hero-note,
.section-label,
.detail-list dt,
.hero-meta dt,
.author-links a,
.footer-links,
.order-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-links a {
  color: var(--muted-light);
}

.site-links a:hover,
.footer-links a:hover {
  color: var(--acid);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.15rem;
  border: 2px solid transparent;
  background: var(--acid);
  color: #000;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 3.6rem 0 2rem;
}

.hero-grid,
.section-grid,
.faq-layout,
.order-panel,
.footer-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  align-items: center;
  gap: 2.75rem;
}

.book-panel {
  display: flex;
  justify-content: center;
}

.book-panel-frame {
  width: min(100%, 41rem);
  aspect-ratio: 2070 / 1590;
}

.book-cover {
  width: 100%;
  height: 100%;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.18);
  object-fit: contain;
  transition: transform 240ms ease, filter 240ms ease;
}

.book-panel:hover .book-cover {
  transform: translateY(-4px);
  filter: contrast(1.02);
}

.hero-copy {
  max-width: 48rem;
}

.kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-title,
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 0.5rem;
  font-size: clamp(4.5rem, 10vw, 8.6rem);
}

.glitch-text {
  position: relative;
  display: block;
  width: fit-content;
  isolation: isolate;
  text-shadow: 4px 0 0 rgba(0, 0, 0, 0.16);
  will-change: transform;
  animation-name: glitch-base;
  animation-duration: 4.8s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.95;
  will-change: transform, clip-path, opacity;
}

.glitch-text::before {
  color: #00fff9;
  transform: translate(3px, -1px);
  z-index: -1;
  animation-name: glitch-cyan;
  animation-duration: 4.1s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.glitch-text::after {
  color: #ff00c1;
  transform: translate(-3px, 1px);
  z-index: -2;
  animation-name: glitch-magenta;
  animation-duration: 3.7s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.glitch-line {
  line-height: 0.84;
}

.hero-tagline,
.author-lead {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
}

.hero-summary,
.section-body,
.faq-list p {
  margin: 1.1rem 0 0;
  font-size: 1rem;
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.95rem 1.6rem;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button-primary {
  background: #000;
  color: #fff;
}

.button-primary:hover {
  background: #fff;
  color: #000;
}

.button-secondary {
  background: transparent;
  color: #000;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.58);
}

.hero-meta {
  display: grid;
  gap: 0.85rem;
  margin: 1.6rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 2px solid rgba(0, 0, 0, 0.18);
}

.hero-meta div,
.detail-list div {
  display: grid;
  gap: 0.35rem;
}

.hero-meta dd,
.detail-list dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
}

.hero-note {
  margin: 1.2rem 0 0;
  color: rgba(0, 0, 0, 0.6);
  font-style: italic;
}

.section {
  padding: 1.5rem 0;
}

.section-dark {
  background: #050505;
  color: #fff;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.section-acid {
  position: relative;
  color: #000;
}

.section-paper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.3)),
    var(--paper);
  color: #000;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.section-label {
  margin: 0;
  color: var(--acid);
}

.section-label-dark,
.section-label-muted {
  color: rgba(0, 0, 0, 0.66);
}

.section-title {
  margin-top: 0.5rem;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.section-title-acid {
  color: var(--acid);
}

.section-title-dark {
  color: #000;
}

.section-body-dark {
  color: var(--muted);
}

.section-grid-book {
  align-items: start;
}

.book-facts,
.thesis-card,
.insight-card,
.order-card {
  border: 2px solid #000;
  box-shadow: var(--shadow-hard);
}

.book-facts {
  padding: 1.4rem;
  background: rgba(57, 255, 20, 0.08);
}

.book-facts h3,
.insight-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.detail-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
}

.detail-list dd {
  color: rgba(255, 255, 255, 0.78);
}

.fact-card-note {
  margin: 1.4rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.pull-quote {
  margin: 1.5rem 0 0;
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-left: 4px solid var(--acid);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--acid);
}

.learning-grid {
  align-items: center;
}

.learning-list {
  display: grid;
  gap: 0.95rem;
  margin: 1.45rem 0 0;
  padding: 0;
  list-style: none;
}

.learning-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
}

.learning-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.6rem;
  height: 2px;
  background: currentColor;
}

.learning-cards {
  display: grid;
  gap: 1rem;
}

.thesis-card,
.insight-card {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
}

.thesis-number {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--acid);
}

.thesis-title {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.thesis-text,
.insight-card p,
.footer-note,
.order-note {
  margin: 0.8rem 0 0;
  line-height: 1.8;
}

.author-grid {
  align-items: center;
}

.author-media {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.author-frame {
  position: absolute;
  inset: -1.1rem auto auto -1.1rem;
  width: 100%;
  height: 100%;
  border: 2px solid #000;
  background: var(--acid);
  z-index: 0;
}

.author-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  max-height: 39rem;
  aspect-ratio: 14 / 15;
  border: 4px solid #000;
  box-shadow: var(--shadow-float);
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1);
  transition:
    filter 220ms ease,
    transform 220ms ease;
}

.author-media:hover .author-image {
  filter: grayscale(0);
  transform: translateY(-4px);
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  margin-top: 1.5rem;
}

.author-links a {
  border-bottom: 2px solid #000;
  padding-bottom: 0.35rem;
}

.faq-layout {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  border: 2px solid rgba(57, 255, 20, 0.38);
  background: rgba(57, 255, 20, 0.06);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 3.6rem 1.2rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--acid);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  color: rgba(255, 255, 255, 0.82);
}

.section-order {
  padding-bottom: 3.5rem;
}

.order-panel {
  align-items: center;
  padding: 1.7rem;
  border: 2px solid #000;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18)),
    var(--paper);
  box-shadow: var(--shadow-hard);
}

.order-card {
  padding: 1.4rem;
  background: #000;
  color: #fff;
}

.order-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.3rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.order-meta {
  margin: 0.85rem 0 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.14em;
}

.order-note {
  color: rgba(255, 255, 255, 0.84);
}

.button-wide {
  width: 100%;
}

.site-footer {
  padding: 0 0 3rem;
}

.footer-layout {
  align-items: center;
  padding-top: 1.4rem;
  border-top: 2px solid rgba(0, 0, 0, 0.2);
}

.footer-mark {
  margin: 0;
  color: #000;
}

.footer-note {
  color: rgba(0, 0, 0, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  color: rgba(0, 0, 0, 0.7);
}

.reveal,
.reveal-delay {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes glitch-base {
  0%,
  82%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  83% {
    transform: translate3d(-2px, 0, 0);
  }

  84% {
    transform: translate3d(2px, 1px, 0);
  }

  85% {
    transform: translate3d(-3px, -1px, 0);
  }

  86% {
    transform: translate3d(1px, 0, 0);
  }
}

@keyframes glitch-cyan {
  0%,
  81%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0.92;
    transform: translate(3px, -1px);
  }

  82% {
    clip-path: inset(7% 0 68% 0);
    transform: translate(10px, -4px);
  }

  83% {
    clip-path: inset(48% 0 22% 0);
    transform: translate(-7px, 2px);
  }

  84% {
    clip-path: inset(79% 0 4% 0);
    transform: translate(6px, 3px);
  }

  85% {
    clip-path: inset(18% 0 52% 0);
    transform: translate(-4px, -2px);
  }
}

@keyframes glitch-magenta {
  0%,
  77%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0.9;
    transform: translate(-3px, 1px);
  }

  78% {
    clip-path: inset(12% 0 56% 0);
    transform: translate(-11px, 4px);
  }

  79% {
    clip-path: inset(56% 0 14% 0);
    transform: translate(8px, -2px);
  }

  80% {
    clip-path: inset(84% 0 1% 0);
    transform: translate(-6px, 2px);
  }

  81% {
    clip-path: inset(22% 0 44% 0);
    transform: translate(5px, -3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .glitch-text,
  .glitch-text::before,
  .glitch-text::after,
  .reveal {
    animation: none;
  }

  .book-cover,
  .author-image,
  .button,
  .nav-cta {
    transition: none;
  }
}

@media (max-width: 759px) {
  .container {
    width: min(100% - 1rem, 1160px);
  }

  .site-nav {
    justify-content: space-between;
    align-items: start;
  }

  .site-links {
    width: 100%;
    order: 3;
    justify-content: space-between;
    gap: 0.75rem 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid {
    gap: 1rem;
  }

  .hero-copy {
    order: 1;
  }

  .book-panel {
    order: 2;
    justify-content: flex-start;
  }

  .book-panel-frame {
    width: min(92vw, 22rem);
  }

  .hero-title {
    font-size: clamp(3.4rem, 14vw, 5.4rem);
  }

  .section-title {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }

  .hero-tagline,
  .author-lead {
    font-size: clamp(1.3rem, 7vw, 1.7rem);
  }

  .book-facts,
  .order-panel,
  .order-card,
  .thesis-card,
  .insight-card {
    box-shadow: 5px 5px 0 #000;
  }

  .button,
  .nav-cta {
    box-shadow: none;
  }

  .hero-summary,
  .section-body,
  .faq-list p {
    line-height: 1.8;
  }
}

@media (min-width: 760px) {
  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-layout {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 980px) {
  .hero-grid,
  .learning-grid,
  .author-grid,
  .faq-layout,
  .order-panel,
  .section-grid-book {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  }

  .hero-grid {
    grid-template-columns: minmax(520px, 0.95fr) minmax(0, 1fr);
  }

  .faq-layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  }
}
