:root {
  --bg-light: #f4f6fb;
  --bg-dark: #0b1020;
  --bg-deep: #070b16;
  --panel: rgba(10, 16, 32, 0.86);
  --text-on-light: #0d1220;
  --text-on-dark: #eef4ff;
  --text-muted: #5a667f;
  --cyan: #5fd4ff;
  --cyan-strong: #06b7ff;
  --line: rgba(95, 212, 255, 0.2);
  --font-display: "Syne", "Arial Black", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(95, 212, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(5, 111, 255, 0.14), transparent 32%),
    var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(244, 246, 251, 0.02), rgba(255, 255, 255, 0.24)),
    radial-gradient(circle at 20% 15%, rgba(95, 212, 255, 0.08), transparent 24%);
}

body.is-loaded #loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

#loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at center, rgba(95, 212, 255, 0.08), transparent 30%),
    rgba(244, 246, 251, 0.97);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loader-track {
  width: min(24rem, 72vw);
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(13, 18, 32, 0.08);
  overflow: hidden;
}

#loader-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-strong));
  box-shadow: 0 0 1rem rgba(6, 183, 255, 0.35);
  transition: width 0.2s ease;
}

#loader-percent {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 2rem;
  mix-blend-mode: difference;
  color: #f9fbff;
  pointer-events: none;
}

.site-header a,
.site-header .brand-block {
  pointer-events: auto;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #ffffff);
  box-shadow: 0 0 1.1rem rgba(95, 212, 255, 0.7);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-standalone {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18vh 5vw 3rem;
}

.hero-copy {
  max-width: min(38rem, 82vw);
}

.section-label {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(13, 18, 32, 0.48);
}

.hero-heading,
.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-heading {
  font-size: clamp(4.8rem, 15vw, 12rem);
}

.hero-heading span {
  display: block;
}

.hero-tagline,
.section-body,
.section-note {
  max-width: 31rem;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
}

.section-inner {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  margin-top: 1.8rem;
  color: var(--text-muted);
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13, 18, 32, 0.5);
}

.scroll-indicator i {
  position: relative;
  width: 2.75rem;
  height: 1px;
  background: rgba(13, 18, 32, 0.18);
}

.scroll-indicator i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1px solid rgba(13, 18, 32, 0.4);
  border-bottom: 1px solid rgba(13, 18, 32, 0.4);
  transform: translateY(-50%) rotate(-45deg);
}

.canvas-wrap,
#dark-overlay,
.marquee-wrap {
  position: fixed;
  inset: 0;
}

.canvas-wrap {
  z-index: 3;
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#dark-overlay {
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: rgba(4, 10, 22, 0.9);
}

.marquee-wrap {
  z-index: 6;
  pointer-events: none;
  opacity: 0;
}

.marquee-wrap--top {
  inset: 14vh 0 auto 0;
  height: auto;
}

.marquee-wrap--bottom {
  inset: auto 0 6vh 0;
  height: auto;
}

.marquee-text {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.08);
  will-change: transform, opacity;
}

#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 7;
}

