:root {
  --bg: #050816;
  --bg-soft: #0b1024;
  --panel: rgba(8, 14, 34, 0.7);
  --panel-strong: rgba(8, 14, 34, 0.88);
  --line: rgba(116, 144, 255, 0.16);
  --line-strong: rgba(139, 186, 255, 0.34);
  --text: #f2f6ff;
  --muted: rgba(227, 236, 255, 0.72);
  --cyan: #82f5ff;
  --cyan-strong: #38d9ff;
  --magenta: #f466ff;
  --violet: #9f7cff;
  --font-display: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-detail: "Consolas", "SFMono-Regular", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 217, 255, 0.14), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(244, 102, 255, 0.14), transparent 24rem),
    radial-gradient(circle at 50% 75%, rgba(104, 122, 255, 0.12), transparent 32rem),
    linear-gradient(180deg, #03050f 0%, #060816 38%, #050713 100%);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 50% 36%, rgba(114, 158, 255, 0.12), transparent 14rem),
    radial-gradient(circle at 54% 38%, rgba(130, 245, 255, 0.08), transparent 24rem);
  filter: blur(8px);
}

body::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 100%);
  background-size: 160px 160px;
  opacity: 0.35;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.hero-canvas,
.grid-layer,
.noise-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-canvas {
  z-index: -1;
}

.grid-layer {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(130, 245, 255, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(244, 102, 255, 0.035) 0 1px, transparent 1px 100%);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.85), transparent 70%);
  opacity: 0.42;
}

.noise-layer {
  z-index: 1;
  opacity: 0.07;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 0.4px, transparent 0.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 0.6px, transparent 1px);
  background-position: 0 0, 24px 18px;
  background-size: 3px 3px, 7px 7px;
  mix-blend-mode: screen;
  animation: noise-drift 18s linear infinite;
}

.hero,
.content {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 2rem 0 5rem;
}

.hero__frame,
.research {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.hero__frame {
  position: relative;
  padding-top: 1rem;
}

.hero__frame::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  top: 5rem;
  bottom: 5.8rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(130, 245, 255, 0.32), rgba(130, 245, 255, 0));
  opacity: 0.6;
}

.hero__frame::after {
  content: "";
  position: absolute;
  left: 2.4rem;
  top: 3.4rem;
  width: min(58rem, 82vw);
  height: min(30rem, 58vh);
  background:
    radial-gradient(circle at 24% 42%, rgba(80, 132, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 84% 28%, rgba(244, 102, 255, 0.18), transparent 18rem),
    linear-gradient(110deg, rgba(8, 15, 37, 0.46), rgba(8, 15, 37, 0.08) 72%, transparent);
  filter: blur(20px);
  opacity: 0.92;
  z-index: -2;
  pointer-events: none;
}

.hero__intro {
  position: relative;
  isolation: isolate;
  width: min(900px, 100%);
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 3.4vw, 2.6rem) 1.9rem;
}

.hero__intro::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 3.9rem;
  width: min(49rem, 72vw);
  height: min(15rem, 28vh);
  z-index: -1;
  background:
    radial-gradient(circle at 18% 48%, rgba(118, 160, 255, 0.2), transparent 38%),
    radial-gradient(circle at 72% 38%, rgba(244, 102, 255, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(8, 13, 31, 0.34), rgba(8, 13, 31, 0));
  filter: blur(22px);
  opacity: 0.9;
}

.hero__intro::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2.3rem;
  width: min(16rem, 48vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 245, 255, 0), rgba(130, 245, 255, 0.75), rgba(130, 245, 255, 0));
  opacity: 0.9;
}

.hero__eyebrow,
.hero__index,
.section-heading__kicker,
.card__index,
.hero__scrollcue {
  font-family: var(--font-detail);
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.hero__eyebrow {
  margin: 0 0 1.15rem;
  font-size: 0.68rem;
  color: rgba(214, 228, 255, 0.6);
}

.hero__index {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--cyan);
  font-size: 0.68rem;
}

.hero__index::before {
  content: "";
  display: inline-block;
  width: 3.2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 245, 255, 0), rgba(130, 245, 255, 0.95));
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  max-width: 100%;
  font-size: clamp(2.85rem, 5.15vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.028em;
  text-transform: uppercase;
  text-wrap: balance;
  white-space: nowrap;
  font-weight: 600;
  text-shadow:
    0 0 24px rgba(97, 142, 255, 0.15),
    0 0 60px rgba(244, 102, 255, 0.12);
}

