/* =====================================================================
   PRYMIT v4 — Clean Background, Fixed Scroll Animations
   DARK PURPLE palette · Roboto · Sophisticated animations · Glassmorphism
   ===================================================================== */

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

:root {
  /* ---- TYPE SCALE ---- */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    7rem);

  /* ---- SPACING (8px base) ---- */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem;   --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;  --sp-20: 5rem;   --sp-24: 6rem;
  --sp-32: 8rem;   --sp-40: 10rem;

  /* ---- PRYMIT COLORS — Brand purple + pink ---- */
  --color-bg:          #20033f;
  --color-bg-gradient-top:   #180230;
  --color-bg-gradient-bottom:#20033f;
  --color-surface:     rgba(255,255,255, 0.03);
  --color-surface-2:   rgba(255,255,255, 0.06);
  --color-surface-glass: rgba(255,255,255, 0.04);
  --color-border:      rgba(255,255,255, 0.08);
  --color-border-glow: rgba(237, 0, 122, 0.25);

  --color-text:        #ffffff;
  --color-text-muted:  rgba(255,255,255, 0.60);
  --color-text-faint:  rgba(255,255,255, 0.30);

  --color-primary:     #ed007a;
  --color-primary-light:#ff3d9a;
  --color-primary-dark: #c00064;
  --color-primary-glow: rgba(237, 0, 122, 0.4);
  --color-secondary:   #ed007a;
  --color-accent:      #06b6d4;
  --color-accent-2:    #ba59f3;

  /* ---- RADIUS ---- */
  --r-sm: 0.5rem; --r-md: 0.75rem; --r-lg: 1rem;
  --r-xl: 1.25rem; --r-2xl: 1.5rem; --r-full: 9999px;

  /* ---- EASING ---- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- FONTS ---- */
  --font-body:    'Roboto', sans-serif;
  --font-display: 'Roboto', sans-serif;

  /* ---- CONTENT ---- */
  --content-max: 1200px;
}

/* ==========================================================================
   INTRO OVERLAY — Logo centered, then animates to header position
   ========================================================================== */

.intro-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Block-reveal grid overlay for intro transition */
.intro-blocks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  z-index: 1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.intro-block {
  background: var(--color-bg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-origin: top center;
  transform-origin: top center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.intro-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 2;
  position: relative;
}

.intro-logo__img {
  height: 60px;
  width: auto;
}

/* Shiny reflection sweep across logo letters */
.intro-logo__shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: url('./logo.svg');
  mask-image: url('./logo.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.intro-logo__shine-bar {
  position: absolute;
  top: -30%;
  left: -100%;
  width: 75%;
  height: 160%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 25%,
    rgba(255, 255, 255, 0.1) 33%,
    rgba(255, 255, 255, 0.45) 42%,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.85) 52%,
    rgba(255, 255, 255, 0.45) 58%,
    rgba(255, 255, 255, 0.1) 67%,
    transparent 75%,
    transparent 100%
  );
  -webkit-transform: skewX(-20deg) translateZ(0);
  transform: skewX(-20deg) translateZ(0);
  will-change: transform;
}

@media (max-width: 768px) {
  .intro-logo__img { height: 40px; }
}

/* ==========================================================================
   BODY — DARK PURPLE background with animated gradient glow
   ========================================================================== */

body {
  background-color: #20033f;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(237, 0, 122, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(186, 89, 243, 0.05), transparent 60%),
    linear-gradient(180deg, #180230, #20033f);
  background-attachment: fixed;
  background-size: cover;
  color: var(--color-text);
  font-family: var(--font-body);
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

.page-wrapper {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   MOUSE SPOTLIGHT — 600px, subtle purple glow
   ========================================================================== */

.mouse-spotlight {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 0, 122, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.6s ease-out, top 0.6s ease-out;
}

@media (max-width: 768px) {
  .mouse-spotlight { display: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--sp-4) var(--sp-6);
  background: transparent;
  border-bottom: none;
  transition: transform 0.5s var(--ease-out),
              background 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out);
}

.header--scrolled {
  background: rgba(32, 3, 63, 0.4);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.header--hidden { transform: translateY(-100%); }

.header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--color-text);
}

.header__logo-img {
  height: 36px;
  width: auto;
  max-height: 36px;
}

@media (max-width: 768px) {
  .header__logo-img {
    height: 28px;
    max-height: 28px;
  }
}

.header__logo-text {
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.1em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.header__nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: var(--sp-1) 0;
  transition: color 0.3s;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #ba59f3);
  transition: left 0.35s var(--ease-out), right 0.35s var(--ease-out);
  border-radius: 2px;
}

.header__nav-link:hover { color: #fff; }
.header__nav-link:hover::after { left: 0; right: 0; }

/* Nav glitch effect on hover */
.header__nav-link:hover {
  animation: navGlitch 0.3s ease-out;
}

@keyframes navGlitch {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-3px); }
  40%  { transform: translateX(4px); }
  60%  { transform: translateX(-2px); }
  80%  { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

.header__cta {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--sp-2) var(--sp-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, #ba59f3 100%);
  color: #fff;
  border-radius: var(--r-full);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(237, 0, 122, 0.3);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.header__cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 40px rgba(237, 0, 122, 0.5);
}

/* Mobile toggle */
.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}

.header__menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.header__menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__menu-toggle.active span:nth-child(2) { opacity: 0; }
.header__menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .header__menu-toggle { display: flex; }
  .header__nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: 80%; max-width: 320px;
    background: rgba(32, 3, 63, 0.96);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-8);
    padding: var(--sp-8);
    border-left: 1px solid rgba(255,255,255, 0.06);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }
  .header__nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .header__nav-link { font-size: var(--text-lg); }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--sp-32) var(--sp-6) var(--sp-20);
  perspective: 1000px;
  z-index: 1;
}

