@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

@font-face {
  font-family: "FFF Acid Grotesk";
  src: url("/assets/fonts/acid-grotesk-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "FFF Acid Grotesk";
  src: url("/assets/fonts/acid-grotesk-extrabold.otf") format("opentype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --cl-cyan: #22d3ee;
  --cl-blue: #3b82f6;
  --cl-warm: #ff6b35;
  --cl-ink: #05070a;
  --cl-body-font: "Inter", Arial, sans-serif;
  --cl-display-font: "FFF Acid Grotesk", "Inter", Arial, sans-serif;
  --cl-scroll: 0;
  --cl-drift: 0px;
}

html {
  background: var(--cl-ink);
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  font-family: var(--cl-body-font);
  background-color: var(--cl-ink);
}

.font-sans {
  font-family: var(--cl-body-font) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 *,
h2 *,
h3 *,
h4 *,
h5 *,
h6 * {
  font-family: var(--cl-display-font) !important;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  content: "";
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

::selection {
  color: #041013;
  background: rgba(34, 211, 238, 0.9);
}

.cl-scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.035);
}

.cl-scroll-progress__bar {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cl-cyan), var(--cl-blue) 68%, var(--cl-warm));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.7);
  will-change: transform;
}

header {
  border-bottom-color: rgba(63, 63, 70, 0.56) !important;
  background: rgba(5, 7, 10, 0.78) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025), 0 18px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px) saturate(135%);
}

header::after {
  position: absolute;
  right: 8%;
  bottom: -1px;
  width: clamp(80px, 15vw, 220px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent);
}

section {
  position: relative;
  isolation: isolate;
}

section[data-cl-section] > [class*="max-w-"] {
  position: relative;
  z-index: 2;
}

section[data-cl-section="0"] {
  background-image:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.085), transparent 34%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.04), rgba(5, 7, 10, 0.92));
}

section[data-cl-section="2"],
section[data-cl-section="4"],
section[data-cl-section="7"] {
  background-image: linear-gradient(180deg, rgba(10, 13, 18, 0.18), rgba(5, 7, 10, 0) 22%, rgba(10, 13, 18, 0.22));
}

.cl-hero-grid {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: min(760px, 70%);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(620px) rotateX(61deg) translateY(calc(-280px + var(--cl-drift)));
  transform-origin: 50% 0;
  will-change: transform;
}

.cl-hero-orbit,
.cl-section-orbit {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.cl-hero-orbit {
  top: 124px;
  left: 50%;
  border: 1px solid rgba(34, 211, 238, 0.2);
  transform: translateX(-50%) rotate(calc(var(--cl-scroll) * 42deg));
  box-shadow:
    0 0 65px rgba(34, 211, 238, 0.05),
    inset 0 0 65px rgba(34, 211, 238, 0.035);
  transition: transform 120ms linear;
}

.cl-hero-orbit::before,
.cl-hero-orbit::after,
.cl-section-orbit::before {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.cl-hero-orbit::before {
  inset: 10%;
  border: 1px dashed rgba(59, 130, 246, 0.19);
}

.cl-hero-orbit::after {
  top: 13%;
  right: 7%;
  width: 7px;
  height: 7px;
  background: var(--cl-warm);
  box-shadow: 0 0 18px rgba(255, 107, 53, 0.9);
}

.cl-hero-orbit--outer {
  width: min(920px, 82vw);
  aspect-ratio: 1;
}

.cl-hero-orbit--inner {
  top: 195px;
  width: min(690px, 66vw);
  aspect-ratio: 1;
  border-color: rgba(255, 107, 53, 0.14);
  transform: translateX(-50%) rotate(calc(var(--cl-scroll) * -58deg));
}

.cl-hero-playhead {
  position: absolute;
  z-index: 0;
  top: 90px;
  left: 6%;
  width: 1px;
  height: 270px;
  pointer-events: none;
  opacity: 0.6;
  background: linear-gradient(to bottom, transparent, rgba(255, 107, 53, 0.78), transparent);
  transform: translateX(calc(var(--cl-scroll) * 28vw));
  will-change: transform;
}

.cl-hero-playhead::before,
.cl-hero-playhead::after {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 107, 53, 0.9);
  content: "";
  transform: rotate(45deg);
}

.cl-hero-playhead::before {
  top: 34px;
}

.cl-hero-playhead::after {
  bottom: 34px;
}

.cl-section-orbit {
  top: clamp(80px, 10vw, 155px);
  right: clamp(-150px, -8vw, -72px);
  width: clamp(210px, 21vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(34, 211, 238, 0.08);
  opacity: 0.72;
  transform: rotate(calc(var(--cl-scroll) * 130deg));
}

.cl-section-orbit::before {
  inset: 19%;
  border: 1px dashed rgba(255, 107, 53, 0.11);
}

.cl-section-rail {
  position: absolute;
  z-index: 0;
  top: 18%;
  left: max(18px, calc((100vw - 1240px) / 2 - 34px));
  width: 1px;
  height: 64%;
  pointer-events: none;
  opacity: 0.42;
  background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.35), transparent);
}

