@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #060606;
  --bg2: #0c0c0c;
  --bg3: #111111;
  --bg4: #161616;
  --border: rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.12);
  --text: #ede9fe;
  --muted: rgba(237,233,254,0.4);
  --muted2: rgba(237,233,254,0.18);
  --purple: oklch(0.68 0.28 290);
  --mint: oklch(0.72 0.18 160);
  --coral: oklch(0.68 0.22 28);
  --purple-glow: oklch(0.68 0.28 290 / 0.25);
  --mint-glow: oklch(0.72 0.18 160 / 0.2);
  --font-display: 'Bebas Neue', sans-serif;
  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--purple), var(--mint), var(--coral));
  z-index: 10002; pointer-events: none;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px var(--purple-glow);
}

/* ── GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.32;
  mix-blend-mode: overlay;
  animation: grainShift 0.12s steps(1) infinite;
}
@keyframes grainShift {
  0%  { background-position: 0 0 }
  20% { background-position: -30px 20px }
  40% { background-position: 10px -15px }
  60% { background-position: -20px 10px }
  80% { background-position: 30px -5px }
  100%{ background-position: 5px 25px }
}

/* ── CUSTOM CURSOR ── */
#cursor-dot {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple); pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, transform 0.15s ease;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid oklch(0.68 0.28 290 / 0.55);
  pointer-events: none; z-index: 9997;
  transform: translate(-50%,-50%);
  transition: width 0.35s ease, height 0.35s ease, border-color 0.3s ease, opacity 0.3s ease;
}
#cursor-label {
  position: fixed; pointer-events: none; z-index: 9999;
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translate(-50%,-50%) scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
body.cursor-hover #cursor-dot { width: 10px; height: 10px; background: var(--mint); }
body.cursor-hover #cursor-ring { width: 60px; height: 60px; border-color: oklch(0.72 0.18 160 / 0.45); }
body.cursor-text #cursor-dot { width: 4px; height: 4px; }
body.cursor-text #cursor-ring { width: 28px; height: 28px; }
body.cursor-view #cursor-dot { width: 0; height: 0; opacity: 0; }
body.cursor-view #cursor-ring {
  width: 80px; height: 80px;
  background: oklch(0.68 0.28 290 / 0.15); border: none;
}
body.cursor-view #cursor-label { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ── PARTICLE CANVAS ── */
#particle-canvas {
  position: fixed; inset: 0; z-index: 9996; pointer-events: none;
}

/* ── PAGE TRANSITION ── */
#page-transition {
  position: fixed; inset: 0; z-index: 10001; pointer-events: none;
  display: flex; overflow: hidden;
}
.pt-bar {
  flex: 1; background: var(--purple); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.76,0,0.24,1);
}
.pt-bar:nth-child(2) { transition-delay: 0.05s; background: oklch(0.62 0.28 290); }
.pt-bar:nth-child(3) { transition-delay: 0.1s; background: oklch(0.55 0.28 290); }
#page-transition.enter .pt-bar { transform: scaleY(1); }
#page-transition.exit .pt-bar { transform: scaleY(0); transform-origin: top; }

/* ══════════════════════════════════════════
   PAGE LOADER
══════════════════════════════════════════ */
#page-loader {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
#page-loader.gone { display: none; }