/* Background video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Hero video always covers the full section on all devices */

/* Dark overlay on top of video */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 3, 63, 0.78);
  z-index: 1;
  pointer-events: none;
}

/* Radial vignette */
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%,
    rgba(237, 0, 122, 0.08) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 2;
}



.hero__content {
  position: relative;
  z-index: 4;
  max-width: 880px;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.03em;
}

.hero__title-line { display: block; }

.hero__title-word {
  display: inline-block;
}

/* Per-character spans inside title words */
.hero__title-word .char {
  display: inline-block;
  will-change: transform, opacity, filter;
  transform: translateZ(0);
}

.hero__title-gradient span {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ba59f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite alternate;
}

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

.hero__rotating-word {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  perspective: 600px;
}

.hero__rotating-word span {
  display: inline-block;
  will-change: transform, opacity;
}

.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--sp-10);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--r-full);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ba59f3 100%);
  color: #fff;
  box-shadow: 0 4px 30px rgba(237, 0, 122, 0.35),
              inset 0 1px 0 rgba(255,255,255, 0.15);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 50px rgba(237, 0, 122, 0.5),
              inset 0 1px 0 rgba(255,255,255, 0.2);
}

.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary:active { transform: translateY(0) scale(1); }

.btn--ghost {
  background: rgba(255,255,255, 0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255, 0.10);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  background: rgba(237, 0, 122, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(237, 0, 122, 0.15);
}

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

/* Ripple effect container */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255, 0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Scroll indicator */
/* Scroll-down button (circle + chevron, like nevin.se) */
.hero__scroll-btn {
  position: absolute;
  bottom: var(--sp-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: scrollBtnFloat 2.5s ease-in-out infinite;
}

.hero__scroll-btn:hover {
  opacity: 0.6;
  transform: translateX(-50%) translateY(3px);
}

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

/* Hero-to-content gradient fade — element outside hero, pulled up to overlap */
.hero-fade-out {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 280px;
  margin-top: -280px;
  margin-bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--color-bg) 100%);
  pointer-events: none;
  isolation: isolate;
}

/* ==========================================================================
   SECTIONS — common
   ========================================================================== */

.section {
  padding: clamp(var(--sp-20), 10vw, var(--sp-40)) var(--sp-6);
  position: relative;
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
  overflow: hidden;
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

.section__label::before {
  content: '';
  width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
  letter-spacing: -0.02em;
}

/* Per-word reveal spans injected by JS */
.section__title .word {
  display: inline-block;
  /* will-change removed - only needed during initial entrance animation.
     Permanent will-change creates excess GPU layers that cause scroll jank on tablets. */
}

.section__desc {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: var(--sp-16);
}

/* Section divider — laser beam draw */
.section-divider {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--color-primary),
    #ba59f3,
    transparent);
  opacity: 0.35;
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 80px;
  height: 5px;
  background: radial-gradient(ellipse, rgba(237, 0, 122, 0.8), transparent);
  filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s;
}

.section-divider.active::after {
  opacity: 1;
  animation: laserBeam 1.5s ease-out forwards;
}

@keyframes laserBeam {
  from { left: -80px; }
  to   { left: calc(100% + 80px); }
}

/* ==========================================================================
   GLASS CARDS (reusable) — stronger glow effects
   ========================================================================== */

.glass-card {
  position: relative;
  padding: var(--sp-8);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
  perspective: 800px;
}

/* Inner mouse glow */
.glass-card .card-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 0, 122, 0.12), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.glass-card:hover .card-glow {
  opacity: 1;
}

/* Shimmer on hover */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(237, 0, 122, 0.08) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: inherit;
}

/* Top glow line */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237, 0, 122, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.5s, left 0.5s var(--ease-out), right 0.5s var(--ease-out);
}

.glass-card:hover {
  border-color: rgba(237, 0, 122, 0.25);
  box-shadow: 0 20px 80px rgba(237, 0, 122, 0.12),
              0 0 60px rgba(237, 0, 122, 0.08);
}

