:root {
  --bg-0: #030608;
  --bg-1: #09121a;
  --bg-2: #10202d;
  --surface: rgba(11, 18, 25, 0.78);
  --surface-strong: rgba(7, 13, 19, 0.9);
  --stroke: rgba(163, 198, 222, 0.22);
  --text: #edf4f8;
  --muted: #9caab6;
  --accent: #93ebff;
  --hero-progress: 0;
  --hero-visible-reveal: 1;
  --hero-rotation-offset: 0deg;
  --hero-scroll-rotation: 14deg;
  --wheel-center-x: 0.65%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", "Avenir Next", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(74, 148, 188, 0.34), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(23, 54, 77, 0.56), transparent 40%),
    linear-gradient(165deg, var(--bg-0), var(--bg-1) 44%, #04090d 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.17;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.01) 0,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 6px
    );
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  padding: 0.6rem clamp(0.9rem, 2.8vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(174, 209, 232, 0.15);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: rgba(4, 9, 14, 0.52);
  backdrop-filter: blur(18px);
  z-index: 30;
}

.brand img {
  display: block;
  height: 38px;
  width: auto;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(237, 244, 248, 0.9);
  transform-origin: center;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav a {
  position: relative;
  padding-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a.is-active,
.nav a[aria-current="true"] {
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--accent);
}

.nav a.is-active::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 29;
  padding: 0.85rem 0.9rem 1rem;
  border-bottom: 1px solid rgba(174, 209, 232, 0.12);
  background: rgba(4, 9, 14, 0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

body.menu-open .mobile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav {
  display: grid;
  gap: 0.5rem;
}

.mobile-nav a {
  position: relative;
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(174, 216, 240, 0.1);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a.is-active,
.mobile-nav a[aria-current="true"] {
  color: var(--accent);
  box-shadow: inset 0 -1px 0 var(--accent);
}

.mobile-nav a.is-active::after,
.mobile-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

main {
  position: relative;
  z-index: 1;
}

.panel[id],
.hero-track[id] {
  scroll-margin-top: 84px;
}

.hero-track {
  height: 250vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-gradient {
  position: absolute;
  inset: -8vh -10vw;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 70%, rgba(146, 208, 246, 0.2), transparent 42%),
    radial-gradient(circle at 50% 12%, rgba(14, 44, 66, 0.78), transparent 65%);
  transform: translateY(calc(var(--hero-progress) * 5vh))
    scale(calc(1 + var(--hero-progress) * 0.08));
  transition: transform 0.14s linear;
}

.wheel-stage {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.wheel-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  clip-path: inset(0 0 calc((1 - var(--hero-visible-reveal)) * 50%) 0);
  opacity: calc(0.98 - var(--hero-progress) * 0.3);
  will-change: clip-path, opacity;
}

.wheel-frame {
  display: grid;
  place-items: center;
  transform: translate3d(
      var(--wheel-center-x),
      calc(41.8vh - var(--hero-progress) * 54.8vh),
      0
    )
    scale(calc(1.04 - var(--hero-progress) * 0.58));
  filter:
    saturate(calc(1 + var(--hero-progress) * 0.3))
    contrast(calc(0.97 + var(--hero-progress) * 0.15));
  will-change: transform, filter;
}

.wheel-rotor {
  display: grid;
  place-items: center;
  transform: rotate(
    calc(
      var(--hero-rotation-offset) +
        var(--hero-progress) * var(--hero-scroll-rotation)
    )
  );
  transform-origin: 50% 50%;
  will-change: transform;
}

.wheel-image {
  display: block;
  width: clamp(980px, 168vw, 1840px);
  max-width: none;
}

.hero-copy {
  position: absolute;
  left: clamp(1.4rem, 8vw, 8rem);
  top: clamp(6.2rem, 12vh, 10rem);
  max-width: min(620px, calc(100vw - 2.8rem));
  z-index: 4;
  opacity: 1;
  transform: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(210, 232, 245, 0.76);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", "Plus Jakarta Sans", sans-serif;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 1.2rem 0 0;
  color: rgba(226, 236, 243, 0.9);
  line-height: 1.65;
}

.hero-tagline {
  margin: 0.7rem 0 0;
  font-size: clamp(0.88rem, 1.55vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(195, 221, 238, 0.84);
}

.cta-link {
  display: inline-flex;
  margin-top: 1.4rem;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
}

.cta-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.cta-link:hover::after {
  transform: translateX(4px);
}

@keyframes scrollHintPulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(205, 222, 233, 0.66);
  z-index: 4;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.18s linear;
}

.panel {
  position: relative;
  padding: 0 1.25rem;
  z-index: 5;
}

.intro-panel {
  margin-top: -20vh;
}

.panel + .panel {
  margin-top: 1.2rem;
}

.panel-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(1.3rem, 4.2vw, 3rem);
  border-radius: 0;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(145deg, rgba(16, 27, 37, 0.84), rgba(9, 16, 23, 0.84));
  backdrop-filter: blur(15px);
  box-shadow:
    0 26px 66px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.section-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(195, 221, 238, 0.75);
}

h2 {
  margin-top: 0.75rem;
  max-width: 16ch;
  font-size: clamp(1.7rem, 4.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.panel p {
  color: rgba(210, 224, 233, 0.86);
  line-height: 1.68;
}

.feature-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid article {
  padding: 1rem;
  border-radius: 0;
  border: 1px solid rgba(174, 216, 240, 0.16);
  background: rgba(7, 13, 20, 0.63);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.feature-grid h3 {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.2;
}

.feature-grid p {
  margin: 0.7rem 0 0;
  font-size: 0.97rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 4rem);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 0;
  border: 1px solid rgba(174, 216, 240, 0.16);
  background: rgba(6, 12, 18, 0.62);
}

.process-list span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.cta-panel {
  min-height: calc(100vh - 84px);
  padding-bottom: clamp(6rem, 18vh, 12rem);
  display: flex;
  align-items: flex-start;
}

.cta-shell {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(129, 208, 236, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(16, 27, 37, 0.86), rgba(6, 13, 18, 0.9));
}

.cta-shell h2 {
  margin-inline: auto;
}

.cta-shell p {
  max-width: 64ch;
  margin-inline: auto;
}

.cta-button {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0;
  border: 1px solid rgba(179, 228, 249, 0.5);
  background: linear-gradient(
    130deg,
    rgba(120, 200, 232, 0.28),
    rgba(67, 140, 173, 0.3)
  );
  color: #ebf8ff;
  text-decoration: none;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .feature-grid article {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .feature-grid article:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal.is-visible .feature-grid article:nth-child(3) {
  transition-delay: 0.16s;
}

@media (max-width: 980px) {
  :root {
    --hero-scroll-rotation: 12deg;
  }

  .topbar {
    padding-inline: 0.9rem;
  }

  .hero-track {
    height: 235vh;
  }

  .wheel-frame {
    transform: translate3d(
        var(--wheel-center-x),
        calc(38.8vh - var(--hero-progress) * 51vh),
        0
      )
      scale(calc(1.03 - var(--hero-progress) * 0.56));
  }

  .wheel-image {
    width: clamp(920px, 212vw, 1480px);
  }

  .intro-panel {
    margin-top: -14vh;
  }

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

@media (max-width: 700px) {
  :root {
    --hero-scroll-rotation: 10deg;
    --hero-mobile-extra: clamp(16rem, 34svh, 22rem);
    --hero-mobile-overlap: clamp(11rem, 26svh, 16rem);
    --hero-mobile-copy-top: clamp(4.9rem, 8.5svh, 6rem);
    --hero-mobile-wheel-y: clamp(11rem, 27svh, 15rem);
    --hero-mobile-wheel-travel: clamp(15rem, 39svh, 22rem);
    --hero-mobile-scroll-hint-offset: clamp(3.3rem, 8svh, 4.8rem);
  }

  .hero-track {
    height: calc(100svh + var(--hero-mobile-extra));
    min-height: calc(100svh + var(--hero-mobile-extra));
  }

  .hero-sticky {
    height: 100svh;
    min-height: 100svh;
  }

  .topbar {
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

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

  .brand img {
    height: 30px;
  }

  .hero-copy {
    top: var(--hero-mobile-copy-top);
    max-width: min(320px, calc(100vw - 2.2rem));
  }

  .hero-copy p {
    margin-top: 0.9rem;
    font-size: 0.95rem;
  }

  .panel-shell h2 {
    margin-top: 0.35rem;
  }

  .intro-panel {
    margin-top: calc(-1 * var(--hero-mobile-overlap));
  }

  .scroll-hint {
    bottom: calc(
      env(safe-area-inset-bottom, 0px) + var(--hero-mobile-scroll-hint-offset)
    );
    animation: scrollHintPulse 1.8s ease-in-out infinite;
  }

  .scroll-hint::after {
    content: " / Swipe";
  }

  .wheel-frame {
    transform: translate3d(
        calc(-1.6%),
        calc(
          var(--hero-mobile-wheel-y) -
            var(--hero-progress) * var(--hero-mobile-wheel-travel)
        ),
        0
      )
      scale(calc(0.99 - var(--hero-progress) * 0.53));
  }

  .wheel-image {
    width: clamp(700px, 210vw, 860px);
  }

  .panel {
    padding-inline: 0.8rem;
  }

  .panel + .panel {
    margin-top: 0.55rem;
  }

  .panel-shell {
    padding: 0.9rem 0.85rem 1rem;
  }

  .feature-grid {
    margin-top: 0.95rem;
    gap: 0.6rem;
  }

  .split {
    gap: 0.8rem;
  }

  .process-list {
    gap: 0.55rem;
  }

  .process-list li {
    padding: 0.72rem 0.78rem;
  }

  .cta-panel {
    min-height: auto;
    padding-bottom: clamp(2.75rem, 6vh, 4rem);
  }
}

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

  .scroll-hint {
    animation: none;
  }
}
