:root {
  --ink: #f6fbff;
  --muted: #a8b8d6;
  --line: rgba(154, 189, 255, 0.22);
  --panel: rgba(5, 15, 44, 0.74);
  --soft: rgba(12, 31, 80, 0.58);
  --blue: #1d66ff;
  --blue-bright: #42a5ff;
  --cyan: #56e2ff;
  --green: #28e5a6;
  --violet: #8a7cff;
  --shadow: 0 26px 80px rgba(0, 14, 60, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  background: #030713;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(3, 7, 19, 0.15) 0%, #06102d 48%, #f5f8ff 48%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(107, 171, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 171, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(29, 102, 255, 0.32), transparent 34%),
    #030713;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

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

a:hover {
  text-decoration: underline;
}

#singularity-webgl {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.glass {
  background:
    linear-gradient(90deg, rgba(3, 9, 28, 0.9), rgba(5, 18, 52, 0.72)),
    rgba(3, 9, 28, 0.68);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(86, 226, 255, 0.56));
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: #d7e8ff;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: clamp(48px, 7vw, 106px) clamp(20px, 5vw, 80px) 56px;
  overflow: hidden;
}

.cinematic::after {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  bottom: 24px;
  left: clamp(20px, 5vw, 80px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(86, 226, 255, 0.58), transparent);
}

.hero-copy-wrap {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 800px;
}

.hero-copy-wrap::before {
  position: absolute;
  top: -42px;
  left: -18px;
  z-index: -1;
  width: min(32vw, 360px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(86, 226, 255, 0.88), transparent);
  box-shadow:
    0 28px 0 rgba(66, 165, 255, 0.24),
    0 56px 0 rgba(138, 124, 255, 0.16);
  transform: translate3d(calc(var(--parallax-x, 0px) * -0.35), calc(var(--parallax-y, 0px) * -0.22), 0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #b8d7ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(40, 229, 166, 0.13), 0 0 26px rgba(40, 229, 166, 0.92);
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 730px;
  margin: 26px 0 0;
  color: #c1d3ee;
  font-size: clamp(18px, 2vw, 22px);
}

.support-email {
  font-weight: 900;
}

.support-email a {
  color: var(--cyan);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(167, 204, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0, 24, 90, 0.28);
}

.button.primary {
  border-color: rgba(86, 226, 255, 0.72);
  background: linear-gradient(135deg, var(--blue), #00b7ff);
  color: white;
}

.button.ghost {
  background: rgba(5, 20, 58, 0.66);
}

.hero-stage {
  position: relative;
  min-height: min(62vw, 690px);
}

.logo-wire {
  position: absolute;
  inset: 3% 0 auto auto;
  display: grid;
  place-items: center;
  width: min(58vw, 610px);
  aspect-ratio: 1;
  border: 1px solid rgba(86, 226, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(17, 63, 166, 0.08), rgba(86, 226, 255, 0.04)),
    repeating-conic-gradient(from 20deg, rgba(86, 226, 255, 0.18) 0deg 1deg, transparent 1deg 10deg);
  box-shadow: inset 0 0 80px rgba(29, 102, 255, 0.28), 0 0 90px rgba(29, 102, 255, 0.2);
  translate: 0 var(--parallax-y, 0px);
}

.logo-wire img {
  width: min(68%, 390px);
  filter: drop-shadow(0 0 22px rgba(86, 226, 255, 0.42));
  mix-blend-mode: screen;
}

.signal-strip {
  position: absolute;
  right: 2%;
  bottom: 10%;
  left: 4%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  translate: 0 calc(var(--parallax-y, 0px) * -0.42);
}

.signal-strip span {
  padding: 14px;
  border: 1px solid rgba(154, 189, 255, 0.26);
  border-radius: 8px;
  background: rgba(3, 10, 31, 0.76);
  color: #d8e9ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 86px clamp(20px, 5vw, 80px);
  overflow: hidden;
  isolation: isolate;
}

.section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.62;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(86, 226, 255, 0.08) 18% 18.5%, transparent 18.5% 100%),
    linear-gradient(70deg, transparent 0 58%, rgba(29, 102, 255, 0.09) 58% 58.4%, transparent 58.4% 100%);
  transform: translate3d(0, calc(var(--section-shift, 0px) * -0.55), 0);
}

.inner-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 16%, rgba(29, 102, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #030713 0%, #071638 58%, #ffffff 58%, #f6f9ff 100%);
}