.glass-card:hover::before { opacity: 1; }
.glass-card:hover::after  { opacity: 1; left: 5%; right: 5%; }

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

@media (max-width: 900px)  { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .services__grid { grid-template-columns: 1fr; } }

.service-card { cursor: default; }

.service-card__icon {
  width: 48px; height: 48px;
  margin-bottom: var(--sp-6);
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.service-card__desc {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   APPROACH (3 pillars)
   ========================================================================== */

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--r-2xl);
  overflow: hidden;
}

@media (max-width: 768px) { .approach__grid { grid-template-columns: 1fr; } }

.approach-pillar {
  padding: var(--sp-10) var(--sp-8);
  background: rgba(32, 3, 63, 0.7);
  position: relative;
  counter-increment: pillar;
  transition: background 0.5s;
}

.approach-pillar:hover {
  background: rgba(237, 0, 122, 0.04);
}

.approach-pillar__number {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: rgba(237, 0, 122, 0.06);
  position: absolute;
  top: var(--sp-6); right: var(--sp-6);
  line-height: 1;
}

.approach-pillar__number::before { content: "0" counter(pillar); }

.approach-pillar__icon {
  width: 40px; height: 40px;
  margin-bottom: var(--sp-6);
  color: var(--color-primary);
}

.approach-pillar__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.approach-pillar__desc {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ==========================================================================
   SCROLL-DRIVEN VIDEO - AUTOMATION & AI
   ========================================================================== */

.scroll-video {
  position: relative;
}

.scroll-video__spacer {
  height: 600vh;
  position: relative;
}

.scroll-video__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.scroll-video__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay: center-heavy darkening for text readability over bright video */
.scroll-video__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 70% 60% at center, rgba(32,3,63,0.65) 0%, rgba(32,3,63,0.45) 50%, rgba(32,3,63,0.7) 100%),
    linear-gradient(180deg, rgba(32,3,63,0.35) 0%, rgba(32,3,63,0.2) 30%, rgba(32,3,63,0.2) 70%, rgba(32,3,63,0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---- Text overlay base ---- */
.scroll-video__text {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 clamp(var(--sp-6), 6vw, var(--sp-16));
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* ---- Reveal animation for child elements ---- */
.scroll-video__reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.92);
  filter: blur(10px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1),
              filter 0.7s cubic-bezier(0.16,1,0.3,1);
}

.scroll-video__reveal[data-delay="1"] { transition-delay: 0.15s; }
.scroll-video__reveal[data-delay="2"] { transition-delay: 0.3s; }
.scroll-video__reveal[data-delay="3"] { transition-delay: 0.45s; }

.scroll-video__text.is-active .scroll-video__reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* When fading out, reverse the direction */
.scroll-video__text.is-exiting .scroll-video__reveal {
  opacity: 0;
  transform: translateY(-40px) scale(0.95);
  filter: blur(8px);
}

/* ---- Phase 1: Big hero header ---- */
.scroll-video__label {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ed007a;
  margin-bottom: var(--sp-6);
  text-shadow: 0 0 30px rgba(237,0,122,0.6), 0 0 60px rgba(237,0,122,0.3);
}

.scroll-video__hero-title {
  font-size: clamp(4rem, 12vw, 9.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-8);
  text-shadow: 0 0 80px rgba(237,0,122,0.3), 0 4px 60px rgba(32,3,63,0.9), 0 2px 20px rgba(0,0,0,0.6);
}

.scroll-video__hero-line {
  display: block;
}

.scroll-video__hero-line--accent {
  color: #ff3ca0;
  -webkit-text-fill-color: #ff3ca0;
  animation: accentPulse 6s ease-in-out infinite alternate;
}

@keyframes accentPulse {
  0%   { color: #ff3ca0; -webkit-text-fill-color: #ff3ca0; }
  100% { color: #e55cff; -webkit-text-fill-color: #e55cff; }
}

.scroll-video__hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 2px 30px rgba(32,3,63,1), 0 0 60px rgba(32,3,63,0.8);
}

/* ---- Phase 2 & 3: Section titles ---- */
.scroll-video__tag {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
  backdrop-filter: blur(12px);
}

.scroll-video__tag--efficiency {
  background: rgba(6, 182, 212, 0.25);
  color: #00e5ff;
  border: 1px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), inset 0 0 12px rgba(6, 182, 212, 0.1);
}
.scroll-video__tag--reliability {
  background: rgba(237, 0, 122, 0.25);
  color: #ff4da6;
  border: 1px solid rgba(237, 0, 122, 0.5);
  box-shadow: 0 0 20px rgba(237, 0, 122, 0.3), inset 0 0 12px rgba(237, 0, 122, 0.1);
}
.scroll-video__tag--speed {
  background: rgba(186, 89, 243, 0.25);
  color: #d07aff;
  border: 1px solid rgba(186, 89, 243, 0.5);
  box-shadow: 0 0 20px rgba(186, 89, 243, 0.3), inset 0 0 12px rgba(186, 89, 243, 0.1);
}

.scroll-video__phase-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  color: #fff;
  text-shadow: 0 0 80px rgba(237,0,122,0.25), 0 4px 60px rgba(32,3,63,1), 0 2px 20px rgba(0,0,0,0.7);
}