/* Curtain panels */
.loader-panel-top,
.loader-panel-bottom {
  position: absolute; left: 0; right: 0; height: 50%;
  background: var(--bg); z-index: 1;
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader-panel-top { top: 0; transform-origin: top; }
.loader-panel-bottom { bottom: 0; transform-origin: bottom; }
#page-loader.exit .loader-panel-top  { transform: translateY(-100%); }
#page-loader.exit .loader-panel-bottom { transform: translateY(100%); }

/* Center content */
.loader-center {
  position: relative; z-index: 2; text-align: center;
  transition: opacity 0.35s ease;
}
#page-loader.exit .loader-center { opacity: 0; }

/* Letter row */
.loader-letters {
  display: flex; justify-content: center; align-items: baseline;
  line-height: 1; gap: 2px;
  overflow: hidden;
}

.loader-letter {
  font-family: var(--font-display);
  font-size: clamp(70px, 12vw, 138px);
  letter-spacing: 10px;
  color: var(--text);
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: loaderLetterIn 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.loader-letter.purple { color: var(--purple); }

/* Glitch shimmer on D */
.loader-letter.glitch {
  animation:
    loaderLetterIn 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    loaderGlitch 0.18s 0.85s steps(2, end) 4;
}

@keyframes loaderLetterIn {
  from { opacity: 0; transform: translateY(110%) skewY(6deg); }
  to   { opacity: 1; transform: translateY(0)    skewY(0deg); }
}

@keyframes loaderGlitch {
  0%   { text-shadow:  2px 0 var(--purple), -2px 0 var(--mint);  transform: translateX( 0); }
  50%  { text-shadow: -4px 0 var(--purple),  4px 0 var(--mint);  transform: translateX(3px); }
  100% { text-shadow: none; transform: translateX(0); }
}

/* Underline bar */
.loader-bar-wrap {
  width: 100%; max-width: 440px;
  height: 2px;
  background: var(--border2);
  border-radius: 2px;
  margin: 14px auto 0;
  overflow: hidden;
  position: relative;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--purple), var(--mint));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--purple-glow);
  animation: loaderBarFill 1.5s 0.45s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes loaderBarFill { to { width: 100%; } }

/* Tagline + counter */
.loader-sub {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--muted); margin-top: 16px;
  opacity: 0;
  animation: loaderFadeUp 0.5s 0.9s ease forwards;
}
.loader-counter {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 3px; color: var(--purple);
  margin-top: 8px;
  opacity: 0;
  animation: loaderFadeUp 0.4s 0.65s ease forwards;
}
@keyframes loaderFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAV ── */
nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 64px;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.main-nav.scrolled {
  padding: 14px 64px;
  background: rgba(6,6,6,0.88);
  border-color: var(--border);
  backdrop-filter: blur(28px) saturate(1.5);
}
.nav-logo {
  font-family: var(--font-display); font-size: 30px; letter-spacing: 2px;
  color: var(--text); text-decoration: none; line-height: 1;
  flex-shrink: 0;
}
.nav-logo em { color: var(--purple); font-style: normal; }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--muted); text-decoration: none; letter-spacing: 0.3px;
  transition: color 0.2s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--purple); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.76,0,0.24,1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--text); }
.nav-cta-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  color: #fff; text-decoration: none; padding: 12px 26px;
  background: var(--purple); border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px var(--purple-glow); letter-spacing: 0.3px;
}
.nav-cta-btn:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 32px var(--purple-glow); }

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none; background: none; border: 1px solid var(--border2);
  color: var(--text); padding: 9px 13px; border-radius: 6px; cursor: none;
  font-size: 18px; line-height: 1; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.nav-mobile-toggle:hover { border-color: var(--purple); }

/* Mobile nav overlay */
#mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 490;
  background: rgba(6,6,6,0.98);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
#mobile-nav-overlay.open { opacity: 1; pointer-events: all; }
.mobile-nav-links { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-links a {
  font-family: var(--font-display); font-size: clamp(36px, 10vw, 60px);
  letter-spacing: 4px; color: var(--muted); text-decoration: none;
  display: block; padding: 8px 0;
  transition: color 0.2s, letter-spacing 0.3s;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--text); letter-spacing: 6px; }
.mobile-nav-links a.active em { color: var(--purple); font-style: normal; }
.mobile-nav-cta {
  margin-top: 40px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: #fff; text-decoration: none; padding: 14px 32px;
  background: var(--purple); border-radius: 8px;
  box-shadow: 0 0 28px var(--purple-glow);
}
.mobile-nav-close {
  position: absolute; top: 28px; right: 28px;
  background: none; border: 1px solid var(--border2); color: var(--text);
  width: 44px; height: 44px; border-radius: 50%; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: border-color 0.2s;
}
.mobile-nav-close:hover { border-color: var(--purple); color: var(--purple); }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg2); }
.footer-main {
  max-width: 1280px; margin: 0 auto; padding: 80px 64px 60px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 64px;
}
.footer-brand-logo {
  font-family: var(--font-display); font-size: 40px; letter-spacing: 3px;
  color: var(--text); margin-bottom: 16px; display: block;
}
.footer-brand-logo em { color: var(--purple); font-style: normal; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 280px; margin-bottom: 28px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.footer-social:hover {
  border-color: var(--purple); color: var(--purple);
  background: oklch(0.68 0.28 290 / 0.08); transform: translateY(-2px);
}
.footer-col h5 {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); margin-bottom: 24px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { color: var(--text); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border); max-width: 1280px; margin: 0 auto;
  padding: 24px 64px; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }

