:root {
  --bg: #07111c;
  --bg-soft: #0c1b2c;
  --bg-elevated: rgba(10, 23, 37, 0.76);
  --panel: rgba(10, 25, 39, 0.84);
  --panel-strong: rgba(12, 31, 48, 0.94);
  --border: rgba(137, 214, 255, 0.18);
  --text: #f5f8ff;
  --muted: #99adbf;
  --accent: #54f0d0;
  --accent-strong: #91ffd8;
  --accent-warm: #ffd57a;
  --danger: #ff8e8e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --heading: "Syne", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84, 240, 208, 0.18), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(82, 158, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #05101a 0%, #07111c 45%, #06131f 100%);
  overflow-x: hidden;
}

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

button,
a {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

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

.ambient-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(145, 255, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 255, 216, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
  pointer-events: none;
}

.ambient-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-orb-one {
  width: 18rem;
  height: 18rem;
  top: 5rem;
  right: -4rem;
  background: radial-gradient(circle, rgba(145, 255, 216, 0.35), transparent 70%);
}

.ambient-orb-two {
  width: 22rem;
  height: 22rem;
  left: -8rem;
  top: 30rem;
  background: radial-gradient(circle, rgba(82, 158, 255, 0.22), transparent 70%);
}

.site-shell {
  position: relative;
  z-index: 1;
}

.nav-shell,
.section-frame,
.footer-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.nav-shell {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: rgba(4, 16, 28, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-pulse {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dffef3, var(--accent));
  box-shadow: 0 0 0 0 rgba(84, 240, 208, 0.4);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-copy strong,
.brand-copy em {
  display: block;
  white-space: nowrap;
}

.brand-copy strong {
  font-family: var(--heading);
  font-size: 0.98rem;
  font-style: normal;
}

.brand-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.main-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  background: rgba(145, 255, 216, 0.08);
}

.nav-actions,
.cta-group,
.media-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.button-primary {
  color: #051019;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  box-shadow: 0 12px 30px rgba(84, 240, 208, 0.2);
}

.button-ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(145, 255, 216, 0.04);
}

#page-content {
  padding: 3rem 0 4rem;
}

.section-frame {
  position: relative;
  margin-top: 1.6rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.9rem;
  background: linear-gradient(180deg, var(--bg-elevated), rgba(6, 15, 24, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(84, 240, 208, 0.04), transparent 30%, rgba(255, 213, 122, 0.05));
  pointer-events: none;
}

.hero,
.page-hero {
  display: grid;
  gap: 2rem;
}

.hero {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: calc(100vh - 8rem);
}

.hero-copy,
.hero-panel,
.page-hero,
.section-heading,
.cta-banner,
.impact-panel,
.split-section,
.timeline,
.media-layout {
  position: relative;
  z-index: 1;
}

.section-tag,
.panel-kicker,
.timeline-stage,
.footer-list-title {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  line-height: 0.98;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.hero-subtitle,
.hero-description,
.section-heading p,
.info-card p,
.timeline-card p,
.impact-panel p,
.stake-item p,
.footer-shell p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 50rem;
  margin: 1.25rem 0 0.7rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #dceaf3;
}

.hero-description {
  max-width: 45rem;
  margin: 0 0 1.6rem;
  font-size: 1.02rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.metric-card,
.info-card,
.timeline-card,
.flow-step,
.stack-card {
  border: 1px solid rgba(145, 255, 216, 0.12);
  background: rgba(8, 23, 36, 0.8);
  backdrop-filter: blur(12px);
}

.metric-card {
  padding: 1rem;
  border-radius: 1.3rem;
}

.metric-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--heading);
  font-size: 1.45rem;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-glass {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(145, 255, 216, 0.16);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(5, 19, 30, 0.88), rgba(10, 32, 51, 0.92));
}

.neural-map {
  position: relative;
  min-height: 14rem;
  margin: 1rem 0 1.6rem;
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(145, 255, 216, 0.3), transparent 18%),
    radial-gradient(circle at 72% 38%, rgba(82, 158, 255, 0.28), transparent 17%),
    radial-gradient(circle at 55% 72%, rgba(255, 213, 122, 0.16), transparent 15%),
    linear-gradient(180deg, rgba(10, 30, 47, 0.8), rgba(4, 14, 22, 0.9));
  overflow: hidden;
}