.scroll-video__phase-desc {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  text-shadow: 0 2px 30px rgba(32,3,63,1), 0 0 60px rgba(32,3,63,0.8);
  font-weight: 400;
}

/* ---- Phase 3: Dual layout ---- */
.scroll-video__dual {
  display: flex;
  gap: clamp(var(--sp-8), 4vw, var(--sp-16));
  align-items: flex-start;
  text-align: center;
}

.scroll-video__dual-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-video__dual-divider {
  width: 2px;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, #ed007a 30%, #ba59f3 70%, transparent 100%);
  align-self: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(237,0,122,0.5), 0 0 40px rgba(237,0,122,0.2);
}

.scroll-video__dual-block .scroll-video__phase-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
}

.scroll-video__dual-block .scroll-video__phase-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  max-width: 420px;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .scroll-video__spacer {
    height: 500vh;
  }

  .scroll-video__hero-title {
    font-size: clamp(3.2rem, 16vw, 5.5rem);
  }

  .scroll-video__phase-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .scroll-video__dual {
    flex-direction: column;
    gap: var(--sp-4);
  }

  .scroll-video__dual-block .scroll-video__phase-title {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
    margin-bottom: 8px;
  }

  .scroll-video__dual-block .scroll-video__phase-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .scroll-video__dual-block .scroll-video__tag {
    font-size: 0.65rem;
    padding: 4px 12px;
    margin-bottom: 8px;
  }

  .scroll-video__dual-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ed007a 30%, #ba59f3 70%, transparent 100%);
    box-shadow: 0 0 15px rgba(237,0,122,0.5);
  }
}

/* ==========================================================================
   IN-APP BROWSER FALLBACK — Facebook Messenger, Instagram, etc.
   These browsers break sticky positioning, GSAP ScrollTrigger, and more.
   We show a clean, fully-styled static layout instead.
   ========================================================================== */

/* --- Global: make all GSAP-animated elements visible --- */
.is-inapp-browser .section__label,
.is-inapp-browser .section__title,
.is-inapp-browser .section__desc,
.is-inapp-browser .section__title .word,
.is-inapp-browser .glass-card,
.is-inapp-browser .service-card,
.is-inapp-browser .approach-pillar,
.is-inapp-browser .section-divider,
.is-inapp-browser .mosaic-card,
.is-inapp-browser .cases-mosaic__header .section__label,
.is-inapp-browser .cases-mosaic__header .section__title,
.is-inapp-browser .hero__content,
.is-inapp-browser .hero__subtitle,
.is-inapp-browser .hero__title-word .char,
.is-inapp-browser #heroScrollBtn,
.is-inapp-browser .stat,
.is-inapp-browser .stat__number,
.is-inapp-browser .footer__col,
.is-inapp-browser .cta-section,
.is-inapp-browser .newsletter {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  visibility: visible !important;
}

/* --- Scroll-video section: static layout --- */
.scroll-video--fallback .scroll-video__spacer {
  height: auto;
}

.scroll-video--fallback .scroll-video__sticky {
  position: relative;
  height: auto;
  overflow: visible;
}

.scroll-video--fallback .scroll-video__canvas {
  display: none;
}

.scroll-video--fallback .scroll-video__overlay {
  display: none;
}

.scroll-video--fallback .scroll-video__text {
  position: relative;
  top: auto; left: auto;
  width: 100%; height: auto;
  opacity: 1;
  pointer-events: auto;
  padding: 64px 24px;
  background: #20033f;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scroll-video--fallback .scroll-video__text:first-of-type {
  padding-top: 80px;
  background:
    radial-gradient(ellipse 80% 60% at center, rgba(186,89,243,0.12), transparent 70%),
    #20033f;
}

.scroll-video--fallback .scroll-video__text + .scroll-video__text {
  border-top: 1px solid rgba(186,89,243,0.12);
}

.scroll-video--fallback .scroll-video__reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

/* Hero title in fallback */
.scroll-video--fallback .scroll-video__label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ed007a;
  margin-bottom: 16px;
}

.scroll-video--fallback .scroll-video__hero-title {
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 20px;
}

.scroll-video--fallback .scroll-video__hero-line--accent {
  color: #ff3ca0;
  -webkit-text-fill-color: #ff3ca0;
}

.scroll-video--fallback .scroll-video__hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 600px;
}

