:root {
  --bg-top: #06101b;
  --bg-mid: #0d1725;
  --bg-bottom: #e4ebf3;
  --paper: rgba(245, 249, 253, 0.93);
  --paper-strong: #f7fbff;
  --ink: #0f1b2b;
  --ink-soft: #31485f;
  --ink-invert: #eef5ff;
  --accent: #8bc4ff;
  --accent-strong: #d9ecff;
  --line: rgba(33, 58, 88, 0.14);
  --line-strong: rgba(145, 193, 245, 0.24);
  --hero-line: rgba(152, 197, 255, 0.12);
  --shadow-soft: 0 18px 42px rgba(7, 17, 31, 0.08);
  --shadow-strong: 0 30px 60px rgba(4, 10, 20, 0.32);
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(126, 180, 242, 0.12), transparent 20%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 24%, #101a29 38%, var(--bg-bottom) 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(140, 185, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 185, 232, 0.08) 1px, transparent 1px);
  background-size: 100% 22px, 22px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 72%);
}

.page-shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.84fr);
  gap: 46px;
  align-items: center;
  min-height: 92vh;
  padding: 60px 56px;
  border: 1px solid var(--hero-line);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 15, 27, 0.94), rgba(10, 22, 37, 0.86)),
    linear-gradient(180deg, rgba(122, 171, 226, 0.08), transparent);
  box-shadow: var(--shadow-strong);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 23, 0.94) 0%, rgba(7, 18, 31, 0.84) 42%, rgba(8, 20, 34, 0.46) 72%),
    url("./assets/cover_bg.png") center/cover no-repeat;
  opacity: 0.86;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 46%, rgba(156, 211, 255, 0.2), transparent 10%),
    linear-gradient(180deg, transparent 0%, rgba(9, 19, 31, 0.36) 100%);
  pointer-events: none;
}

.hero-copy,
.hero-cover-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(173, 216, 255, 0.16);
  border-radius: 999px;
  background: rgba(135, 189, 245, 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.94;
}

h1 {
  max-width: 760px;
  color: var(--ink-invert);
  font-size: clamp(3.65rem, 7vw, 6.3rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: rgba(233, 243, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.68;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(217, 236, 255, 0.72);
  font-size: 0.98rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

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

.button-primary {
  border-color: rgba(164, 209, 255, 0.45);
  background: linear-gradient(180deg, #e1f2ff, #b9dcff 72%);
  box-shadow: 0 18px 38px rgba(75, 141, 208, 0.18);
  color: #081320;
}

.button-secondary {
  border-color: rgba(170, 211, 255, 0.18);
  background: rgba(10, 22, 38, 0.34);
  color: var(--ink-invert);
}

.button-large {
  min-width: 240px;
  min-height: 58px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(233, 243, 255, 0.76);
  font-size: 0.92rem;
}

.hero-meta li {
  padding: 8px 12px;
  border: 1px solid rgba(173, 216, 255, 0.12);
  border-radius: 999px;
  background: rgba(9, 20, 34, 0.4);
  backdrop-filter: blur(10px);
}

.hero-cover-card {
  justify-self: end;
  width: min(100%, 420px);
  padding: 16px;
  border: 1px solid rgba(164, 209, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 18, 29, 0.78), rgba(8, 15, 26, 0.64));
  box-shadow: 0 30px 60px rgba(3, 8, 16, 0.36);
}

.hero-cover-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(164, 209, 255, 0.12);
  border-radius: 14px;
  pointer-events: none;
}

.hero-cover-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -36px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 196, 255, 0), rgba(139, 196, 255, 0.42));
}

.hero-cover-card img {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.36);
}

main {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 249, 255, 0.9)),
    var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(120, 180, 240, 0.88), rgba(120, 180, 240, 0));
}

.panel-statement {
  padding: 34px 38px;
  border-color: rgba(120, 180, 240, 0.22);
  background:
    linear-gradient(180deg, rgba(240, 248, 255, 0.88), rgba(248, 251, 255, 0.96)),
    var(--paper-strong);
}

