:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-soft: #101b2d;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.14);
  --text: #eef5ff;
  --muted: #a6b5c9;
  --muted-strong: #c7d3e5;
  --blue: #6cc7ff;
  --cyan: #52f0db;
  --violet: #a78bfa;
  --amber: #f7bf58;
  --red: #ff7474;
  --green: #77df9a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 10%, rgba(82, 240, 219, 0.16), transparent 24rem),
    radial-gradient(circle at 85% 0%, rgba(167, 139, 250, 0.2), transparent 28rem),
    linear-gradient(180deg, #07101d 0%, #08111f 42%, #0a1220 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

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

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.45;
  pointer-events: none;
}

.page-glow-one {
  top: 14rem;
  left: -10rem;
  width: 22rem;
  height: 22rem;
  background: rgba(82, 240, 219, 0.16);
}

.page-glow-two {
  right: -12rem;
  bottom: 12rem;
  width: 28rem;
  height: 28rem;
  background: rgba(108, 199, 255, 0.16);
}

.hero,
main,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  padding: 28px 0 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.64);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 52%, var(--violet));
  color: #07101d;
  font-weight: 900;
}

.brand-label {
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 900;
}

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

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.94rem;
  transition:
    background 180ms ease,
    color 180ms ease;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 34px;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.hero-text,
.section-heading p,
.paper-panel p,
.resource-copy p {
  max-width: 740px;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 54%, var(--violet));
  color: #06111d;
  box-shadow: 0 16px 42px rgba(82, 240, 219, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.secondary:hover {
  border-color: rgba(82, 240, 219, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.button.placeholder {
  cursor: default;
  opacity: 0.72;
}

.button.placeholder:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.button.dark {
  white-space: nowrap;
}

.trace-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(8, 17, 31, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.trace-card::before {
  position: absolute;
  inset: -70% -25% auto;
  height: 16rem;
  background: radial-gradient(circle, rgba(82, 240, 219, 0.24), transparent 65%);
  content: "";
}

.trace-header {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 4px 6px 18px;
}

.trace-header span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.trace-flow {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-flow li {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(5, 12, 22, 0.58);
}

.trace-flow strong,
.trace-flow span {
  display: block;
}

.trace-flow span {
  margin-top: 6px;
  color: var(--muted);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 54px;
}

.metric-strip article,
.finding-card,
.capability-grid article,
.case-grid article,
.resource-links a,
.resource-placeholder {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.metric-strip article {
  min-height: 142px;
  padding: 24px;
  border-radius: 28px;
}

.metric-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.metric-strip p,
.finding-card p,
.capability-grid p,
.case-grid p,
.resource-links span,
.footer {
  color: var(--muted);
  line-height: 1.65;
}

.paper-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  padding: 32px;
  border: 1px solid rgba(82, 240, 219, 0.28);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(82, 240, 219, 0.12), rgba(167, 139, 250, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.paper-panel h2 {
  max-width: 840px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.paper-panel p {
  margin-bottom: 0;
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.section {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.finding-grid,
.capability-grid,
.case-grid {
  display: grid;
  gap: 16px;
}

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

.finding-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 28px;
  border-radius: 30px;
}

.finding-card::before {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  content: "";
}

.finding-card span {
  display: block;
  margin-bottom: 32px;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.accent-red::before {
  background: radial-gradient(circle at 20% 0%, var(--red), transparent 58%);
}

.accent-amber::before {
  background: radial-gradient(circle at 20% 0%, var(--amber), transparent 58%);
}

.accent-violet::before {
  background: radial-gradient(circle at 20% 0%, var(--violet), transparent 58%);
}

.accent-blue::before {
  background: radial-gradient(circle at 20% 0%, var(--blue), transparent 58%);
}

.accent-green::before {
  background: radial-gradient(circle at 20% 0%, var(--green), transparent 58%);
}

.accent-cyan::before {
  background: radial-gradient(circle at 20% 0%, var(--cyan), transparent 58%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.split .section-heading {
  position: sticky;
  top: 24px;
  margin-bottom: 0;
}

.architecture-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #f8fbff;
  box-shadow: var(--shadow);
}

.architecture-card img {
  width: 100%;
  padding: 18px;
}

.capability-grid {
  grid-column: 2;
  grid-template-columns: repeat(2, 1fr);
}

.capability-grid article {
  padding: 24px;
  border-radius: 28px;
}

.capability-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.dark-section {
  position: relative;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(82, 240, 219, 0.14), rgba(167, 139, 250, 0.08)),
    #0d1828;
}

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

.case-grid article {
  min-height: 220px;
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.05);
}

.case-grid h3 {
  color: #fff;
}

.figure-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.figure-card {
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.16);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.figure-card:hover {
  border-color: rgba(82, 240, 219, 0.42);
  transform: translateY(-3px);
}

.figure-card img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  padding: 22px;
  background: #f8fbff;
}

.figure-card span {
  display: block;
  padding: 20px 24px 8px;
  color: var(--muted-strong);
  font-size: 1.1rem;
  font-weight: 800;
}

.figure-card p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.figure-card.wide {
  grid-column: span 2;
}

.results-section {
  padding-top: 34px;
}

.result-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.result-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.16);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.result-card:hover {
  border-color: rgba(82, 240, 219, 0.42);
  transform: translateY(-3px);
}

.result-plot {
  display: block;
}

.result-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 14px;
  background: #f8fbff;
}

.result-card span,
.result-card strong {
  display: block;
  padding-inline: 18px;
}

.result-card span {
  padding-top: 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.result-card strong {
  padding-top: 4px;
  padding-bottom: 18px;
  color: var(--muted-strong);
  font-size: 1.04rem;
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.result-links a {
  padding: 7px 10px;
  border: 1px solid rgba(82, 240, 219, 0.28);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.result-links a:hover {
  border-color: rgba(82, 240, 219, 0.64);
  background: rgba(82, 240, 219, 0.12);
  color: var(--text);
}

.resources {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}

.resource-copy {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(82, 240, 219, 0.12), rgba(255, 255, 255, 0.06));
}

.resource-links {
  display: grid;
  gap: 14px;
}

.resource-links a,
.resource-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 116px;
  padding: 24px;
  border-radius: 28px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.resource-links a:hover {
  border-color: rgba(82, 240, 219, 0.44);
  background: var(--panel-strong);
  transform: translateX(4px);
}

.resource-links strong,
.resource-placeholder strong {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.resource-placeholder {
  opacity: 0.72;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 54px;
  border-top: 1px solid var(--border);
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .resources {
    grid-template-columns: 1fr;
  }

  .split .section-heading {
    position: static;
  }

  .capability-grid {
    grid-column: auto;
  }

  .metric-strip,
  .finding-grid,
  .case-grid,
  .result-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .figure-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .hero,
  main,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 14px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.2rem);
  }

  .metric-strip,
  .finding-grid,
  .capability-grid,
  .case-grid,
  .figure-gallery,
  .result-gallery {
    grid-template-columns: 1fr;
  }

  .figure-card.wide {
    grid-column: span 1;
  }

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