/* Phase tags in fallback */
.scroll-video--fallback .scroll-video__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.scroll-video--fallback .scroll-video__tag--efficiency {
  background: rgba(6, 182, 212, 0.25);
  color: #00e5ff;
  border: 1px solid rgba(6, 182, 212, 0.5);
}
.scroll-video--fallback .scroll-video__tag--reliability {
  background: rgba(237, 0, 122, 0.25);
  color: #ff4da6;
  border: 1px solid rgba(237, 0, 122, 0.5);
}
.scroll-video--fallback .scroll-video__tag--speed {
  background: rgba(186, 89, 243, 0.25);
  color: #d07aff;
  border: 1px solid rgba(186, 89, 243, 0.5);
}

/* Phase titles in fallback */
.scroll-video--fallback .scroll-video__phase-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  color: #fff;
}

.scroll-video--fallback .scroll-video__phase-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 520px;
}

/* Dual layout in fallback */
.scroll-video--fallback .scroll-video__dual {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  text-align: center;
}

.scroll-video--fallback .scroll-video__dual-block {
  flex: 1;
}

.scroll-video--fallback .scroll-video__dual-divider {
  width: 2px;
  height: 160px;
  background: linear-gradient(180deg, transparent, #ed007a 30%, #ba59f3 70%, transparent);
  align-self: center;
  flex-shrink: 0;
}

.scroll-video--fallback .scroll-video__dual-block .scroll-video__phase-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

@media (max-width: 600px) {
  .scroll-video--fallback .scroll-video__dual {
    flex-direction: column;
    gap: 24px;
  }
  .scroll-video--fallback .scroll-video__dual-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ed007a 30%, #ba59f3 70%, transparent);
    align-self: center;
  }
}

/* --- Mosaic cards: fully styled in fallback --- */
.is-inapp-browser .mosaic-card {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(186,89,243,0.12);
}

.is-inapp-browser .mosaic-card__content {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
}

.is-inapp-browser .mosaic-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.is-inapp-browser .mosaic-card__tag {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(186,89,243,0.08);
  border: 1px solid rgba(186,89,243,0.15);
  border-radius: 100px;
  color: rgba(255,255,255,0.55);
}

.is-inapp-browser .mosaic-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #fff;
}

.is-inapp-browser .mosaic-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 16px;
}

.is-inapp-browser .mosaic-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ba59f3;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.is-inapp-browser .mosaic-card__result-label,
.is-inapp-browser .mosaic-card__solution-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ed007a;
  margin-bottom: 12px;
}

.is-inapp-browser .mosaic-card__metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.is-inapp-browser .mosaic-card__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.is-inapp-browser .mosaic-card__metric-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ed007a;
}

.is-inapp-browser .mosaic-card__metric-lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CASES - Masonry mosaic grid
   ========================================================================== */

.cases-mosaic {
  position: relative;
  padding: clamp(var(--sp-20), 10vw, var(--sp-40)) var(--sp-6);
  overflow: hidden;
}

.cases-mosaic__header {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto var(--sp-12);
}

.cases-mosaic__grid {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.cases-mosaic__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

@media (max-width: 900px) {
  .cases-mosaic__grid { flex-wrap: wrap; }
  .cases-mosaic__col { flex: 1 1 calc(50% - 10px); }
}
@media (max-width: 600px) {
  .cases-mosaic__col { flex: 1 1 100%; }
}

/* --- Mosaic card --- */
.mosaic-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(186,89,243,0.08);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.5s ease;
  will-change: transform;
}
.mosaic-card:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: rgba(237,0,122,0.35);
  box-shadow:
    0 30px 80px -12px rgba(237,0,122,0.18),
    0 0 120px rgba(186,89,243,0.08),
    0 0 0 1px rgba(237,0,122,0.12),
    inset 0 0 60px rgba(237,0,122,0.03);
}

/* Expanded card - persistent bright highlight */
.mosaic-card.expanded {
  border-color: rgba(237,0,122,0.5);
  box-shadow:
    0 20px 60px -8px rgba(237,0,122,0.25),
    0 0 140px rgba(186,89,243,0.12),
    0 0 0 1px rgba(237,0,122,0.2),
    inset 0 0 80px rgba(237,0,122,0.04);
}
.mosaic-card.expanded .mosaic-card__glow {
  opacity: 0.5;
  background:
    radial-gradient(800px circle at 50% 30%, rgba(237,0,122,0.1), transparent 40%),
    radial-gradient(400px circle at 50% 30%, rgba(186,89,243,0.08), transparent 50%);
}
.mosaic-card.expanded::before {
  opacity: 1;
  animation: shimmerBorder 3s linear infinite;
}
.mosaic-card.expanded .mosaic-card__title {
  text-shadow: 0 0 30px rgba(237,0,122,0.2);
}
.mosaic-card.expanded .mosaic-card__tag {
  background: rgba(237,0,122,0.1);
  border-color: rgba(237,0,122,0.22);
  color: rgba(255,255,255,0.75);
}