.hero__tagline {
  margin: 1.05rem 0 0;
  font-size: clamp(0.96rem, 1.45vw, 1.08rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(229, 238, 255, 0.8);
}

.hero__summary,
.section-heading__body,
.card p,
.config-note p {
  color: var(--muted);
  line-height: 1.72;
}

.hero__summary {
  width: min(34rem, 100%);
  margin: 1.35rem 0 0;
  font-size: 1rem;
  color: rgba(227, 236, 255, 0.78);
  line-height: 1.84;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.15rem;
}

.hero__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.8rem;
  padding: 0.86rem 1.08rem;
  border: 1px solid rgba(130, 245, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(9, 16, 38, 0.52), rgba(9, 16, 38, 0.12)),
    rgba(9, 16, 38, 0.18);
  backdrop-filter: blur(4px);
  color: rgba(242, 246, 255, 0.92);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  clip-path: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.hero__action:hover,
.hero__action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(130, 245, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(7, 12, 28, 0.2);
  color: var(--text);
}

.hero__action--secondary {
  border-color: rgba(244, 102, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(31, 12, 45, 0.34), rgba(9, 16, 38, 0.1)),
    rgba(9, 16, 38, 0.16);
}

.hero__action::after {
  content: "↗";
  margin-left: 0.75rem;
  font-size: 0.68rem;
  opacity: 0.6;
}

.hero__scrollcue {
  margin-top: 1.75rem;
  padding-left: 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  color: rgba(214, 228, 255, 0.52);
}

.hero__scrollcue::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 245, 255, 0), rgba(130, 245, 255, 0.65));
}

.content {
  padding-bottom: 4rem;
}

.research {
  padding: 3rem 0 2rem;
}

.section-heading {
  width: min(42rem, 100%);
  margin: 0 0 2rem;
}

.section-heading__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  color: rgba(130, 245, 255, 0.72);
}

.section-heading h2 {
  max-width: 16ch;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.03;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.section-heading__body {
  margin: 0.9rem 0 0;
  max-width: 31rem;
  color: rgba(227, 236, 255, 0.68);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  min-height: 16.5rem;
  padding: 1.45rem 1.45rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 102, 255, 0.08), transparent 28%),
    radial-gradient(circle at 14% 120%, rgba(130, 245, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(12, 18, 40, 0.72), rgba(8, 12, 28, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 44px rgba(4, 8, 24, 0.22);
  border-radius: 1.4rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.card::before {
  inset: 1.15rem auto auto 1.45rem;
  width: 4.2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 245, 255, 0), rgba(130, 245, 255, 0.82));
}

.card::after {
  top: -4rem;
  right: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 102, 255, 0.15), transparent 70%);
}

.card__index {
  display: inline-block;
  margin: 0.6rem 0 1.2rem;
  font-size: 0.66rem;
  color: rgba(130, 245, 255, 0.72);
}

.card h3 {
  max-width: 13rem;
  font-size: 1.26rem;
  line-height: 1.12;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.card p {
  margin: 1rem 0 0;
  max-width: 18rem;
  color: rgba(227, 236, 255, 0.66);
  line-height: 1.78;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 245, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 56px rgba(4, 8, 24, 0.26);
}

.config-note {
  width: min(1120px, calc(100% - 3rem));
  margin: 1rem auto 0;
}

.config-note p {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(244, 102, 255, 0.16);
  background: rgba(8, 14, 34, 0.62);
  font-size: 0.92rem;
}

.config-note code {
  font-family: "Consolas", "SFMono-Regular", monospace;
  color: var(--text);
}

@keyframes noise-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-1.25%, 1%, 0);
  }

  to {
    transform: translate3d(1%, -1.25%, 0);
  }
}

@media (max-width: 960px) {
  .hero {
    padding-bottom: 4rem;
  }

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

  .card {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  body::after {
    background-size: 92px 92px;
    opacity: 0.2;
  }

  .hero__frame,
  .research,
  .config-note {
    width: min(100% - 1.5rem, 1120px);
  }

  .hero {
    min-height: 100svh;
    padding-top: 1.2rem;
  }

  .hero__intro {
    width: 100%;
    padding: 1.15rem 1rem 1.3rem;
  }

  .hero__frame::before {
    display: none;
  }

  .hero__frame::after {
    left: 0.3rem;
    top: 2.6rem;
    width: calc(100% - 0.6rem);
    height: 19rem;
    filter: blur(24px);
  }

  .hero__intro::before {
    left: -0.2rem;
    top: 3.1rem;
    width: calc(100% + 0.4rem);
    height: 11rem;
  }

  .hero__intro::after {
    left: 0;
    top: 1.75rem;
  }

  .hero__eyebrow,
  .hero__tagline,
  .hero__index,
  .hero__scrollcue,
  .section-heading__kicker {
    letter-spacing: 0.18em;
  }

  .hero__tagline {
    font-size: 0.9rem;
  }

  h1 {
    white-space: normal;
  }

  .hero__summary {
    font-size: 0.94rem;
  }

  .hero__scrollcue {
    padding-left: 0;
  }

  .hero__actions {
    gap: 0.7rem;
  }

  .hero__action {
    flex: 1 1 100%;
    min-width: 0;
  }

  .section-heading h2 {
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .noise-layer {
    animation: none;
  }

  .hero__action {
    transition: none;
  }
}
