@font-face {
  font-family: "Aspekta";
  src: url("/assets/fonts/Aspekta-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aspekta";
  src: url("/assets/fonts/Aspekta-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg: #040814;
  --page-bg-deep: #02040b;
  --surface: rgba(7, 13, 29, 0.78);
  --surface-strong: rgba(11, 19, 40, 0.92);
  --surface-soft: rgba(130, 155, 255, 0.08);
  --text: #eef3ff;
  --muted: #afbddc;
  --muted-soft: #7d8aa8;
  --line: rgba(172, 190, 255, 0.2);
  --line-strong: rgba(199, 208, 255, 0.35);
  --accent: #cbb6ff;
  --accent-strong: #8fb2ff;
  --accent-glow: rgba(175, 143, 255, 0.28);
  --button-bg: linear-gradient(135deg, #c6b4ff 0%, #82b6ff 100%);
  --button-text: #06111f;
  --error: #ff9e97;
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 32px 80px rgba(0, 0, 0, 0.5);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --page-width: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top, #0e1f4b 0%, var(--page-bg) 48%, var(--page-bg-deep) 100%);
  font-family: "Aspekta", sans-serif;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

strong {
  color: var(--text);
}

.page-home {
  background: var(--page-bg-deep);
}

.site-canvas {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.site-canvas__bg,
.site-canvas__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-canvas__bg {
  background:
    linear-gradient(180deg, rgba(2, 4, 11, 0.12) 0%, rgba(2, 4, 11, 0.84) 60%, rgba(2, 4, 11, 0.98) 100%),
    url("/assets/background-1600.png") center top / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(2, 4, 11, 0.12) 0%, rgba(2, 4, 11, 0.84) 60%, rgba(2, 4, 11, 0.98) 100%),
    image-set(
      url("/assets/background-1600.avif") type("image/avif") 1x,
      url("/assets/background-2400.avif") type("image/avif") 2x,
      url("/assets/background-1600.webp") type("image/webp") 1x,
      url("/assets/background-2400.webp") type("image/webp") 2x,
      url("/assets/background-1600.png") type("image/png") 1x
    ) center top / cover no-repeat;
  opacity: 0.9;
  z-index: -3;
}

.site-canvas__glow--top {
  background: radial-gradient(circle at 25% 15%, rgba(182, 130, 255, 0.24), transparent 34%);
  z-index: -2;
}

.site-canvas__glow--bottom {
  background: radial-gradient(circle at 75% 55%, rgba(88, 143, 255, 0.18), transparent 32%);
  z-index: -2;
}

.landing-layout,
.page-shell,
.thank-you-layout {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
}

.site-nav {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
  padding: 1.1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.launch-badge,
.button-primary,
.wordmark,
.section-label,
.section-nav a,
.hero-kicker,
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.6rem;
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 10, 23, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.wordmark-text {
  white-space: nowrap;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.section-nav a {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.section-nav a:hover,
.section-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.thank-you-link:hover,
.thank-you-link:focus-visible {
  color: var(--text);
}

.landing-layout {
  padding: 1.4rem 0 4rem;
}

.hero-section {
  min-height: auto;
  padding: clamp(1.5rem, 3.5vw, 3.1rem) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  justify-items: center;
}

.hero-copy {
  width: 100%;
  max-width: none;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  background: rgba(12, 22, 46, 0.55);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-kicker {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-title {
  font-family: "Orbitron", sans-serif;
  margin: 1.45rem 0 0;
  padding-bottom: 0.525rem;
  width: 100%;
  max-width: none;
  font-size: clamp(3.8rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.5;
  font-weight: 700;
  text-align: center;
  text-shadow:
    0 0 12px rgba(203, 182, 255, 0.34),
    0 0 32px rgba(143, 178, 255, 0.18),
    0 0 56px rgba(143, 178, 255, 0.12);
  text-wrap: balance;
}

.home-lede {
  margin: 1.55rem 0 0;
  width: 100%;
  max-width: none;
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.hero-actions {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 2.2rem;
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}

.form-shell,
.book-panel,
.cta-panel,
.message-card,
.thank-you-content {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 15, 33, 0.84) 0%, rgba(5, 10, 23, 0.9) 100%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.form-shell {
  width: min(100%, 38rem);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
}

.signup-label {
  color: var(--accent);
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.footer-meta {
  color: var(--muted-soft);
}

.waitlist-form {
  position: relative;
  margin-top: 1rem;
  padding-bottom: 1.55rem;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
}

.field {
  position: relative;
}

.field input {
  width: 100%;
  min-height: 3.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(237, 241, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder {
  color: #8c99b6;
}

.field input:focus-visible {
  border-color: rgba(180, 194, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(143, 178, 255, 0.12);
}

.field.has-error input {
  border-color: var(--error);
}

.field-error,
.form-status {
  margin: 0;
  font-size: 0.82rem;
}

.field-error {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  color: var(--error);
}

.form-status {
  position: absolute;
  top: calc(100% + 0.58rem);
  left: 0;
  color: var(--muted);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.85rem;
  padding: 0.95rem 1.35rem;
  border: 0;
  border-radius: 14px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  box-shadow: 0 18px 30px rgba(143, 178, 255, 0.22);
}

.button-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.button-primary:focus-visible,
.text-link:focus-visible,
.thank-you-link:focus-visible,
.section-nav a:focus-visible {
  outline: 3px solid rgba(143, 178, 255, 0.24);
  outline-offset: 3px;
  border-radius: 8px;
}

.text-link,
.thank-you-link {
  color: var(--accent);
  font-size: 0.94rem;
  text-decoration: underline;
  text-decoration-color: rgba(203, 182, 255, 0.45);
  text-underline-offset: 0.18em;
}

.poster-frame picture,
.book-panel__cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.poster-frame img,
.book-panel__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-section {
  padding: 3.6rem 0 0;
  scroll-margin-top: 5rem;
}

.section-label {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.3vw, 3.225rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.thank-you-title,
.message-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.cta-copy,
.book-highlights p,
.lede,
.footer-meta,
.thank-you-copy {
  color: var(--muted);
}

.cta-copy,
.book-highlights p {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

.book-panel {
  margin-top: 1.7rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(20rem, 26vw, 30rem);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.book-summary {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.58;
}

.book-panel__copy em,
.book-panel__copy strong {
  color: var(--text);
}

.book-highlights {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.book-highlights p {
  margin-top: 0;
}

.book-panel__cover {
  margin: 0;
  align-self: start;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4419 / 6250;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.cta-panel {
  margin-top: 1.7rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--radius-xl);
}

.cta-copy {
  margin: 1rem 0 0;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-link-row {
  margin: 1.5rem 0 0;
}

.home-footer {
  padding: 4rem 0 2rem;
  display: grid;
  gap: 0.25rem;
}

.footer-meta {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  padding: 1.25rem 0 3rem;
}

.page-message,
.page-thank-you {
  background:
    linear-gradient(180deg, rgba(2, 4, 11, 0.3) 0%, rgba(2, 4, 11, 0.92) 100%),
    url("/assets/background-1600.png") center top / cover no-repeat,
    var(--page-bg-deep);
  background:
    linear-gradient(180deg, rgba(2, 4, 11, 0.3) 0%, rgba(2, 4, 11, 0.92) 100%),
    image-set(
      url("/assets/background-1600.avif") type("image/avif") 1x,
      url("/assets/background-2400.avif") type("image/avif") 2x,
      url("/assets/background-1600.webp") type("image/webp") 1x,
      url("/assets/background-2400.webp") type("image/webp") 2x,
      url("/assets/background-1600.png") type("image/png") 1x
    ) center top / cover no-repeat,
    var(--page-bg-deep);
}

.site-header {
  padding: 0.3rem 0 1.5rem;
}

.centered-main,
.thank-you-layout {
  min-height: calc(100vh - 4rem);
  display: grid;
  place-items: center;
}

.message-card,
.thank-you-content {
  width: min(100%, 44rem);
  padding: clamp(1.7rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  margin: 1.2rem auto 0;
  max-width: 32rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

.message-actions,
.thank-you-link-row {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}

.thank-you-layout {
  padding: clamp(1.4rem, 4vw, 3rem) 0;
}

.thank-you-content {
  justify-items: center;
}

.thank-you-animation {
  width: clamp(6.5rem, 12vw, 8.5rem);
  margin: 0 auto 1.2rem;
}

.thank-you-animation dotlottie-player {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.thank-you-title {
  color: var(--text);
}

.thank-you-copy {
  margin: 1.3rem auto 0;
  max-width: 30rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  text-wrap: balance;
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .js .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button-primary,
  .section-nav a,
  .text-link,
  .thank-you-link,
  .field input {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .book-panel {
    grid-template-columns: 1fr;
  }

  .book-summary {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-nav {
    padding-top: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .section-nav {
    justify-content: flex-start;
    gap: 0.7rem 1rem;
  }

  .landing-layout,
  .page-shell,
  .thank-you-layout {
    width: min(calc(100% - 1.25rem), var(--page-width));
  }

  .hero-section {
    min-height: auto;
    padding-top: 1.15rem;
    gap: 1.6rem;
  }

  .home-title {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .home-lede,
  .book-summary,
  .lede,
  .thank-you-copy {
    font-size: 1.08rem;
  }

  .form-shell,
  .book-panel,
  .cta-panel,
  .message-card,
  .thank-you-content {
    border-radius: 22px;
  }

  .signup-row {
    grid-template-columns: 1fr;
  }

  .button-primary {
    width: 100%;
  }

  .content-section {
    padding-top: 3rem;
  }

  .cta-panel h2 {
    font-size: clamp(1.5rem, 6.75vw, 2.25rem);
  }

  .thank-you-title,
  .message-card h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}