/* Mouse-tracking glow - dual layer */
.mosaic-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(237,0,122,0.1), transparent 40%),
    radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(186,89,243,0.08), transparent 50%);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
.mosaic-card:hover .mosaic-card__glow {
  opacity: 1;
}

/* Shimmer border effect on hover */
.mosaic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent 20%,
    rgba(237,0,122,0.4) 40%,
    rgba(186,89,243,0.4) 60%,
    transparent 80%
  );
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}
.mosaic-card:hover::before {
  opacity: 1;
  animation: shimmerBorder 3s linear infinite;
}
@keyframes shimmerBorder {
  0%   { background-position: 200% 200%; }
  100% { background-position: -200% -200%; }
}

/* Content layer */
.mosaic-card__content {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
}

/* Tags */
.mosaic-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.mosaic-card__tag {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(186,89,243,0.06);
  border: 1px solid rgba(186,89,243,0.1);
  border-radius: 100px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.mosaic-card:hover .mosaic-card__tag {
  background: rgba(237,0,122,0.08);
  border-color: rgba(237,0,122,0.18);
  color: rgba(255,255,255,0.7);
}

/* Title */
.mosaic-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  transition: text-shadow 0.5s ease;
  line-height: 1.3;
  margin-bottom: 8px;
}
.mosaic-card:hover .mosaic-card__title {
  text-shadow: 0 0 30px rgba(237,0,122,0.15);
}

/* Description */
.mosaic-card__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Toggle button */
.mosaic-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
  transition: color 0.3s, gap 0.3s;
}
.mosaic-card__toggle:hover {
  color: #fff;
  gap: 10px;
}

.mosaic-card__toggle-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mosaic-card__toggle[aria-expanded="true"] .mosaic-card__toggle-icon {
  transform: rotate(180deg);
}

/* Expandable content */
.mosaic-card__expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mosaic-card__expand.open {
  grid-template-rows: 1fr;
}

.mosaic-card__expand-inner {
  overflow: hidden;
}
.mosaic-card__expand.open .mosaic-card__expand-inner {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 12px;
}

/* Solution & Result */
.mosaic-card__solution {
  margin-bottom: 16px;
}

.mosaic-card__solution-label,
.mosaic-card__result-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 8px;
}

.mosaic-card__solution-text {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.mosaic-card__metrics {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 10px;
  justify-content: flex-start;
}

.mosaic-card__metric {
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
}

.mosaic-card__metric-val {
  display: block;
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ba59f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mosaic-card__metric-lbl {
  display: block;
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .mosaic-card__content {
    padding: 20px 16px;
  }
}


/* ==========================================================================
   STATS
   ========================================================================== */

.stat-counter {
  display: flex;
  gap: var(--sp-16);
  justify-content: center;
  padding: var(--sp-16) 0;
}

@media (max-width: 768px) {
  .stat-counter { flex-direction: column; align-items: center; gap: var(--sp-8); }
}

.stat { text-align: center; }

.stat__number {
  font-size: var(--text-2xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ba59f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.stat__label {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-top: var(--sp-1);
}

/* ==========================================================================
   FOUNDER
   ========================================================================== */

.founder__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-16);
  align-items: center;
}

@media (max-width: 768px) {
  .founder__inner { grid-template-columns: 1fr; gap: var(--sp-8); }
}

.founder__image-frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: rgba(255,255,255, 0.02);
  border: 1px solid rgba(255,255,255, 0.06);
}

.founder__image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 50%);
}

.founder__image-glow {
  position: absolute;
  bottom: -30%; left: -20%;
  width: 140%; height: 60%;
  background: radial-gradient(ellipse, rgba(237, 0, 122, 0.15) 0%, transparent 70%);
  filter: blur(50px);
}

.founder__quote {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--sp-6);
  position: relative;
  padding-left: var(--sp-6);
  border-left: 2px solid var(--color-primary);
  font-style: italic;
}

/* Typewriter cursor */
.founder__quote .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.7s step-end infinite;
}

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

.founder__name {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--sp-1);
}

.founder__role {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
}

/* ==========================================================================
   NEWSLETTER - Full-screen immersive section
   ========================================================================== */

.newsletter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(var(--sp-20), 10vw, var(--sp-40)) var(--sp-6);
  overflow: hidden;
}

.newsletter__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(237, 0, 122, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(186, 89, 243, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.newsletter__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--sp-10), 6vw, var(--sp-20));
  align-items: center;
}

.newsletter__label {
  margin-bottom: var(--sp-4);
}

.newsletter__title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--sp-6);
}

.newsletter__tagline {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  color: var(--color-primary-light);
  line-height: 1.5;
  margin-bottom: var(--sp-5);
}

.newsletter__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
  max-width: 540px;
}

