:root {
  --bg: #000;
  --white: #f5f5f7;
  --gray: #86868b;
  --dim: #48484a;
  --blue: #2997ff;
  --purple: #a855f7;
  --font: "Outfit", -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}
::selection {
  background: rgba(41, 151, 255, 0.3);
}

/* ── Cursor ── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: -4px;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  position: absolute;
  top: -18px;
  left: -18px;
  transition:
    width 0.35s var(--expo),
    height 0.35s var(--expo),
    top 0.35s var(--expo),
    left 0.35s var(--expo),
    border-color 0.3s,
    background 0.3s;
}
.cursor.pointer .cursor-ring {
  width: 56px;
  height: 56px;
  top: -28px;
  left: -28px;
  border-color: rgba(41, 151, 255, 0.5);
  background: rgba(41, 151, 255, 0.08);
}

/* ── Grain ── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.4s steps(3) infinite;
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0);
  }
  33% {
    transform: translate(-3%, -3%);
  }
  66% {
    transform: translate(3%, 2%);
  }
}

/* ── Progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--white);
  z-index: 10001;
}

/* ── Loader ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
#loader-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.loader-logo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-ring {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
}
.loader-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.5;
}
.loader-ring-fill {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-dasharray: 289.03;
  stroke-dashoffset: 289.03;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.1s linear;
}
.loader-logo {
  width: 42px;
  height: 52px;
  position: relative;
  z-index: 2;
}
.loader-logo-leaf,
.loader-logo-body {
  stroke: var(--white);
  stroke-width: 0.3;
  fill: none;
}
.loader-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  filter: blur(20px);
  pointer-events: none;
}
.loader-text-wrap {
  overflow: hidden;
  height: 2rem;
}
.loader-text {
  display: block;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray);
  transform: translateY(110%);
  opacity: 0;
}
.loader-flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform 0.6s var(--expo),
    opacity 0.6s;
}
.site-header.visible {
  transform: translateY(0);
  opacity: 1;
}
.site-header.hide-nav {
  transform: translateY(-100%);
}
.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  color: var(--white);
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.nav-logo:hover {
  opacity: 1;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gray);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.4s var(--expo);
}
.nav-link:hover {
  color: var(--white);
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  overflow: hidden;
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
}
.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--dim);
}
.hero-eyebrow-text {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Title */
.hero-title {
  margin-bottom: 1rem;
}
.hero-title .mask {
  display: block;
  overflow: hidden;
  line-height: 1;
}
.hero-title .mask-inner {
  display: block;
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  transform: translateY(105%);
  will-change: transform;
}
.hero-serif {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-style: italic;
  letter-spacing: -0.02em !important;
  font-size: clamp(5.5rem, 15vw, 13rem) !important;
}

/* Sub */
.hero-sub {
  margin-bottom: 2.5rem;
}
.hero-sub .mask {
  display: block;
  overflow: hidden;
}
.hero-sub .mask-inner {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--gray);
  transform: translateY(105%);
  will-change: transform;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: 980px;
  overflow: hidden;
  z-index: 1;
}
.hero-btn-bg {
  position: absolute;
  inset: 0;
  background: var(--blue);
  border-radius: 980px;
  z-index: -1;
  transition: transform 0.4s var(--expo);
}
.hero-btn:hover .hero-btn-bg {
  transform: scale(1.08);
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  transition: gap 0.4s var(--expo);
}
.hero-link:hover {
  gap: 0.75rem;
}

/* Scroll Cue */
.scroll-cue {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}
.scroll-cue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray);
  animation: cuePulse 2s ease-in-out infinite;
}
@keyframes cuePulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scale(1) translateY(12px);
  }
}

/* Hero Rings (ambient decoration) */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.hero-ring-1 {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringFloat 8s ease-in-out infinite;
}
.hero-ring-2 {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringFloat 10s ease-in-out infinite reverse;
}
.hero-ring-3 {
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringFloat 12s ease-in-out infinite;
}
@keyframes ringFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 1;
  }
}

/* ── Ambient Glow ── */
.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vh;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(41, 151, 255, 0.06) 0%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  filter: blur(60px);
}

/* ── Canvas ── */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
}
#canvas {
  max-width: 100%;
  max-height: 100%;
}

/* ── Overlay ── */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
}

