@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=EB+Garamond:wght@400;500&family=Space+Mono&display=swap');

:root {
  --bg: #04070d;
  --panel: rgba(16, 28, 52, .6);
  --panel-strong: rgba(24, 40, 74, .72);
  --text: #f4f7ff;
  --muted: rgba(226, 234, 250, .72);
  --line: rgba(156, 196, 255, .18);
  --gold: #e3d64f;
  --gold-light: #fff59a;
  --gold-soft: rgba(227, 214, 79, .28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(circle at top, rgba(82, 132, 214, .22) 0%, rgba(6, 12, 24, 0) 34%),
    radial-gradient(circle at 85% 12%, rgba(121, 181, 255, .12) 0%, rgba(6, 12, 24, 0) 24%),
    linear-gradient(180deg, #04070d 0%, #02040a 100%);
  color: var(--text);
  font-family: 'EB Garamond', serif;
}

a { color: inherit; }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background:
    radial-gradient(circle at top, rgba(121, 181, 255, .12), transparent 26%),
    linear-gradient(180deg, rgba(4, 7, 13, .92), rgba(2, 4, 10, .97));
  display: grid;
  place-items: center;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.page-loader-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 1;
  transform: translateY(0);
  background: linear-gradient(180deg, rgba(4, 7, 13, .9), rgba(4, 7, 13, .38));
}

.page-loader-panel.top { top: 0; }
.page-loader-panel.bottom { bottom: 0; }

.page-loader-core {
  position: relative;
  z-index: 3;
  width: min(92vw, 420px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.page-loader-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent);
  box-shadow: 0 0 18px rgba(109, 228, 255, .18);
  opacity: 0;
  animation-duration: .32s;
  animation-delay: .04s;
  animation-timing-function: cubic-bezier(.77,0,.175,1);
  animation-fill-mode: forwards;
}

.page-loader-line.left {
  transform: scaleX(0);
  transform-origin: left;
  animation-name: plLineLeft;
}

.page-loader-line.right {
  transform: scaleX(0);
  transform-origin: right;
  animation-name: plLineRight;
}

.page-loader-orbit {
  position: relative;
  width: 52px;
  height: 52px;
}

.page-loader-arc {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.page-loader-arc.left { left: 0; }
.page-loader-arc.right { right: 0; }

.page-loader-arc::before {
  content: '';
  position: absolute;
  top: 0;
  width: 200%;
  height: 100%;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(121, 181, 255, .08);
}

.page-loader-arc.left::before {
  left: 0;
  clip-path: inset(0 50% 0 0);
  transform: translateX(-100%);
  animation: plArcLeft .62s .14s cubic-bezier(.77,0,.175,1) forwards;
}

.page-loader-arc.right::before {
  right: 0;
  clip-path: inset(0 0 0 50%);
  transform: translateX(100%);
  animation: plArcRight .62s .14s cubic-bezier(.77,0,.175,1) forwards;
}

.page-loader-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow:
    0 0 18px rgba(227, 214, 79, .08),
    inset 0 0 18px rgba(121, 181, 255, .06);
  opacity: 0;
  animation: plRing .12s .34s linear forwards;
}

.page-loader-g {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(110deg, #b8b11f 0%, #e8de52 34%, #fff7a8 46%, #d9cf45 62%, #c4ba2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  text-shadow: 0 0 18px rgba(232,201,122,.15);
  animation: plG .18s .42s linear forwards;
}

.page-loader.exit { pointer-events: none; }
.page-loader.exit .page-loader-core { animation: plOut .16s ease forwards; }
.page-loader.exit .page-loader-panel.top { animation: plTop .42s .02s cubic-bezier(.77,0,.175,1) forwards; }
.page-loader.exit .page-loader-panel.bottom { animation: plBottom .42s .02s cubic-bezier(.77,0,.175,1) forwards; }

@keyframes plLineLeft { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes plLineRight { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes plArcLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes plArcRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes plRing { from { opacity: 0; } to { opacity: 1; } }
@keyframes plG { from { opacity: 0; } to { opacity: 1; } }
@keyframes plOut { to { opacity: 0; transform: scale(.96); } }
@keyframes plTop { to { transform: translateY(-102%); } }
@keyframes plBottom { to { transform: translateY(102%); } }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 28px;
}

.brand {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  font-size: 1.1rem;
  white-space: nowrap;
}

.nav-groups {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.cta {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 11px 15px;
  background: linear-gradient(180deg, rgba(28, 49, 92, .72), rgba(12, 20, 38, .82));
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .88rem;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 10px 24px rgba(6, 14, 30, .14);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.nav-links a:hover,
.cta:hover {
  background: linear-gradient(180deg, rgba(42, 72, 130, .78), rgba(16, 28, 52, .86));
  border-color: rgba(190, 220, 255, .3);
  transform: translateY(-1px);
}

.nav-secondary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-secondary a,
.nav-more summary {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.nav-more {
  position: relative;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 20, 38, .96), rgba(8, 14, 28, .96));
  padding: 10px;
  display: grid;
  gap: 8px;
}

.nav-more-panel a {
  display: block;
  border: 1px solid rgba(240,235,225,.08);
  padding: 10px 12px;
}

.nav-toggle,
.mobile-nav-overlay {
  display: none;
}

.nav-toggle {
  margin-left: auto;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(8, 12, 22, .72);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 0 18px rgba(109, 228, 255, .08);
  color: #fff;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform .24s ease, opacity .24s ease;
}

.nav-toggle-lines {
  position: relative;
  margin: 0 auto;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -7px; }
.nav-toggle-lines::after { top: 7px; }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 4200;
  padding: 18px;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-dialog {
  width: min(100%, 420px);
  margin-left: auto;
  min-height: calc(100dvh - 36px);
  padding: 22px 18px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 24, 46, .94), rgba(8, 14, 28, .9));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 0 32px rgba(109, 228, 255, .08),
    0 32px 80px rgba(0, 0, 0, .42);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mobile-nav-title {
  font-family: 'Space Mono', monospace;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.74);
}

.mobile-nav-close {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .08em;
  cursor: pointer;
}

.mobile-nav-links {
  display: grid;
  gap: 10px;
}

.mobile-nav-link {
  display: block;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 49, 92, .5), rgba(12, 20, 38, .68));
  color: #fff;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 14px 28px rgba(0, 0, 0, .16);
}