.newsletter__cadence {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.newsletter__form-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter__form {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-2xl);
  padding: var(--sp-10) var(--sp-8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.newsletter__form-heading {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--sp-2);
}

.newsletter__input-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.newsletter__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-lg);
  outline: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-base);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.newsletter__input:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(237, 0, 122, 0.15);
}

.newsletter__input::placeholder {
  color: var(--color-text-muted);
}

.newsletter__btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--sp-1);
  box-shadow: none;
}

.newsletter__btn::before {
  display: none;
}

.newsletter__btn:hover {
  box-shadow: none;
  transform: none;
}

.newsletter__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--sp-4);
  text-align: center;
}

@media (max-width: 900px) {
  .newsletter {
    padding: clamp(var(--sp-16), 8vw, var(--sp-24)) var(--sp-6);
  }
  .newsletter__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
    text-align: left;
  }
  .newsletter__title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }
  .newsletter__tagline {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
  }
  .newsletter__desc {
    max-width: none;
    font-size: var(--text-sm);
  }
  .newsletter__form {
    max-width: none;
  }
  .newsletter__disclaimer {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .newsletter {
    padding: var(--sp-12) var(--sp-4);
  }
  .newsletter__title {
    font-size: 2rem;
    margin-bottom: var(--sp-4);
  }
  .newsletter__tagline {
    font-size: 0.95rem;
    margin-bottom: var(--sp-3);
  }
  .newsletter__desc {
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: var(--sp-3);
  }
  .newsletter__cadence {
    font-size: var(--text-xs);
  }
  .newsletter__form {
    padding: var(--sp-6) var(--sp-5);
    max-width: none;
  }
  .newsletter__input {
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-sm);
  }
  .newsletter__disclaimer {
    text-align: left;
  }
}

/* ==========================================================================
   CTA - Full-screen parallax video with cool reveal
   ========================================================================== */

.cta-section {
  text-align: center;
  min-height: 100vh;
  min-height: 100svh; /* Use small viewport height to avoid address bar jank on mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--sp-20) var(--sp-6);
  /* Footer needs to show below, so no clip-path used permanently */
}

/* Top divider line - matching footer divider style */
.cta-section__divider-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: var(--content-max);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(237, 0, 122, 0.5) 25%, rgba(186, 89, 243, 0.5) 50%, rgba(237, 0, 122, 0.5) 75%, transparent 100%);
  z-index: 5;
}

/* Fade top edge - hidden, using clip-path reveal instead */
.cta-section__fade-top {
  display: none;
}

/* Video background - fills the section, no parallax overshoot */
.cta-section__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* GPU compositing on touch devices to prevent scroll flickering on tablets */
@media (hover: none) and (pointer: coarse) {
  .cta-section__video-wrap {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .cta-section__video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .cta-section__video-overlay {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .cta-section {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* CTA video on portrait mobile/tablet: show more of the actual frame, less zoom */
@media (max-width: 1024px) and (orientation: portrait) {
  .cta-section__video {
    object-fit: contain;
    background: var(--color-bg);
  }
}
@media (max-width: 1024px) and (orientation: landscape) {
  .cta-section__video {
    object-fit: cover;
    object-position: center center;
  }
}

.cta-section__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Dark overlay on CTA video - also acts as fallback background */
.cta-section__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 3, 63, 0.68);
  pointer-events: none;
}

/* Ensure section itself has a video-like dark background even if video fails */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(32, 3, 63, 0.95) 0%, rgba(60, 10, 90, 0.9) 50%, rgba(32, 3, 63, 0.95) 100%);
  z-index: 0;
}

/* Fade bottom - hidden, using clip-path reveal instead */
.cta-section__fade-bottom {
  display: none;
}

.cta-section__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(237, 0, 122, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.cta-section__content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.cta-section__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0, 0.5);
}

.cta-section__desc {
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(255,255,255, 0.88);
  max-width: 520px;
  margin: 0 auto var(--sp-10);
  text-shadow: 0 1px 8px rgba(0,0,0, 0.6);
}

/* ==========================================================================
   FOOTER - Premium glassmorphism design
   ========================================================================== */

.footer {
  position: relative;
  z-index: 10;
  padding: 0 var(--sp-6) var(--sp-6);
  background: var(--color-bg);
  overflow: hidden;
  /* BULLETPROOF: footer must NEVER be hidden by any animation or GSAP state */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  display: block !important;
}

/* Gradient glow at the top of footer - removed per user request */
.footer__glow {
  display: none;
}

/* Gradient divider line */
.footer__divider-line {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(237, 0, 122, 0.5) 25%, rgba(186, 89, 243, 0.5) 50%, rgba(237, 0, 122, 0.5) 75%, transparent 100%);
}

/* Main footer content area - centered on all devices */
.footer__main {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-12);
  padding: var(--sp-10) 0 var(--sp-8);
}

/* Brand column */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__logo {
  display: inline-flex;
  margin-bottom: var(--sp-4);
}

