:root {
  --ink: #0c1b2e;
  --ink-soft: #2e425b;
  --paper: #f5f2ea;
  --paper-bright: #fffdf8;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --deep: #0f2f5f;
  --deep-2: #1c4b87;
  --accent: #d1962a;
  --accent-soft: #f3d9a3;
  --edge: rgba(12, 27, 46, 0.14);
  --glow: rgba(15, 47, 95, 0.12);
  --shadow: 0 20px 45px rgba(10, 24, 43, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(85rem 44rem at -12% -8%, rgba(28, 75, 135, 0.24), transparent 58%),
    radial-gradient(54rem 36rem at 102% 14%, rgba(209, 150, 42, 0.2), transparent 63%),
    linear-gradient(165deg, #fdfaf4 0%, #f6f3ee 48%, #eef3fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -18% -10%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(46rem 32rem at 16% 18%, rgba(28, 75, 135, 0.14), transparent 68%),
    radial-gradient(40rem 28rem at 84% 20%, rgba(209, 150, 42, 0.14), transparent 70%);
  animation: ambience 26s ease-in-out infinite alternate;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(12, 27, 46, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 27, 46, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 88%);
  animation: grid-drift 38s linear infinite;
}

.hero,
main,
footer {
  width: min(74rem, 92vw);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  margin-top: clamp(1.2rem, 2.6vw, 2rem);
  padding: clamp(1.6rem, 4.2vw, 3.2rem);
  border: 1px solid var(--edge);
  border-radius: 1.6rem;
  background:
    linear-gradient(145deg, rgba(15, 47, 95, 0.95), rgba(28, 75, 135, 0.9)),
    linear-gradient(0deg, var(--panel), var(--panel));
  color: #f8fbff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  left: -16%;
  right: -16%;
  bottom: -58%;
  height: 86%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.18), transparent 72%);
  transform: translateY(0);
  animation: hero-aura 14s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: -5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 2rem rgba(255, 255, 255, 0.03);
  animation: halo-float 12s ease-in-out infinite;
}

.kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #d6e5ff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  line-height: 1.1;
}

h1 {
  margin-top: 0.7rem;
  max-width: 15.5ch;
  font-size: clamp(2rem, 5.4vw, 4rem);
  letter-spacing: -0.015em;
}

.hero-copy {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #e8f1ff;
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.2rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn.primary {
  color: #0d2548;
  background: linear-gradient(118deg, #ffd692, #f3b952 68%, #e7a43a);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.btn.ghost {
  color: #eef5ff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

main {
  margin-top: 0.9rem;
}

.section {
  margin-top: 1rem;
  border-radius: 1.3rem;
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: clamp(1.2rem, 2.6vw, 2rem);
  box-shadow: 0 8px 24px rgba(10, 24, 43, 0.07);
  transition: transform 240ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.section:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 27, 46, 0.2);
  box-shadow: 0 14px 28px rgba(10, 24, 43, 0.1);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -0.01em;
}

.thesis {
  background: linear-gradient(145deg, #122f5f, #1b467f);
  color: #eef4ff;
  border-color: rgba(255, 255, 255, 0.16);
}

.thesis-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thesis-grid article {
  padding: 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.thesis h3 {
  font-size: 1.18rem;
}

.thesis p {
  margin: 0.55rem 0 0;
  color: #d8e7ff;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

.stats-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  background: var(--panel-strong);
  border: 1px solid var(--edge);
  border-radius: 0.95rem;
  padding: 1rem;
  box-shadow: 0 8px 20px var(--glow);
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 47, 95, 0.28);
  box-shadow: 0 14px 24px rgba(10, 24, 43, 0.12);
}

.stat-card:hover .metric {
  color: var(--deep-2);
}

.metric {
  margin: 0;
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: 2rem;
  color: var(--deep);
  line-height: 1;
}

.label {
  margin: 0.3rem 0 0;
  font-weight: 600;
}

.detail {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.source,
.inline-source a,
.sources a {
  color: var(--deep);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.source {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

.split-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 1rem;
  border-radius: 0.95rem;
  border: 1px solid var(--edge);
  background: var(--paper-bright);
  transition: transform 220ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 47, 95, 0.25);
  box-shadow: 0 12px 24px rgba(10, 24, 43, 0.09);
}

.panel h3 {
  font-size: 1.25rem;
}

.panel ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.panel p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.inline-source {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.inline-source span {
  margin: 0 0.4rem;
  color: #7d8fa4;
}

.action ol {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.action li + li {
  margin-top: 0.5rem;
}

.cta-row-tight {
  margin-top: 1rem;
}

.faq-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

details {
  border: 1px solid var(--edge);
  border-radius: 0.85rem;
  background: var(--paper-bright);
  padding: 0.8rem 0.9rem;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

details[open] {
  border-color: rgba(15, 47, 95, 0.26);
  box-shadow: 0 8px 18px rgba(10, 24, 43, 0.08);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

footer {
  margin-top: 1rem;
  margin-bottom: 1.8rem;
  padding: 1.2rem;
  border: 1px solid var(--edge);
  border-radius: 1.2rem;
  background: var(--panel);
}

.sources h2 {
  font-size: 1.1rem;
}

.sources ul {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  columns: 2;
  column-gap: 1.2rem;
}

.sources li {
  margin-bottom: 0.3rem;
}

.domain-note {
  margin: 0.9rem 0 0;
  color: #5e6f84;
  font-size: 0.83rem;
}

.disclaimer {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.contact {
  margin: 0.5rem 0 0;
}

.contact a {
  color: var(--deep);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 720ms ease-out var(--delay, 0ms) forwards;
}

@keyframes ambience {
  from {
    transform: translate3d(-1.2%, -0.8%, 0) scale(1);
  }

  to {
    transform: translate3d(1.2%, 1%, 0) scale(1.03);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 56px 28px, -56px -28px;
  }
}

@keyframes hero-aura {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.32;
  }

  50% {
    transform: translateY(-8px);
    opacity: 0.5;
  }
}

@keyframes halo-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(8px) scale(1.035);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thesis-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sources ul {
    columns: 1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
