* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--surface-abyss);
  color: var(--color-snow-sheet);
  font-family: var(--font-matter);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(203, 255, 252, .08), transparent 32%),
    radial-gradient(circle at 88% 34%, rgba(253, 233, 255, .06), transparent 28%),
    linear-gradient(180deg, rgba(1, 38, 36, .15), rgba(1, 29, 28, .55));
  z-index: -3;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(203, 255, 252, .22);
}

#particle-field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  opacity: .58;
}

.page-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(6px);
}

.page-glow-a {
  width: 46vw;
  height: 46vw;
  top: -18vw;
  left: 28vw;
  background: radial-gradient(circle, rgba(203, 255, 252, .14), rgba(0, 130, 124, .05) 38%, transparent 70%);
}

.page-glow-b {
  width: 42vw;
  height: 42vw;
  right: -14vw;
  top: 48vh;
  background: radial-gradient(circle, rgba(253, 233, 255, .08), rgba(203, 255, 252, .04) 45%, transparent 72%);
}

/* ---------- Fixed transparent nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--spacing-24);
  padding: 16px clamp(18px, 3vw, 44px);
  min-height: 68px;
  transition: background-color .25s ease, backdrop-filter .25s ease;
}

.site-header.is-scrolled {
  background: rgba(1, 38, 36, .72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--color-snow-sheet);
  font-size: 13px;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--color-ice-mist);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--color-snow-sheet);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a {
  opacity: .82;
  transition: opacity .2s ease, color .2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-ice-mist);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(237, 255, 254, .18);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--color-ice-mist);
}

/* ---------- Layout shell ---------- */
.section-shell {
  width: min(var(--page-max-width), calc(100% - 44px));
  margin: 0 auto;
}

.band {
  padding: 88px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 132px 0 100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--color-fog-veil);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
}

.eyebrow span {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 9999px;
  background: var(--color-current-gradient);
}

.hero h1,
.section-copy h2,
.section-heading-wide h2,
.alpha-section h2 {
  margin: 0;
  color: var(--color-snow-sheet);
  font-weight: var(--font-weight-regular);
  letter-spacing: clamp(-3.84px, -.04em, -0.47px);
}

.hero h1 {
  font-size: clamp(56px, 9.2vw, 112px);
  line-height: .95;
  max-width: 980px;
  margin: 0 auto;
  overflow-wrap: break-word;
}

.hero-subhead {
  width: min(720px, 100%);
  margin: 28px auto 0;
  color: var(--color-fog-veil);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  letter-spacing: .25px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Buttons ---------- */
.gradient-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: var(--radius-buttons);
  padding: 14px 24px;
  font-size: var(--text-caption);
  line-height: 1;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}

.gradient-button {
  color: var(--color-midnight-current);
  background: var(--gradient-current-gradient);
  border: 0;
  cursor: pointer;
}

.ghost-button {
  position: relative;
  color: var(--color-snow-sheet);
  background:
    linear-gradient(var(--surface-abyss), var(--surface-abyss)) padding-box,
    var(--gradient-aurora-gradient) border-box;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.hero-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: .92;
}

.sphere-wrap {
  position: relative;
  width: min(760px, 82vw);
  aspect-ratio: 1;
}

#sphere-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: .82;
}

.sphere-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(237, 255, 254, .07);
  border-radius: 50%;
  transform: rotate(18deg) scaleX(1.18);
}

.sphere-ring-two {
  inset: 22%;
  transform: rotate(-34deg) scaleX(1.34);
  border-color: rgba(253, 233, 255, .07);
}

.hero-status {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 84px;
  width: min(330px, 42vw);
  padding: 20px;
  border-radius: var(--radius-cards);
  background: rgba(1, 29, 28, .84);
  backdrop-filter: blur(16px);
}

.status-topline,
.segment-grid {
  display: flex;
  align-items: center;
}

.status-topline {
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--color-fog-veil);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.status-topline strong {
  color: var(--color-ice-mist);
  font-weight: var(--font-weight-medium);
}

.song-card {
  padding: 20px;
  border-radius: 12px;
  background: var(--surface-reef);
}

.song-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: var(--font-weight-regular);
  letter-spacing: -.3px;
}

.song-card small {
  display: block;
  margin-top: 8px;
  color: var(--color-fog-veil);
  font-size: 13px;
}

.mini-label {
  margin: 0;
  color: var(--color-fog-veil);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.segment-grid {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.segment-grid span {
  flex: 1 0 calc(50% - 8px);
  padding: 10px 8px;
  border-radius: var(--radius-md);
  background: rgba(237, 255, 254, .06);
  color: var(--color-ice-mist);
  font-size: 11px;
  text-align: center;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

/* ---------- Section headings ---------- */
.section-heading-wide {
  width: min(820px, 100%);
  margin-bottom: 34px;
}

.section-copy h2,
.section-heading-wide h2,
.alpha-section h2 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
}

.section-copy p:not(.eyebrow),
.alpha-section p,
.section-heading-wide .lede {
  margin: 24px 0 0;
  max-width: 620px;
  color: var(--color-fog-veil);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Split (product) section ---------- */
.split-section,
.alpha-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding: 88px 0;
}

.capability-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 32px 0 0;
  padding: 0;
}

.capability-list li {
  position: relative;
  padding-left: 26px;
  color: var(--color-snow-sheet);
  font-size: 15px;
  letter-spacing: .2px;
}

.capability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--color-aurora-gradient);
  border-bottom: 1.5px solid var(--color-aurora-gradient);
  transform: rotate(-45deg);
}