.footer__logo-img {
  height: 48px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer__logo:hover .footer__logo-img {
  opacity: 1;
}

.footer__brand-desc {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Connect column - centered */
.footer__connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer__links-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) var(--sp-6);
  width: auto;
  max-width: 320px;
  margin: 0 auto;
}

.footer__links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer__links a svg {
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__links a:hover svg {
  opacity: 1;
  color: var(--color-primary);
}

/* Bottom bar - centered on all devices */
.footer__bottom {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: var(--text-xs);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
}

.footer__legal {
  display: flex;
  gap: var(--sp-4);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__bottom a:hover {
  color: var(--color-primary-light);
}

/* Footer is now centered on all screen sizes - no mobile overrides needed */

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32, 3, 63, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
  padding: var(--sp-4);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: rgba(20, 10, 40, 0.9);
  border: 1px solid rgba(237, 0, 122, 0.2);
  border-radius: var(--r-2xl);
  padding: var(--sp-10);
  width: 100%;
  max-width: min(500px, calc(100vw - var(--sp-8)));
  position: relative;
  transform: scale(0.92) translateY(30px);
  transition: transform 0.5s var(--ease-out);
  backdrop-filter: blur(40px);
  box-shadow: 0 40px 100px rgba(0,0,0, 0.5),
              0 0 60px rgba(237, 0, 122, 0.1);
}

.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal__close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: rgba(255,255,255, 0.04);
  transition: color 0.25s, background 0.25s;
}

.modal__close:hover { color: #fff; background: rgba(255,255,255, 0.08); }

.modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.modal__desc {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
  line-height: 1.7;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.modal__input {
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255,255,255, 0.03);
  border: 1px solid rgba(255,255,255, 0.08);
  border-radius: var(--r-lg);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.modal__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(237, 0, 122, 0.15);
}

.modal__input::placeholder { color: var(--color-text-faint); }
textarea.modal__input { resize: vertical; min-height: 100px; }

/* ==========================================================================
   FOUNDER PHOTO
   ========================================================================== */

.founder__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   FOOTER LOGO
   ========================================================================== */

.footer__logo-img {
  height: 48px;
  width: auto;
}

/* ==========================================================================
   FORM SUCCESS SPIN ANIMATION
   ========================================================================== */

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==========================================================================
   BREATHING EFFECT for section backgrounds
   ========================================================================== */



/* ==========================================================================
   PARALLAX DIAMONDS — Subtle background decoration
   ========================================================================== */

.diamonds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.diamond {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(237, 0, 122, 0.15);
  transform: rotate(45deg);
  will-change: transform;
}

.diamond--lg {
  width: 70px;
  height: 70px;
  border-color: rgba(186, 89, 243, 0.12);
}

.diamond--sm {
  width: 22px;
  height: 22px;
  border-color: rgba(237, 0, 122, 0.18);
}

.diamond--filled {
  background: rgba(237, 0, 122, 0.06);
}

.diamond--filled-purple {
  background: rgba(186, 89, 243, 0.06);
}

/* ==========================================================================
   LEGAL PAGES — Privacy Policy & Terms of Service
   ========================================================================== */

.legal-page {
  padding: calc(var(--sp-32) + var(--sp-8)) var(--sp-6) var(--sp-20);
  min-height: 100dvh;
}

.legal-page__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}

.legal-page__updated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-12);
}

.legal-page__content h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
}

.legal-page__content p {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

.legal-page__content ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--sp-4);
}

.legal-page__content ul li {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.8;
  padding-left: var(--sp-6);
  position: relative;
}

.legal-page__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--color-primary);
}

.legal-page__content a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.25s;
}

.legal-page__content a:hover {
  color: #fff;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--sp-8);
  transition: color 0.25s;
}

.legal-page__back:hover {
  color: var(--color-primary-light);
}

/* ========================================
   TABLET / TOUCH DEVICE — disable blur filters
   Prevents stuck blur on iPads and Android tablets
   ======================================== */
/* Tablet / Touch device safeguard - prevents stuck blur on iPads and Android tablets */
@media (hover: none) and (pointer: coarse) {
  .hero__title-word .char,
  .hero__subtitle,
  .hero__actions,
  .hero__content,
  .section__title,
  .section__title .word,
  .cta-section__title,
  .cta-section__desc,
  .cta-section__content,
  .intro-logo,
  .intro-logo__img,
  .mosaic-card__content {
    filter: none !important;
    -webkit-filter: none !important;
  }
}

/* Extra safeguard: any touch-capable device that isn't narrow mobile */
@media (pointer: coarse) and (min-width: 769px) {
  .hero__title-word .char,
  .hero__subtitle,
  .hero__actions,
  .hero__content,
  .section__title,
  .section__title .word,
  .cta-section__title,
  .cta-section__desc,
  .cta-section__content,
  .mosaic-card__content {
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
  }
}
