:root {
  --bg: #06111d;
  --bg-soft: #0a1627;
  --panel: rgba(12, 22, 40, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(160, 212, 255, 0.14);
  --line-strong: rgba(160, 212, 255, 0.24);
  --text: #edf6ff;
  --muted: #abc1e2;
  --blue: #49c6ff;
  --cyan: #7cf2ff;
  --green: #49dca9;
  --purple: #a58fff;
  --glow: 0 26px 90px rgba(2, 7, 19, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 12%, rgba(73, 198, 255, 0.18), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(73, 220, 169, 0.14), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(165, 143, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #07111d 0%, #06111d 48%, #091526 100%);
  min-height: 100vh;
}

body.nav-scrolled .site-nav {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(6, 17, 29, 0.84);
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.page-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: -10rem;
  left: -8rem;
  background: var(--blue);
}

.page-glow-right {
  right: -8rem;
  bottom: 10rem;
  background: var(--purple);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--purple));
  box-shadow: 0 0 18px rgba(73, 198, 255, 0.45);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 17, 29, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--green) 60%, var(--purple));
  box-shadow: 0 0 36px rgba(73, 198, 255, 0.32);
}

.brand-copy {
  letter-spacing: -0.03em;
}

.brand-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

main section {
  padding: 42px 0 26px;
}

.hero {
  padding: 74px 0 40px;
}

.hero-grid,
.system-layout,
.idea-layout,
.grid-2,
.cross-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  align-items: stretch;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.accent-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: #d7fbff;
  border: 1px solid rgba(124, 242, 255, 0.24);
  background: rgba(73, 198, 255, 0.08);
}

h1 {
  margin-top: 20px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  max-width: 860px;
}

.gradient-line {
  background: linear-gradient(90deg, #ffffff 0%, var(--blue) 42%, var(--green) 74%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead,
.section-head p,
.panel p,
.impact-card p,
.definition-card p,
.resource p,
.mini-card p,
.footer-card,
.closing-panel p {
  color: var(--muted);
}

.hero-lead {
  max-width: 820px;
  margin: 24px 0 30px;
  font-size: clamp(1.06rem, 1.8vw, 1.36rem);
}

.lab-sublead {
  max-width: 720px;
  margin-top: -10px;
  font-size: 1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-primary {
  color: #04101d;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 52px rgba(73, 220, 169, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats,
.problem-grid,
.impact-grid,
.resource-grid,
.method-grid {
  display: grid;
  gap: 16px;
}

.hero-stats,
.problem-grid,
.impact-grid,
.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat,
.panel,
.definition-card,
.impact-card,
.resource,
.mini-card,
.pipeline-step,
.footer-card,
.closing-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border-radius: var(--radius-lg);
  box-shadow: var(--glow);
}

.hero-stat,
.panel,
.definition-card,
.impact-card,
.resource,
.pipeline-step,
.closing-panel,
.footer-card {
  padding: 24px;
}

.hero-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.visual-dossier {
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(9, 17, 31, 0.95);
  box-shadow: var(--glow);
}

.dossier-screen {
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dossier-screen img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mini-card {
  padding: 16px;
}

.mini-card h3,
.panel h3,
.definition-card h3,
.impact-card h3,
.resource h3,
.pipeline-step h3,
.ecosystem-node h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.section-head {
  margin-bottom: 24px;
}

.kicker {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  max-width: 880px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-head p {
  max-width: 840px;
  margin: 14px 0 0;
  font-size: 1.05rem;
}

.accent-blue {
  color: #daf8ff;
  background: rgba(73, 198, 255, 0.14);
}

.accent-green {
  color: #defef0;
  background: rgba(73, 220, 169, 0.14);
}

.accent-purple {
  color: #eee8ff;
  background: rgba(165, 143, 255, 0.14);
}

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

.definition-card ul,
.panel ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.system-layout {
  grid-template-columns: 0.86fr 1.14fr;
  align-items: start;
}

.diagram-frame {
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(9, 16, 29, 0.94);
  box-shadow: var(--glow);
}

.engine-grid {
  display: grid;
  grid-template-columns: 1.18fr repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.engine-center {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(73, 198, 255, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--glow);
}

.engine-ring {
  display: grid;
  place-items: center;
  width: min(100%, 270px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    conic-gradient(from 90deg, rgba(73, 198, 255, 0.34), rgba(73, 220, 169, 0.24), rgba(165, 143, 255, 0.34), rgba(73, 198, 255, 0.34));
  padding: 14px;
}

.engine-core {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  text-align: center;
  background: rgba(8, 15, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.engine-core strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.engine-core span {
  color: var(--muted);
  max-width: 170px;
}

.pipeline-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 12px;
  color: #04101c;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 900;
}

.cross-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--glow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
}

th,
td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  background: rgba(73, 198, 255, 0.11);
  color: #e3faff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

.ecosystem-list {
  display: grid;
  gap: 14px;
}

.ecosystem-node {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--glow);
}

.node-badge {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 10px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(73, 198, 255, 0.2), rgba(73, 220, 169, 0.14));
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.resource .btn {
  width: 100%;
}

.closing-panel {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(73, 198, 255, 0.14), rgba(73, 220, 169, 0.1), rgba(165, 143, 255, 0.12)),
    rgba(255, 255, 255, 0.03);
}

.footer {
  padding: 40px 0 56px;
}

.footer-card span {
  color: var(--text);
}

.system-map-panel {
  padding: 30px;
}

.system-map-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.22rem);
  letter-spacing: -0.02em;
  text-align: center;
}

.system-map-line span:nth-child(2n) {
  color: var(--cyan);
}

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

.footer-links a {
  color: var(--text);
  opacity: 0.88;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 1180px) {
  .hero-grid,
  .system-layout,
  .idea-layout,
  .grid-2,
  .cross-grid,
  .engine-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .problem-grid,
  .impact-grid,
  .resource-grid,
  .method-grid,
  .dossier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 22px, 1220px);
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .ecosystem-node {
    grid-template-columns: 1fr;
  }

  .system-map-line {
    justify-content: flex-start;
    text-align: left;
  }
}