.mobile-nav-link.is-featured {
  border-color: rgba(156, 196, 255, .32);
  background:
    radial-gradient(circle at 12% 50%, rgba(121, 181, 255, .16), transparent 24%),
    linear-gradient(135deg, rgba(38, 64, 118, .78), rgba(19, 32, 60, .82) 58%, rgba(227, 214, 79, .1));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 16px 30px rgba(0, 0, 0, .22);
}

body.mobile-nav-open {
  overflow: hidden;
}

.hero {
  padding: 42px 0 24px;
  display: grid;
  gap: 18px;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: .92;
  letter-spacing: .06em;
}

.lead {
  max-width: 860px;
  font-size: 1.18rem;
  color: var(--muted);
}

.section {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(121, 181, 255, .08), transparent 24%),
    var(--panel);
  box-shadow: 0 18px 44px rgba(5, 12, 26, .14);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.section-copy {
  color: var(--muted);
  max-width: 840px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

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

.card,
.score-pill,
.timeline-step,
.resource-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(121, 181, 255, .08), transparent 28%),
    linear-gradient(180deg, rgba(25, 42, 78, .5), rgba(11, 18, 34, .7));
  padding: 22px;
  box-shadow: 0 18px 36px rgba(5, 12, 26, .14);
}

.neon-card {
  isolation: isolate;
}

.neon-card > * {
  position: relative;
  z-index: 2;
}

.neon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.07), transparent 36%, transparent 64%, rgba(121, 181, 255, .06));
  opacity: 1;
  z-index: 0;
}

.neon-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(18, 31, 58, .9), rgba(9, 15, 28, .92));
  z-index: 1;
}

.card h2,
.score-pill strong,
.timeline-step strong,
.resource-item strong,
.mini-title {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .08em;
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.card p,
.card li,
.score-pill span,
.timeline-step p,
.resource-item p,
.meta,
.section ul li {
  color: var(--muted);
}

.card ul,
.section ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: rgba(18, 31, 58, .38);
  overflow: hidden;
}

.matrix th,
.matrix td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  transition: background .28s ease, color .28s ease, border-color .28s ease, transform .28s ease;
}

.matrix th:last-child,
.matrix td:last-child {
  border-right: none;
}

.matrix th {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .08em;
  font-size: .95rem;
}

.matrix td {
  color: var(--muted);
}

.matrix tbody tr {
  position: relative;
}

.matrix tbody tr:hover td {
  color: var(--text);
  border-bottom-color: rgba(255,255,255,.18);
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(121, 181, 255, .12) 48%, rgba(255,255,255,0) 100%),
    linear-gradient(135deg, rgba(40, 68, 124, .22), rgba(194, 157, 81, .08));
  background-size: 220% 100%, 100% 100%;
  animation: matrix-row-sweep 1.15s ease forwards;
}

.matrix tbody tr:hover td:first-child {
  color: var(--gold-light);
}

@keyframes matrix-row-sweep {
  from {
    background-position: 120% 0, 0 0;
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
  to {
    background-position: -40% 0, 0 0;
    transform: translateY(0);
  }
}

.score-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  background: rgba(227, 214, 79, .05);
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.timeline-step {
  border-left: 2px solid var(--gold);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(240,235,225,.24);
}

.resource-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .matrix,
  .matrix thead,
  .matrix tbody,
  .matrix tr,
  .matrix th,
  .matrix td {
    display: block;
  }

  .matrix thead {
    display: none;
  }

  .matrix td {
    border-right: none;
  }

  .matrix td::before {
    content: attr(data-label);
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--text);
    letter-spacing: .08em;
    margin-bottom: 6px;
  }
}

@media (max-width: 780px) {
  .wrap { padding: 20px; }
  nav {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .brand {
    font-size: 1.18rem;
    letter-spacing: .16em;
  }
  .nav-groups { display: none; }
  .nav-toggle,
  .mobile-nav-overlay { display: block; }
  .hero { padding: 20px 0 12px; }
  h1 { font-size: clamp(2.5rem, 16vw, 4.2rem); }
  .lead { font-size: 1.02rem; }
  .section { padding: 18px; }
  .card,
  .score-pill,
  .timeline-step,
  .resource-item {
    padding: 18px;
  }
  .nav-more-panel { left: 0; right: auto; }
}