.cl-section-rail::before,
.cl-section-rail::after {
  position: absolute;
  left: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(34, 211, 238, 0.7);
  content: "";
  transform: rotate(45deg);
}

.cl-section-rail::before {
  top: 29%;
}

.cl-section-rail::after {
  bottom: 18%;
  border-color: rgba(255, 107, 53, 0.65);
}

.cl-reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--cl-delay, 0ms),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--cl-delay, 0ms),
    filter 700ms ease var(--cl-delay, 0ms);
}

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

.cl-interactive-surface {
  --cl-pointer-x: 50%;
  --cl-pointer-y: 50%;
  --cl-rotate-x: 0deg;
  --cl-rotate-y: 0deg;
  position: relative;
  transform: perspective(1100px) rotateX(var(--cl-rotate-x)) rotateY(var(--cl-rotate-y)) translateY(0);
  transform-style: preserve-3d;
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    box-shadow 300ms ease;
  will-change: transform;
}

.cl-interactive-surface::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  content: "";
  opacity: 0;
  background: radial-gradient(360px circle at var(--cl-pointer-x) var(--cl-pointer-y), rgba(255, 255, 255, 0.075), transparent 46%);
  transition: opacity 260ms ease;
}

.cl-interactive-surface:hover {
  border-color: rgba(34, 211, 238, 0.3) !important;
  box-shadow:
    0 24px 65px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(34, 211, 238, 0.055),
    0 0 42px rgba(34, 211, 238, 0.055);
}

.cl-interactive-surface:hover::after {
  opacity: 1;
}

#hero-primary-cta,
#header-cta,
#final-footer-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.16);
}

#hero-primary-cta::after,
#header-cta::after,
#final-footer-cta::after {
  position: absolute;
  z-index: -1;
  top: -120%;
  left: -35%;
  width: 24%;
  height: 340%;
  content: "";
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(19deg) translateX(-260%);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

#hero-primary-cta:hover::after,
#header-cta:hover::after,
#final-footer-cta:hover::after {
  transform: rotate(19deg) translateX(710%);
}

#hero-secondary-cta {
  transition: border-color 240ms ease, background-color 240ms ease, transform 240ms ease;
}

#hero-secondary-cta:hover {
  border-color: rgba(255, 107, 53, 0.42) !important;
  background: rgba(255, 107, 53, 0.055) !important;
  transform: translateY(-2px);
}

section[data-cl-section="1"]::after {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 18%;
  pointer-events: none;
  content: "";
  opacity: 0.36;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
  animation: cl-scan 7s ease-in-out infinite;
}

section[data-cl-section="8"] button {
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

section[data-cl-section="8"] button:hover {
  color: #fff;
  background: rgba(34, 211, 238, 0.025);
  transform: translateX(3px);
}

#checkout-section .creator-lab-embed-host,
#checkout-section .creator-lab-embed-host *,
#checkout-section iframe {
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

@keyframes cl-scan {
  0%,
  15% {
    transform: translateX(-120%);
  }
  68%,
  100% {
    transform: translateX(670%);
  }
}

@media (max-width: 900px) {
  .cl-hero-grid {
    opacity: 0.24;
    background-size: 48px 48px;
  }

  .cl-hero-orbit--outer {
    width: 116vw;
  }

  .cl-hero-orbit--inner {
    width: 88vw;
  }

  .cl-section-orbit {
    right: -128px;
    opacity: 0.42;
  }

  .cl-section-rail {
    left: 13px;
    opacity: 0.25;
  }
}

@media (max-width: 640px) {
  body::before {
    opacity: 0.018;
  }

  .cl-hero-grid {
    height: 540px;
    transform: perspective(520px) rotateX(64deg) translateY(calc(-230px + var(--cl-drift)));
  }

  .cl-hero-orbit {
    top: 130px;
  }

  .cl-hero-orbit--inner {
    top: 185px;
  }

  .cl-hero-playhead,
  .cl-section-rail {
    display: none;
  }

  .cl-section-orbit {
    width: 210px;
    right: -150px;
  }

  .cl-interactive-surface {
    transform: none !important;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cl-reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .cl-hero-grid,
  .cl-hero-orbit,
  .cl-section-orbit,
  .cl-hero-playhead {
    transform: none;
  }
}
