/* ═══════════════════════════════════════════════════════════
   BLACKBOX TOOLS - Dark-First Marketplace Design System
   Premium creative assets marketplace. Cinematic dark theme.
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts ── */
/* Fonts load via <link preconnect> in each page head (faster LCP than @import). */

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

/* ── Custom Properties - Dark First ── */
:root {
  --accent: #6366F1;
  --accent-dim: #4F46E5;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-glow-strong: rgba(99, 102, 241, 0.3);

  --cyan: #06B6D4;
  --green: #10B981;
  --green-dim: #059669;
  --amber: #F59E0B;
  --red: #EF4444;

  --bg-deep: #09090B;
  --bg-base: #0C0C0F;
  --bg-surface: #141419;
  --bg-card: #18181F;
  --bg-elevated: #1E1E26;
  --bg-hover: #252530;

  --bg-nav: rgba(12, 12, 15, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(99, 102, 241, 0.3);

  --text-primary: #F4F4F5;
  --text-secondary: #E4E4E7;
  --text-muted: #D4D4D8;
  --text-faint: #A1A1AA;

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast: 200ms;
  --duration-med: 400ms;
  --duration-slow: 700ms;

  --max-width: 1200px;
  --max-width-narrow: 800px;
}

/* ── Base ── */
html {
  font-size: 16px;
  /* Lenis handles smooth scrolling; native smooth-scroll fights it */
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* Global film grain - ties the entire page together like a graded frame */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
  animation: grainShift 0.5s steps(4) infinite;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 65ch;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

a:hover { color: var(--cyan); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: var(--max-width-narrow); }
.section { padding: 100px 0; }
.section--tight { padding: 80px 0; }

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}

.section__header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section__header p {
  margin-top: 8px;
}

/* ── Buttons - 2026 Tactile Design ── */
.btn {
  --btn-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --btn-press: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    transform 500ms var(--btn-spring),
    box-shadow 400ms var(--btn-spring),
    border-color 300ms ease,
    background 300ms ease,
    border-radius 500ms var(--btn-spring);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.btn:hover {
  border-radius: var(--radius-pill);
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 120ms;
}

/* ── Primary - Gradient sheen sweep ── */
.btn--primary {
  background: var(--accent);
  color: #FFF;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 0 0 1px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 55%,
    transparent 65%
  );
  transform: translateX(-110%);
  transition: transform 600ms var(--btn-spring);
  pointer-events: none;
  z-index: 1;
}

.btn--primary:hover {
  background: var(--accent-dim);
  color: #FFF;
  box-shadow:
    0 6px 24px var(--accent-glow-strong),
    0 0 0 1px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--primary:hover::after {
  transform: translateX(110%);
}

/* ── Secondary - Inner glow on hover ── */
.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.btn--secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: #FFF;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.3),
    inset 0 0 20px rgba(99, 102, 241, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Ghost ── */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}

.btn--ghost:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Green ── */
.btn--green {
  background: var(--green);
  color: #FFF;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn--green:hover {
  background: var(--green-dim);
  color: #FFF;
  box-shadow:
    0 6px 24px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ── Sizes ── */
.btn--sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.btn--lg { padding: 18px 36px; font-size: 16px; min-height: 52px; letter-spacing: 0.02em; }
.btn--block { width: 100%; }

/* ── Page Loader ── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deep);
  transition: opacity 0.5s;
}
.page-loader.loaded { opacity: 0; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   NAV - Marketplace Mega-Nav
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.nav__logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav__link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav__link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav__link--subtle {
  color: var(--text-muted);
}

/* Dropdown */
.nav__dropdown { position: relative; }

.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.nav__dropdown-trigger:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav__dropdown-trigger svg {
  transition: transform 0.2s;
}

.nav__dropdown.active .nav__dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease-out-expo);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nav__dropdown.active .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-item__icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.dropdown-item__title {
  font-weight: 600;
  font-size: 14px;
}

.dropdown-item__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dropdown-item__badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

/* Nav Search */
.nav__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav__search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.nav__search-input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  width: 180px;
}

.nav__search-input::placeholder {
  color: var(--text-faint);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Nav Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg-deep);
  z-index: 999;
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
}

.nav__mobile.active { display: flex; }

.nav__mobile a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════════════════════
   HERO - Cinematic Marketplace Hero
   ═══════════════════════════════════════════════════════════ */