.neural-map span {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: radial-gradient(circle, #dffef3 0%, var(--accent) 70%);
  box-shadow: 0 0 20px rgba(84, 240, 208, 0.45);
}

.neural-map span:nth-child(1) {
  top: 18%;
  left: 22%;
}

.neural-map span:nth-child(2) {
  top: 28%;
  right: 18%;
}

.neural-map span:nth-child(3) {
  top: 56%;
  left: 48%;
}

.neural-map span:nth-child(4) {
  bottom: 15%;
  left: 30%;
}

.neural-map span:nth-child(5) {
  bottom: 24%;
  right: 24%;
}

.neural-map span:nth-child(6) {
  top: 46%;
  left: 12%;
}

.neural-map::before,
.neural-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 22%, rgba(145, 255, 216, 0.22) 24%, transparent 26%),
    linear-gradient(45deg, transparent 50%, rgba(82, 158, 255, 0.18) 52%, transparent 54%),
    linear-gradient(166deg, transparent 60%, rgba(255, 213, 122, 0.12) 62%, transparent 64%);
}

.panel-stack,
.card-grid,
.timeline,
.flow-track,
.stakes-list {
  display: grid;
  gap: 1rem;
}

.stack-card {
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.2rem;
}

.stack-card p,
.reference-meta strong,
.reference-meta span {
  margin: 0;
}

.stack-card p {
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack-card h3 {
  margin-top: 0.45rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  max-width: 15ch;
  margin-bottom: 0.7rem;
}

.section-heading p,
.narrow {
  max-width: 46rem;
}

.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.info-card,
.timeline-card,
.flow-step {
  position: relative;
  z-index: 1;
  padding: 1.3rem;
  border-radius: 1.4rem;
}

.reference-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reference-meta span {
  font-family: var(--heading);
  font-size: 1.1rem;
}

.reference-meta strong {
  font-size: 0.82rem;
  color: var(--accent-warm);
}

.media-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.2rem;
  align-items: stretch;
}

.video-shell {
  position: relative;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(145, 255, 216, 0.16);
  border-radius: 1.6rem;
  background: radial-gradient(circle at top left, rgba(84, 240, 208, 0.08), transparent 30%), rgba(5, 18, 29, 0.92);
}

.video-shell video {
  width: 100%;
  border-radius: 1rem;
  background: #02060b;
}

.media-aside,
.assay-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.layer-index {
  display: inline-flex;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: var(--accent-strong);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.layer-title {
  margin: 0.6rem 0;
  color: #dceaf3;
  font-weight: 600;
}

.detail-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.flow-track {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-step {
  min-height: 100%;
}

.flow-step span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(145, 255, 216, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 1rem;
}

.stakes-list {
  gap: 0.85rem;
}

.stake-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(7, 21, 33, 0.75);
  border: 1px solid rgba(145, 255, 216, 0.12);
}

.stake-marker {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

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

.timeline-card {
  min-height: 18rem;
}

.cta-banner,
.impact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-banner h2,
.impact-panel h2 {
  max-width: 16ch;
}

.impact-panel {
  flex-direction: column;
  align-items: flex-start;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr auto;
  gap: 1.2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.team-list span {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(145, 255, 216, 0.07);
  border: 1px solid rgba(145, 255, 216, 0.1);
  color: #dceaf3;
}

.noscript-note {
  margin: 2rem auto;
  width: min(calc(100% - 2rem), var(--max-width));
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 142, 142, 0.08);
  border: 1px solid rgba(255, 142, 142, 0.2);
  color: #ffd6d6;
}

.reveal,
.layer-card,
.timeline-card,
.flow-step,
.issue-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible,
.layer-card.is-visible,
.timeline-card.is-visible,
.flow-step.is-visible,
.issue-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(84, 240, 208, 0.38);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(84, 240, 208, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(84, 240, 208, 0);
  }
}

@media (max-width: 1100px) {
  .hero,
  .media-layout,
  .split-section,
  .footer-shell,
  .timeline,
  .layered-grid,
  .card-grid.three-up,
  .card-grid.two-up,
  .flow-track {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .footer-shell,
  .cta-banner {
    align-items: flex-start;
  }

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

@media (max-width: 820px) {
  .nav-shell {
    position: relative;
    top: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav,
  .nav-actions {
    justify-content: flex-start;
  }

  #page-content {
    padding-top: 1.4rem;
  }

  .section-frame {
    padding: 1.35rem;
    border-radius: 1.35rem;
  }

  h1 {
    max-width: 100%;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .cta-banner,
  .impact-panel {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .button,
  .main-nav a,
  .team-list span {
    width: 100%;
    justify-content: center;
  }

  .nav-actions,
  .cta-group,
  .media-actions,
  .footer-actions {
    width: 100%;
  }

  .brand-copy strong,
  .brand-copy em {
    white-space: normal;
  }
}