.inner-page main {
  background: linear-gradient(180deg, rgba(3, 7, 19, 0.1), rgba(5, 17, 48, 0.72) 48%, #f6f9ff 48%);
}

.inner-page .section:first-child {
  padding-top: clamp(52px, 8vw, 112px);
  padding-bottom: clamp(46px, 7vw, 92px);
}

.inner-page h1 {
  max-width: 980px;
  font-size: clamp(44px, 7vw, 88px);
}

.section h2 {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-intro {
  max-width: 820px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 19px;
}

.band {
  background: linear-gradient(180deg, rgba(5, 12, 35, 0.92), rgba(6, 18, 52, 0.96));
  border-block: 1px solid var(--line);
}

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

.card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #00b7ff);
  color: #fff;
  font-weight: 900;
}

.step strong {
  display: block;
}

.step span {
  color: var(--muted);
}

.codebox {
  margin: 18px 0 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid rgba(86, 226, 255, 0.32);
  border-radius: 8px;
  background: rgba(1, 7, 25, 0.92);
  color: #dbeafe;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

.inner-page .section:not(:first-child):not(.band) {
  background: #f6f9ff;
  color: #10172f;
}

.inner-page .section:not(:first-child):not(.band) .section-intro,
.inner-page .section:not(:first-child):not(.band) .card p,
.inner-page .section:not(:first-child):not(.band) .card li {
  color: #5f6f91;
}

.inner-page .section:not(:first-child):not(.band) .card {
  border-color: #dce5f7;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 23, 47, 0.08);
}

.inner-page .section:not(:first-child):not(.band) .codebox {
  background: #07183f;
}

.system-band,
.product-band,
.metrics-band,
.safety-band {
  background: linear-gradient(180deg, rgba(5, 12, 35, 0.92), rgba(6, 18, 52, 0.96));
  border-block: 1px solid var(--line);
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.metric-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
  translate: 0 var(--parallax-y, 0px);
  transition: border-color 220ms ease, box-shadow 220ms ease, translate 80ms linear;
}

.feature-card:hover,
.metric-grid article:hover,
.screen-shot:hover {
  border-color: rgba(86, 226, 255, 0.52);
  box-shadow: 0 34px 90px rgba(0, 35, 120, 0.42);
}

.feature-card span,
.metric-grid span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3,
.metric-grid strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.05;
}

.feature-card p,
.metric-grid article {
  color: var(--muted);
}

.product-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.product-band > * {
  min-width: 0;
}

.screen-stack {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  perspective: 1400px;
}

.screen-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(154, 189, 255, 0.24);
  border-radius: 8px;
  background: #071129;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  translate: 0 var(--parallax-y, 0px);
  transition: border-color 220ms ease, box-shadow 220ms ease, translate 80ms linear;
}

.screen-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-shot {
  top: 8%;
  right: 0;
  width: min(96%, 780px);
  transform: rotateY(-13deg) rotateX(4deg);
  transform-origin: center;
}

.mobile-shot {
  bottom: 0;
  left: 0;
  width: min(34%, 210px);
  transform: rotateY(18deg) rotateX(4deg);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.safety-band {
  padding-bottom: 112px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 36px clamp(20px, 5vw, 80px);
  border-top: 1px solid rgba(154, 189, 255, 0.2);
  background: #030713;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 760ms ease,
    transform 880ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 760ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.fold-text .word {
  display: inline-block;
  transform: translate3d(0, 0.72em, 0) rotateX(46deg);
  transform-origin: 50% 100%;
  opacity: 0;
  transition:
    opacity 680ms ease,
    transform 880ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--word-index, 0) * 34ms + var(--reveal-delay, 0ms));
}

.fold-text.is-visible .word {
  transform: translate3d(0, 0, 0) rotateX(0deg);
  opacity: 1;
}

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

  .reveal,
  .fold-text .word,
  .feature-card,
  .metric-grid article,
  .screen-shot {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    translate: 0 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

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

  .hero,
  .product-band {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 480px;
  }

  .logo-wire {
    right: 50%;
    width: min(88vw, 540px);
    transform: translateX(50%);
  }

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

  .screen-stack {
    min-height: 470px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .hero {
    padding-top: 42px;
    overflow: hidden;
  }

  .hero-copy-wrap {
    width: 100%;
    max-width: 340px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 11px;
    white-space: normal;
  }

  h1 {
    max-width: 100%;
    font-size: 39px;
    line-height: 1.04;
    text-wrap: auto;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-stage {
    min-height: 380px;
  }

  .signal-strip,
  .feature-rail,
  .metric-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .inner-page h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .signal-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    padding-top: 300px;
  }

  .screen-stack {
    min-height: 380px;
  }

  .desktop-shot {
    width: 100%;
    transform: none;
  }

  .mobile-shot {
    display: none;
  }
}