.hero--marketplace {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 90%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    linear-gradient(155deg, #08081a 0%, #0c0c24 25%, #0a0e1c 50%, #090914 75%, #06060e 100%);
  background-size: 200% 200%;
  animation: heroGradientDrift 20s ease-in-out infinite;
}

@keyframes heroGradientDrift {
  0%, 100% { background-position: 0% 0%; }
  33% { background-position: 50% 30%; }
  66% { background-position: 20% 70%; }
}

/* Cinematic letterbox bars */
.hero--marketplace::before,
.hero--marketplace::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 5;
  pointer-events: none;
}
.hero--marketplace::before { top: 0; }
.hero--marketplace::after { bottom: 0; }

.hero__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
  filter: saturate(1.6) brightness(0.75) contrast(1.1);
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.5) 0%,
    rgba(9, 9, 11, 0.15) 35%,
    rgba(9, 9, 11, 0.3) 65%,
    rgba(9, 9, 11, 0.95) 100%
  );
  pointer-events: none;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 25s linear infinite;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 70%);
}

@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Primary top glow - warm indigo */
.hero__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 90%;
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(139, 92, 246, 0.1) 25%,
    rgba(6, 182, 212, 0.08) 45%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}

/* Anamorphic horizontal lens flare */
.hero__glow::before {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.0) 15%,
    rgba(139, 92, 246, 0.15) 30%,
    rgba(6, 182, 212, 0.25) 45%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(6, 182, 212, 0.25) 55%,
    rgba(139, 92, 246, 0.15) 70%,
    rgba(99, 102, 241, 0.0) 85%,
    transparent 100%
  );
  filter: blur(6px);
  animation: flareBreath 6s ease-in-out infinite;
}

/* Wider soft bloom behind the flare */
.hero__glow::after {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160%;
  height: 120px;
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.06) 0%,
    rgba(6, 182, 212, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

@keyframes flareBreath {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scaleX(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scaleX(1.08); }
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: grainShift 0.5s steps(4) infinite;
  mix-blend-mode: overlay;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-5%, -5%); }
  50%  { transform: translate(5%, 0); }
  75%  { transform: translate(-2%, 5%); }
  100% { transform: translate(0, 0); }
}

.hero__container {
  position: relative;
  z-index: 3;
}

.hero__content--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  text-shadow:
    0 0 60px rgba(99, 102, 241, 0.2),
    0 0 120px rgba(99, 102, 241, 0.08);
}

.hero__title--gradient {
  background: linear-gradient(135deg, #818CF8, var(--cyan), #C4B5FD, #67E8F9);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}

.hero__title--gradient .word-inner {
  background: linear-gradient(135deg, #818CF8, var(--cyan), #C4B5FD, #67E8F9);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__subtitle {
  font-size: 19px;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 36px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* Hero Search */
.hero__search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  padding: 6px 6px 6px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero__search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero__search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero__search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
}

.hero__search-input::placeholder {
  color: var(--text-faint);
}

.hero__search .btn {
  flex-shrink: 0;
}

/* Hero Tags */
.hero__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.hero__tags span {
  font-size: 13px;
  color: var(--text-faint);
}

.hero__tags a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.hero__tags a:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* Hero Stats */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 36px 56px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero__stat { text-align: center; }

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: #E0E7FF;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

/* ═══════════════════════════════════════════════════════════
   CATEGORIES
   ═══════════════════════════════════════════════════════════ */

/* Floating orb glow behind the category grid */
.section--tight#categories {
  position: relative;
  overflow: hidden;
}

.section--tight#categories::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 140%;
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.06) 0%,
    rgba(6, 182, 212, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.section--tight#categories > .container {
  position: relative;
  z-index: 1;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-primary);
  transition: all 0.3s var(--ease-out-expo);
}

.category-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  color: var(--text-primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.category-card--active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.08));
}

.category-card__icon {
  font-size: 32px;
}

.category-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}

.category-card__count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════════════ */

/* Section is #portfolio in markup; clip the decorative drift blob so it
   cannot bleed past the viewport and create horizontal scroll on mobile */
#portfolio {
  position: relative;
  overflow-x: clip;
}

/* Gradient mesh + grain on the products section */
#products {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    var(--bg-base);
}

/* Grain texture overlay matching the hero */
#products::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Scroll-driven video background */
.products__scroll-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  filter: saturate(1.4) brightness(0.4) contrast(1.1);
  transition: opacity 0.8s ease;
}