/* ---------- Cards & grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.feature-card,
.step-card,
.alpha-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-cards);
  background: var(--surface-trench);
  padding: var(--card-padding);
}

.feature-card::before,
.step-card::before,
.alpha-card::before {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 255, 252, .32), transparent);
}

.reef-card {
  background: var(--surface-reef);
}

.feature-card h3,
.step-card h3,
.alpha-card h3 {
  margin: 0 0 14px;
  color: var(--color-snow-sheet);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: var(--tracking-heading-sm);
  font-weight: var(--font-weight-regular);
}

.feature-card p,
.step-card p,
.alpha-card p {
  margin: 0;
  color: var(--color-fog-veil);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: .3px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--color-ice-mist);
  font-size: 12px;
  letter-spacing: 1.44px;
  text-transform: uppercase;
}

.card-grid.four .step-card:nth-child(even) {
  background: var(--surface-reef);
}

/* ---------- Product device stage ---------- */
.device-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(203, 255, 252, .10), transparent 34%),
    rgba(1, 29, 28, .38);
}

.node-illustration {
  position: absolute;
  inset: 5% 4% auto auto;
  width: min(420px, 86%);
  opacity: .74;
}

.node-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.phone-mockup {
  position: relative;
  z-index: 2;
  width: min(318px, 78vw);
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(237, 255, 254, .2), rgba(237, 255, 254, .04));
}

.phone-top {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 30px 30px 0 0;
  background: #021615;
}

.phone-top span {
  width: 78px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(237, 255, 254, .14);
}

.phone-screen {
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  /* matches the screenshot's dark canvas so any sub-pixel edge blends in */
  background: #0e1413;
}

/* Real product screenshot, fitted to the screen width with full aspect ratio
   preserved (no stretching, no crop); the screen's rounded bottom clips it. */
.phone-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 0 28px 28px;
}

/* ---------- Quote band ---------- */
.quote-section {
  padding: 86px 0;
}

.quote-section p {
  margin: 0;
  max-width: 1060px;
  color: var(--color-snow-sheet);
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: clamp(-3px, -.04em, -.7px);
}

/* ---------- Alpha ---------- */
.alpha-section {
  align-items: stretch;
  padding-bottom: 116px;
}

.alpha-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(circle at 84% 8%, rgba(253, 233, 255, .10), transparent 36%),
    var(--surface-reef);
}

.alpha-card h3 {
  font-size: clamp(28px, 3vw, 40px);
}

.alpha-card .gradient-button {
  align-self: flex-start;
  margin-top: 34px;
}

.alpha-badge {
  align-self: flex-start;
  margin-bottom: 54px;
  padding: 10px 12px;
  border-radius: var(--radius-tags);
  color: var(--color-midnight-current);
  background: var(--gradient-aurora-gradient);
  font-size: 12px;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 36px 0 46px;
  color: var(--color-fog-veil);
  font-size: 13px;
  border-top: 1px solid rgba(237, 255, 254, .08);
}

.footer-lead {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  color: var(--color-snow-sheet);
}

.footer-lead p {
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
}

.footer-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  opacity: .82;
  transition: opacity .2s ease, color .2s ease;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-ice-mist);
}

.footer-copy {
  margin: 0;
}

/* ---------- Legal pages ---------- */
.legal-main {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto;
  padding: 148px 0 96px;
}

.legal-main h1 {
  margin: 0 0 12px;
  color: var(--color-snow-sheet);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  font-weight: var(--font-weight-regular);
  letter-spacing: -1px;
}

.legal-main h2 {
  margin: 44px 0 12px;
  color: var(--color-snow-sheet);
  font-size: 24px;
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--tracking-heading-sm);
}

.legal-main p,
.legal-main li {
  color: var(--color-fog-veil);
  font-size: 16px;
  line-height: 1.65;
}

.legal-main a {
  color: var(--color-ice-mist);
}

.legal-note {
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: var(--radius-cards);
  background: var(--surface-trench);
  color: var(--color-fog-veil);
  font-size: 14px;
  line-height: 1.6;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  color: var(--color-ice-mist);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: clamp(14px, 3vw, 44px);
    left: clamp(14px, 3vw, 44px);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--radius-cards);
    background: rgba(1, 29, 28, .94);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(237, 255, 254, .08);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .split-section,
  .alpha-section,
  .card-grid,
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .alpha-section {
    grid-template-columns: 1fr;
  }

  .capability-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(440px, 100%);
    margin-top: 52px;
  }

  .hero {
    padding-bottom: 64px;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 28px, var(--page-max-width));
  }

  .site-header {
    min-height: 64px;
    padding: 14px;
  }

  .brand span:last-child {
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 116px 0 64px;
  }

  .hero h1 {
    font-size: clamp(34px, 11.5vw, 58px);
  }

  .hero-actions,
  .hero-actions .gradient-button,
  .hero-actions .ghost-button {
    width: 100%;
  }

  .card-grid,
  .card-grid.four,
  .capability-list {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .step-card,
  .alpha-card {
    padding: 28px;
  }

  .band,
  .split-section,
  .quote-section,
  .alpha-section {
    padding: 60px 0;
  }

  .device-stage {
    min-height: 500px;
  }

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