/* ── CONTAINER ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 64px; }

/* ── SECTION TAGS ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--purple); margin-bottom: 24px;
}
.section-tag::before { content: ''; width: 20px; height: 1px; background: var(--purple); }
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(38px, 4.5vw, 62px); line-height: 1.06;
  letter-spacing: -1.5px; margin-bottom: 20px;
}
.section-title em { color: var(--purple); font-style: normal; }
.section-sub { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 500px; }

/* ── SPLIT TEXT ── */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-word-inner {
  display: inline-block; transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.split-word.visible .split-word-inner { transform: translateY(0); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal.left  { transform: translateX(-40px); }
.reveal.right { transform: translateX(40px); }
.reveal.scale { transform: scale(0.92); opacity: 0; }
.reveal.visible { opacity: 1; transform: translate(0) scale(1); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── MARQUEE ── */
.marquee-band {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 0; position: relative;
}
.marquee-band::before, .marquee-band::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.marquee-band::before { left: 0;  background: linear-gradient(90deg,  var(--bg) 0%, transparent 100%); }
.marquee-band::after  { right: 0; background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }
.marquee-inner { display: flex; gap: 0; width: max-content; }
.marquee-inner.fwd { animation: mqdFwd 32s linear infinite; }
.marquee-inner.rev { animation: mqdRev 26s linear infinite; }
.marquee-band:hover .marquee-inner { animation-play-state: paused; }
@keyframes mqdFwd { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes mqdRev { from{transform:translateX(-50%)} to{transform:translateX(0)} }
.mq-item {
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--muted); white-space: nowrap;
}
.mq-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
.mq-item.alt .mq-dot { background: var(--mint); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-decoration: none; padding: 16px 32px; border-radius: 8px;
  transition: all 0.3s ease; cursor: none;
  position: relative; overflow: hidden;
}
/* Ripple on click */
.btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255,255,255,0.1);
  transform: scale(0); opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.btn:active::after { transform: scale(2); opacity: 0; transition: none; }

.btn-purple {
  background: var(--purple); color: #fff;
  box-shadow: 0 0 32px var(--purple-glow);
}
.btn-purple:hover {
  opacity: 0.88; transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--purple-glow);
}
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border2);
}
.btn-ghost:hover {
  border-color: oklch(0.68 0.28 290 / 0.5);
  background: oklch(0.68 0.28 290 / 0.06);
}
.btn-outline-mint {
  background: transparent; color: var(--mint); border: 1px solid oklch(0.72 0.18 160 / 0.4);
}
.btn-outline-mint:hover { background: oklch(0.72 0.18 160 / 0.08); }

/* ── TILT CARD ── */
.tilt-card { transform-style: preserve-3d; transition: transform 0.1s ease; will-change: transform; }

/* ── SCAN EFFECT ── */
.scan-card { position: relative; overflow: hidden; }
.scan-card::before {
  content: ''; position: absolute; top: 0; left: -100%; right: 100%; bottom: 0; z-index: 2;
  background: linear-gradient(90deg, transparent, oklch(0.68 0.28 290 / 0.08) 50%, transparent);
  transition: left 0.6s ease, right 0.6s ease; pointer-events: none;
}
.scan-card:hover::before { left: 0; right: -100%; }

/* ── GLOW BORDER ── */
.glow-border { position: relative; }
.glow-border::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, var(--purple), var(--mint), var(--coral));
  opacity: 0; z-index: -1; transition: opacity 0.3s;
}
.glow-border:hover::after { opacity: 0.4; }

/* ── KEYBOARD FOCUS (accessibility) ── */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media(max-width:1024px) {
  .container { padding: 0 32px; }
  nav.main-nav, nav.main-nav.scrolled { padding: 16px 32px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 32px 40px; }
  .footer-bottom { padding: 20px 32px; }
}
@media(max-width:768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta-btn { display: none; }
  .nav-mobile-toggle { display: flex; }
  .footer-main { grid-template-columns: 1fr; padding: 48px 20px 32px; }
  .footer-bottom { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
}