.products__scroll-video.active {
  opacity: 0.35;
}

.products__scroll-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.9) 0%,
    rgba(9, 9, 11, 0.3) 20%,
    rgba(9, 9, 11, 0.2) 50%,
    rgba(9, 9, 11, 0.3) 80%,
    rgba(9, 9, 11, 0.9) 100%
  );
  pointer-events: none;
}

/* Floating drift blob - slow-moving gradient behind cards */
.products__blob {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
    rgba(139, 92, 246, 0.08) 0%,
    rgba(99, 102, 241, 0.04) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: driftBlob 20s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes driftBlob {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(-45%, -55%) scale(1.1); }
  66% { transform: translate(-55%, -45%) scale(0.95); }
}

#products > .container {
  position: relative;
  z-index: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card.card-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  perspective: 800px;
  transform-style: preserve-3d;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --spotlight-opacity: 0;
}

.product-card.card-shell:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-card.card-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(99, 102, 241, 0.12) 0%,
    rgba(99, 102, 241, 0.04) 25%,
    transparent 60%
  );
  opacity: var(--spotlight-opacity);
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.product-card .card-core {
  padding: 0;
  position: relative;
  z-index: 2;
}

.product-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.product-card__image img {
  transition: transform 0.5s var(--ease-out-expo);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__badge--featured {
  background: linear-gradient(135deg, #F59E0B, #EF4444);
}

.product-card__title,
.product-card__desc,
.product-card__footer {
  padding: 0 20px;
}

.product-card__title {
  font-size: 16px;
  font-weight: 600;
  padding-top: 16px;
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: auto;
}

.product-card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.price-original {
  text-decoration: line-through;
  color: var(--text-faint);
  font-size: 14px;
  font-weight: 400;
}

.price-unit {
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
}

.product-card__included {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.product-card--featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.05));
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */
.how-section {
  position: relative;
  overflow: hidden;
  border-top: none;
  border-bottom: 1px solid var(--border-subtle);
}

/* Glowing accent line replacing plain border-top */
.how-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(99, 102, 241, 0.4),
    transparent
  );
  z-index: 1;
}

/* Light spill from the glow line downward */
.how-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 200px;
  background: radial-gradient(ellipse at top center,
    rgba(99, 102, 241, 0.06) 0%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
}

.how-section > .container {
  position: relative;
  z-index: 1;
}

.steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  perspective: 1400px;
}

.step-card.card-shell {
  flex: 1;
  max-width: 320px;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 30px 34px;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.step-card.card-shell:hover {
  border-color: var(--border-accent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border-accent);
}

/* Spotlight that follows the cursor, matching the product cards */
.step-card.card-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(99, 102, 241, 0.14) 0%,
    rgba(99, 102, 241, 0.05) 30%,
    transparent 65%
  );
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.step-card .card-core {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}

/* Soft aura that blooms behind the icon on hover */
.step-card__aura {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 170px;
  height: 170px;
  transform: translateX(-50%) translateZ(8px);
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo);
  pointer-events: none;
}

.step-card.card-shell:hover .step-card__aura { opacity: 1; }

/* Icon plate floats above the card face for real depth on tilt */
.step-card__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.06));
  border: 1px solid var(--border-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(99, 102, 241, 0.16);
  transform: translateZ(58px);
  transition: box-shadow 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}

.step-card.card-shell:hover .step-card__icon {
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 34px rgba(99, 102, 241, 0.4);
}

.step-card__number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateZ(36px);
}

.step-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
  transform: translateZ(24px);
}

.step-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  transform: translateZ(14px);
}