.scroll-section {
  position: absolute;
  left: 0;
  width: 100%;
  min-height: 10vh;
  padding-top: 8vh;
  padding-bottom: 8vh;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

.scroll-section.is-visible {
  visibility: visible;
}

.align-left {
  padding-left: 5vw;
  padding-right: 55vw;
}

.align-right {
  padding-left: 55vw;
  padding-right: 5vw;
}

.align-left .section-inner,
.align-right .section-inner {
  max-width: 40vw;
}

.section-heading {
  font-size: clamp(3rem, 5.4vw, 5.4rem);
}

.section-body {
  margin-top: 1.25rem;
  color: rgba(13, 18, 32, 0.82);
}

.section-note {
  margin-top: 1rem;
  color: var(--cyan-strong);
}

.section-stats {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3rem;
  padding-inline: 6vw;
  text-align: center;
  color: var(--text-on-dark);
}

.section-stats .section-label {
  color: rgba(238, 244, 255, 0.56);
}

.section-stats .section-heading {
  max-width: 16ch;
  font-size: clamp(3rem, 6vw, 6rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  width: min(70rem, 100%);
}

.stat {
  padding: 1.4rem 1.2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}

.stat-suffix {
  margin-left: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  text-transform: uppercase;
}

.stat-label {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(238, 244, 255, 0.72);
}

.section-cta .section-inner {
  padding: 2rem;
  border: 1px solid rgba(13, 18, 32, 0.08);
  background: rgba(244, 246, 251, 0.64);
  backdrop-filter: blur(12px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-button,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.45rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta-button {
  background: var(--text-on-light);
  color: var(--text-on-dark);
  box-shadow: 0 1.25rem 2.5rem rgba(13, 18, 32, 0.12);
}

.cta-secondary {
  border: 1px solid rgba(13, 18, 32, 0.16);
}

@media (max-width: 1100px) {
  .hero-heading {
    font-size: clamp(4rem, 13vw, 8rem);
  }

  .align-left,
  .align-right {
    padding-left: 6vw;
    padding-right: 42vw;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 48vw;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    width: min(36rem, 100%);
  }
}

@media (max-width: 767px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(95, 212, 255, 0.22), transparent 34%),
      linear-gradient(180deg, #f8fbff 0%, #edf2fb 100%);
  }

  .site-header {
    align-items: flex-start;
    gap: 0.8rem;
    padding: max(0.9rem, env(safe-area-inset-top)) 1rem 0;
    flex-direction: column;
    mix-blend-mode: normal;
    color: var(--text-on-light);
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.55rem;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .site-nav a,
  .brand-block {
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(13, 18, 32, 0.08);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
  }

  .brand-block {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .hero-standalone {
    min-height: 100svh;
    padding: calc(max(5.5rem, env(safe-area-inset-top) + 4.75rem)) 1rem 1.25rem;
    justify-content: flex-end;
  }

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

  .section-label {
    margin-bottom: 0.9rem;
    font-size: 0.64rem;
    letter-spacing: 0.22em;
  }

  .hero-heading {
    font-size: clamp(3.3rem, 16vw, 5.4rem);
    line-height: 0.9;
  }

  .hero-copy,
  .hero-tagline,
  .section-body,
  .section-note {
    max-width: none;
  }

  .hero-tagline,
  .section-body,
  .section-note,
  .stat-label {
    font-size: 0.96rem;
    line-height: 1.56;
  }

  .hero-tagline {
    max-width: 21rem;
    margin-top: 1.2rem;
  }

  .scroll-indicator {
    margin-top: 2rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .marquee-wrap--top {
    inset: auto 0 16.5vh 0;
  }

  .marquee-wrap--bottom {
    display: none;
  }

  .marquee-text {
    font-size: clamp(2.8rem, 17vw, 5rem);
    color: rgba(13, 18, 32, 0.08);
  }

  #scroll-container {
    height: 620vh;
  }

  .scroll-section {
    min-height: auto;
    padding: 0 1rem;
  }

  .align-left,
  .align-right {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .align-left .section-inner,
  .align-right .section-inner,
  .section-cta .section-inner {
    max-width: none;
  }

  .section-inner,
  .section-stats {
    padding: 1.15rem 1rem 1.2rem;
    border: 1px solid rgba(13, 18, 32, 0.07);
    background: rgba(248, 250, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 1.2rem 2.5rem rgba(28, 42, 74, 0.08);
  }

  .section-heading,
  .section-stats .section-heading {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
    max-width: 12ch;
  }

  .section-stats {
    gap: 1.5rem;
    text-align: left;
    color: var(--text-on-light);
  }

  .section-stats .section-label {
    color: rgba(13, 18, 32, 0.48);
  }

  .stats-grid {
    width: 100%;
    gap: 1.25rem;
  }

  .stat {
    padding: 0.9rem 0 0;
    border-top-color: rgba(13, 18, 32, 0.12);
  }

  .stat-number {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  .stat-suffix {
    font-size: 1rem;
  }

  .section-cta .section-inner {
    padding: 1.35rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cta-button,
  .cta-secondary {
    width: 100%;
    min-height: 3.25rem;
    padding-inline: 1rem;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .site-header {
    padding-inline: 0.75rem;
  }

  .site-nav {
    gap: 0.4rem;
  }

  .site-nav a,
  .brand-block {
    padding: 0.42rem 0.62rem;
  }

  .hero-standalone {
    padding-inline: 0.75rem;
  }

  .scroll-section,
  .align-left,
  .align-right {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .section-inner,
  .section-stats,
  .section-cta .section-inner {
    padding: 1rem 0.9rem 1.05rem;
  }

  .hero-heading {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .marquee-wrap--top {
    inset: auto 0 14vh 0;
  }
}