.statement {
  max-width: 920px;
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.52;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
}

.feature-list li + li {
  margin-top: 10px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.question-card {
  padding: 22px;
  border: 1px solid rgba(36, 64, 96, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 246, 253, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.question-card p {
  margin: 10px 0 0;
}

.question-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  color: #5f95cc;
}

.quote-panel {
  display: flex;
  align-items: center;
  color: var(--ink-invert);
  border-color: rgba(133, 186, 241, 0.18);
  background:
    linear-gradient(160deg, rgba(8, 18, 31, 0.95), rgba(13, 31, 52, 0.93)),
    url("./assets/cover_bg.png") center/cover no-repeat;
  box-shadow: 0 24px 44px rgba(6, 12, 22, 0.24);
}

.quote-panel::after {
  background: linear-gradient(90deg, rgba(133, 186, 241, 0.74), rgba(133, 186, 241, 0));
}

.quote-panel blockquote {
  max-width: 520px;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.06;
}

.panel-download {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding: 34px 36px;
  border-color: rgba(22, 41, 67, 0.08);
  background:
    radial-gradient(circle at right center, rgba(132, 186, 245, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(12, 24, 39, 0.97), rgba(10, 20, 34, 0.93));
  box-shadow: 0 22px 48px rgba(8, 14, 24, 0.24);
}

.panel-download::after {
  background: linear-gradient(90deg, rgba(133, 186, 241, 0.74), rgba(133, 186, 241, 0));
}

.panel-download h2,
.panel-download p,
.panel-download a {
  color: var(--ink-invert);
}

.subpage-shell {
  max-width: 980px;
}

.subpage-header {
  margin-bottom: 24px;
  padding: 34px 34px 32px;
  border-color: rgba(133, 186, 241, 0.18);
  background:
    linear-gradient(160deg, rgba(8, 18, 31, 0.95), rgba(13, 31, 52, 0.93)),
    url("./assets/cover_bg.png") center/cover no-repeat;
  box-shadow: 0 24px 44px rgba(6, 12, 22, 0.24);
}

.subpage-header::after {
  background: linear-gradient(90deg, rgba(133, 186, 241, 0.74), rgba(133, 186, 241, 0));
}

.subpage-header h1,
.subpage-header h2,
.subpage-header p,
.subpage-header a {
  color: var(--ink-invert);
}

.subpage-lede {
  max-width: 760px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(232, 241, 252, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--accent-strong);
}

.prose-panel p + p {
  margin-top: 1em;
}

.chapter-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-list li + li {
  margin-top: 12px;
}

.chapter-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 64, 96, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  text-decoration: none;
}

.chapter-list a:hover {
  border-color: rgba(95, 149, 204, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.panel-download p {
  max-width: 780px;
  margin: 12px 0 0;
  color: rgba(232, 241, 252, 0.78);
}

.panel-download p a {
  color: var(--accent-strong);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.download-meta li {
  padding: 7px 11px;
  border: 1px solid rgba(161, 205, 247, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 241, 252, 0.88);
  font-size: 0.9rem;
}

.download-note {
  margin-top: 14px;
  color: rgba(232, 241, 252, 0.66);
  font-size: 0.94rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 6px 2px 0;
  color: rgba(14, 26, 41, 0.6);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .hero,
  .grid-two,
  .question-grid,
  .panel-download {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 38px 24px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 14, 24, 0.92), rgba(7, 18, 31, 0.76)),
      url("./assets/cover_bg.png") center/cover no-repeat;
  }

  .hero-cover-card {
    justify-self: center;
    max-width: 620px;
    width: 100%;
  }

  .hero-cover-card::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 16px 14px 44px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .hero {
    gap: 26px;
    padding: 24px 18px;
  }

  .panel,
  .panel-statement,
  .panel-download {
    padding: 22px 18px;
  }

  .lede,
  .statement {
    font-size: 1.02rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .hero-note {
    font-size: 0.94rem;
  }

  .button,
  .button-large {
    width: 100%;
  }

  .download-actions {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