/* Connector: a live light beam traveling between the steps */
.step-connector {
  flex-shrink: 0;
  align-self: center;
  position: relative;
  width: 56px;
  height: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.step-connector__beam {
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: beam-travel 2.6s var(--ease-out-expo) infinite;
}

@keyframes beam-travel {
  0% { left: -35%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .step-connector__beam { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   TRUST / MARQUEE
   ═══════════════════════════════════════════════════════════ */
.trust-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(9, 9, 11, 0.4) 100%),
    var(--bg-base);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.trust-badge svg { color: var(--text-muted); }
.trust-badge span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  margin: 40px 0 24px;
}

.marquee-track {
  display: flex;
  gap: 24px;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.marquee-track .trust-badge { flex-shrink: 0; white-space: nowrap; }

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.trust-statements { text-align: center; }
.trust-statements p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════ */
.pricing-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.pricing-toggle__label {
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.pricing-toggle__label--active {
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-toggle__save {
  font-size: 11px;
  background: var(--green);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.pricing-toggle__switch {
  width: 44px;
  height: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.pricing-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform 0.2s var(--ease-spring);
}

.pricing-toggle__switch.active {
  background: var(--accent);
  border-color: var(--accent);
}

.pricing-toggle__switch.active .pricing-toggle__knob {
  transform: translateX(20px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), var(--bg-card));
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(99, 102, 241, 0.15);
  transform: scale(1.02);
}

.pricing-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-card__amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-card__period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-card__features li svg { flex-shrink: 0; }

.pricing-card__feature--muted {
  opacity: 0.4;
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.testimonials {
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

/* Ambient corner glow - top right (indigo) */
.testimonials::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
    rgba(99, 102, 241, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Ambient corner glow - bottom left (cyan) */
.testimonials::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
    rgba(6, 182, 212, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.testimonials > .container {
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial__stars {
  color: var(--amber);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-accent);
}

.testimonial__name {
  font-weight: 600;
  font-size: 14px;
}

.testimonial__role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-section {
  border-top: none;
  position: relative;
  overflow: hidden;
}

/* Glowing accent line at top */
.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(99, 102, 241, 0.3),
    transparent
  );
  z-index: 1;
}

/* Soft light spill from the glow line */
.faq-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 150px;
  background: radial-gradient(ellipse at top center,
    rgba(99, 102, 241, 0.04) 0%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
}

.faq-section > .container {
  position: relative;
  z-index: 1;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-item__question:hover { color: var(--accent); }

.faq-item__icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
.cta-section {
  text-align: center;
}

.cta-section--gradient {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}

.cta__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  filter: saturate(1.4) brightness(0.5);
}

.cta__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.8) 0%,
    rgba(9, 9, 11, 0.3) 40%,
    rgba(9, 9, 11, 0.3) 60%,
    rgba(9, 9, 11, 0.8) 100%
  );
  pointer-events: none;
}

.cta-section--gradient .container {
  position: relative;
  z-index: 1;
}

.cta-section--gradient h2,
.cta-section--gradient p { color: #fff; }
.cta-section--gradient p { opacity: 0.7; margin: 0 auto; }

@keyframes ctaGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer__social a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__social a:hover { color: var(--text-primary); }

.footer__heading {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 12px;
  color: var(--text-faint);
}

.footer__bottom p {
  font-size: 12px;
  color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT COVERS - gradient cover art per pack
   (replaces bitmap previews: always loads, and the gradient IS
   the pack's color story)
   ═══════════════════════════════════════════════════════════ */
.product-cover {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
}

.product-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.product-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.product-cover__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.product-cover__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Per-pack color stories */
.product-cover--shadow-cinema {
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(56, 116, 160, 0.55) 0%, transparent 55%),
    linear-gradient(155deg, #0b1626 0%, #12283e 45%, #050a12 100%);
}
.product-cover--film-emulation {
  background:
    radial-gradient(110% 80% at 15% 15%, rgba(222, 160, 74, 0.5) 0%, transparent 60%),
    linear-gradient(155deg, #3a2415 0%, #6b4423 50%, #1d1108 100%);
}
.product-cover--golden-warm {
  background:
    radial-gradient(120% 90% at 80% 20%, rgba(255, 200, 90, 0.65) 0%, transparent 60%),
    linear-gradient(155deg, #b06a1e 0%, #d99a3d 45%, #4a2c0d 100%);
}
.product-cover--moody-editorial {
  background:
    radial-gradient(110% 85% at 20% 10%, rgba(140, 150, 175, 0.4) 0%, transparent 60%),
    linear-gradient(155deg, #2c3040 0%, #454b5e 50%, #14161e 100%);
}
.product-cover--halloween {
  background:
    radial-gradient(120% 90% at 80% 15%, rgba(255, 122, 26, 0.55) 0%, transparent 55%),
    linear-gradient(155deg, #1d0f2e 0%, #3d1a52 45%, #120716 100%);
}
.product-cover--mega-bundle {
  background:
    radial-gradient(100% 80% at 15% 15%, rgba(99, 102, 241, 0.55) 0%, transparent 55%),
    radial-gradient(100% 80% at 85% 30%, rgba(217, 154, 61, 0.45) 0%, transparent 55%),
    radial-gradient(120% 90% at 50% 100%, rgba(6, 182, 212, 0.35) 0%, transparent 60%),
    linear-gradient(155deg, #14142a 0%, #1e1e3a 50%, #0a0a16 100%);
}
.product-cover--free {
  background:
    radial-gradient(120% 90% at 80% 15%, rgba(16, 185, 129, 0.45) 0%, transparent 55%),
    linear-gradient(155deg, #0c1f1a 0%, #14352b 50%, #060f0c 100%);
}

/* Portfolio case study covers */
.product-cover--portfolio-featured {
  background:
    radial-gradient(100% 80% at 15% 15%, rgba(218, 165, 32, 0.5) 0%, transparent 55%),
    radial-gradient(100% 80% at 85% 30%, rgba(180, 120, 50, 0.4) 0%, transparent 55%),
    linear-gradient(155deg, #1a1208 0%, #2a1e10 50%, #0a0804 100%);
}
.product-cover--portfolio-sports {
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(0, 198, 255, 0.5) 0%, transparent 55%),
    linear-gradient(155deg, #0a0a1a 0%, #0f1e30 45%, #060810 100%);
}
.product-cover--portfolio-production {
  background:
    radial-gradient(110% 80% at 15% 15%, rgba(0, 255, 252, 0.35) 0%, transparent 60%),
    radial-gradient(100% 80% at 85% 80%, rgba(120, 0, 255, 0.3) 0%, transparent 60%),
    linear-gradient(155deg, #050510 0%, #0f0f2a 50%, #030308 100%);
}
.product-cover--portfolio-personal {
  background:
    radial-gradient(120% 90% at 80% 20%, rgba(0, 212, 255, 0.45) 0%, transparent 55%),
    radial-gradient(100% 80% at 20% 70%, rgba(123, 47, 255, 0.3) 0%, transparent 55%),
    linear-gradient(155deg, #0a0a14 0%, #14142a 50%, #06060e 100%);
}
.product-cover--portfolio-app {
  background:
    radial-gradient(120% 90% at 80% 15%, rgba(99, 102, 241, 0.5) 0%, transparent 55%),
    radial-gradient(100% 80% at 20% 80%, rgba(16, 185, 129, 0.35) 0%, transparent 55%),
    linear-gradient(155deg, #0c0c1e 0%, #16163a 50%, #08081a 100%);
}

/* Product-page hero variant */
.product-hero__cover {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  margin-top: 24px;
  padding: 32px;
}

.product-hero__cover .product-cover__name {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* ═══════════════════════════════════════════════════════════
   WHY BLACKBOX - honest trust section
   ═══════════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 172px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.72) 0%, rgba(6, 6, 8, 0.6) 100%);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) ease;
}

/* Gradient hairline that lights up along the top edge on hover/tap */
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--cyan) 60%, transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

/* Pop the tile toward the user and hold it there while hovered (desktop)
   or while toggled on (mobile tap). No shadow. Scoped to .testimonials so it
   outweighs the .reveal.visible transform that otherwise resets it. */
.testimonials .why-card:hover,
.testimonials .why-card.is-active {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-hover);
  transition: transform var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) ease;
}

.why-card:hover::before,
.why-card.is-active::before {
  opacity: 1;
}

.why-card__body {
  position: relative;
  z-index: 1;
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
  color: var(--text-primary);
}

.why-card__desc {
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.65;
}

/* White theme for the "Why work with us" section (tiles stay black glass) */
.testimonials {
  background: #f4f4f5;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.testimonials .section__eyebrow {
  color: var(--accent-dim);
}

.testimonials .section__header h2 {
  color: #0a0a0b;
}

.testimonials .section__header p {
  color: #3f3f46;
}

/* ===============================================================
   BEFORE / AFTER COMPARISON SLIDER
   =============================================================== */
.compare-section {
  position: relative;
  overflow: hidden;
}

.compare-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), transparent);
}

.compare-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 180px;
  background: radial-gradient(ellipse at top center, rgba(99, 102, 241, 0.05) 0%, transparent 80%);
  pointer-events: none;
}

.compare-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: col-resize;
  border: 1px solid var(--border-medium);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-select: none;
}

.compare-slider__before,
.compare-slider__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.compare-slider__before { z-index: 1; }
.compare-slider__after { z-index: 0; }

.compare-slider__before img,
.compare-slider__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-slider__before img {
  filter: saturate(0.3) contrast(0.85) brightness(0.9);
}

.compare-slider__after img {
  filter: saturate(1.15) contrast(1.05) brightness(1.02);
}

.compare-slider__label {
  position: absolute;
  bottom: 20px;
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  z-index: 5;
  pointer-events: none;
}

.compare-slider__label--before {
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-slider__label--after {
  right: 20px;
  background: rgba(99, 102, 241, 0.8);
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.compare-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  z-index: 10;
  cursor: col-resize;
  transform: translateX(-50%);
}

.compare-slider__handle-line {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.compare-slider__handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.compare-slider__handle-grip:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(99, 102, 241, 1);
}

.compare-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.compare-thumb {
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

.compare-thumb:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.compare-thumb--active {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ===============================================================
   TEXT SPLIT HERO ANIMATION
   =============================================================== */
.hero__title .word {
  display: inline-block;
  overflow: hidden;
}

.hero__title .word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__title.animated .word-inner {
  transform: translateY(0);
  opacity: 1;
}

.hero__title .word:nth-child(1) .word-inner { transition-delay: 0.1s; }
.hero__title .word:nth-child(2) .word-inner { transition-delay: 0.18s; }
.hero__title .word:nth-child(3) .word-inner { transition-delay: 0.26s; }
.hero__title .word:nth-child(4) .word-inner { transition-delay: 0.5s; }
.hero__title .word:nth-child(5) .word-inner { transition-delay: 0.58s; }
.hero__title .word:nth-child(6) .word-inner { transition-delay: 0.66s; }

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .why-card { min-height: 0; padding: 22px 22px 24px; }
}



/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-stagger .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger .reveal:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger .reveal:nth-child(8) { transition-delay: 560ms; }

/* ═══════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-top: 12px;
}

.alert--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert--error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   LUT PREVIEW CARDS (Free pack + Mega Bundle)
   ═══════════════════════════════════════════════════════════ */
.lut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.lut-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: transform 0.45s var(--ease-out-expo),
              border-color 0.45s var(--ease-out-expo),
              box-shadow 0.45s var(--ease-out-expo);
}

.lut-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
}

/* The graded look. Each card sets its own gradient inline. */
.lut-card__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

/* The "ungraded" half: same gradient, desaturated, wipes away on hover */
.lut-card__raw {
  position: absolute;
  inset: 0;
  background: inherit;
  filter: grayscale(0.9) brightness(0.78) contrast(0.9) saturate(0.35);
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.6s var(--ease-out-expo);
  z-index: 1;
}
.lut-card:hover .lut-card__raw { clip-path: inset(0 0 0 100%); }

/* Filmic vignette + sheen over the frame */
.lut-card__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 110% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%);
  pointer-events: none;
  z-index: 2;
}

/* Split divider line, fades as the grade takes over */
.lut-card__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  transition: opacity 0.45s var(--ease-out-expo);
  z-index: 3;
}
.lut-card:hover .lut-card__divider { opacity: 0; }

/* Category chip */
.lut-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

/* Before/after hint, top-right, fades on hover */
.lut-card__hint {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: opacity 0.4s ease;
}
.lut-card:hover .lut-card__hint { opacity: 0; }

/* Name scrim at the bottom */
.lut-card__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 32px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}
.lut-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.01em;
}
.lut-card__from {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav__search, .nav__link--subtle { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card--featured { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { flex-direction: column; perspective: 1000px; }
  .step-card.card-shell { max-width: 420px; width: 100%; }
  .step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--border-hover), transparent);
  }
  .step-connector__beam {
    top: -35%;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    animation: beam-travel-v 2.6s var(--ease-out-expo) infinite;
  }
  @keyframes beam-travel-v {
    0% { top: -35%; }
    100% { top: 100%; }
  }
}

@media (max-width: 768px) {
  .nav__center { display: none; }
  .nav__right .btn { display: none; }
  .nav__hamburger { display: flex; }

  .hero__stats {
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px;
  }
  .hero__stat-divider { display: none; }
  .hero__stat { min-width: 100px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer__legal { justify-content: center; }

  .cta__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { padding: 20px 12px; }
}