/* ── Marquee ── */
.marquee-wrap {
  position: fixed;
  bottom: 4vh;
  left: 0;
  width: 100%;
  z-index: 4;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.marquee-text {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  white-space: nowrap;
  will-change: transform;
}
.marquee-text span {
  font-size: clamp(3.5rem, 9vw, 9vw);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  color: transparent;
}
.mq-sep {
  font-size: clamp(2rem, 4vw, 4vw) !important;
  -webkit-text-stroke: 0 !important;
  color: rgba(255, 255, 255, 0.08) !important;
  font-weight: 300 !important;
}

/* ── Scroll Container ── */
#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 5;
}

/* ── Sections ── */
.content-section {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 100%;
  padding: 0 clamp(2rem, 6vw, 8rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.content-section.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.content-section.align-left .section-inner {
  max-width: 520px;
}
.content-section.align-right {
  display: flex;
  justify-content: flex-end;
}
.content-section.align-right .section-inner {
  max-width: 520px;
}
.content-section.align-center {
  display: flex;
  justify-content: center;
}
.content-section.align-center .section-inner {
  max-width: 1000px;
  width: 100%;
}

/* Label */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.label-line {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--blue);
}

/* Heading */
.section-heading {
  margin-bottom: 1.25rem;
}
.section-heading .mask {
  display: block;
  overflow: hidden;
}
.section-heading .mask-inner {
  display: block;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-heading em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

/* Body */
.section-body {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  line-height: 1.7;
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 1.5rem;
  max-width: 420px;
}

/* Section CTA */
.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  transition: gap 0.4s var(--expo);
}
.section-cta svg {
  transition: transform 0.4s var(--expo);
}
.section-cta:hover {
  gap: 0.75rem;
}
.section-cta:hover svg {
  transform: translateX(3px);
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-title {
  margin-bottom: 1rem;
}
.cta-title .mask {
  display: block;
  overflow: hidden;
}
.cta-title .mask-inner {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.cta-serif {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-style: italic;
  letter-spacing: -0.01em !important;
  background: linear-gradient(135deg, var(--white), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-body {
  text-align: center;
  max-width: 340px;
}
.cta-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

/* Buttons */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 980px;
  overflow: hidden;
  transition:
    transform 0.4s var(--expo),
    box-shadow 0.4s var(--expo);
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 40px rgba(41, 151, 255, 0.3),
    0 0 80px rgba(41, 151, 255, 0.1);
}
.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s var(--expo);
}
.btn-primary:hover .btn-glow {
  left: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  transition: gap 0.4s var(--expo);
}
.btn-ghost svg {
  transition: transform 0.4s var(--expo);
}
.btn-ghost:hover {
  gap: 0.75rem;
}
.btn-ghost:hover svg {
  transform: translateX(3px);
}

/* ── Stats ── */
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  text-align: center;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}
.stat-num {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--white), var(--gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-unit {
  font-size: clamp(0.75rem, 1vw, 1rem);
  font-weight: 400;
  color: var(--gray);
}
.stat-label {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.stat-bar {
  width: 100%;
  max-width: 90px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 0.15rem;
}
.stat-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--blue);
  border-radius: 1px;
  transition: width 1.5s var(--expo);
}
.stat-sep {
  width: 1px;
  height: 70px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(3rem, 5vw, 4rem) clamp(2rem, 6vw, 8rem);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--dim);
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-socials {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.footer-socials a {
  color: var(--dim);
  transition:
    color 0.3s,
    transform 0.3s var(--expo);
  display: flex;
  align-items: center;
}
.footer-socials a:hover {
  color: var(--white);
  transform: translateY(-2px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-bottom p {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--dim);
}
.footer-craft {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.75rem !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body,
  a {
    cursor: auto;
  }
  .cursor {
    display: none;
  }
  .nav-links {
    display: none;
  }
  #scroll-container {
    height: 600vh;
  }
  .content-section {
    padding: 0 1.5rem;
  }
  .content-section.align-right {
    justify-content: flex-start;
  }
  .content-section.align-center .section-inner {
    max-width: 100%;
  }
  .stats-grid {
    flex-wrap: wrap;
    gap: 2rem 1rem;
  }
  .stat-sep {
    display: none;
  }
  .stat-item {
    flex: 0 0 calc(50% - 0.5rem);
  }
  .section-body {
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .cta-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-ring {
    display: none;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title .mask-inner {
    font-size: 4rem;
  }
  .hero-serif {
    font-size: 4.5rem !important;
  }
  .section-heading .mask-inner {
    font-size: 1.75rem;
  }
  .cta-title .mask-inner {
    font-size: 2.5rem;
  }
}
