/* ============================================================
   CloudspireVoice.com — Dark Glassmorphism Theme
   Forked from Cloudspire.ai
   Navy + Purple + Blue palette | Premium PBX marketing site
   ============================================================ */

/* ----- 1. Custom Properties ----- */
:root {
  /* Core palette */
  --bg-deep:        #050510;
  --bg-primary:     #0a0a1a;
  --bg-surface:     #0f0f23;
  --bg-raised:      #161630;
  --bg-card:        rgba(15, 15, 35, 0.6);
  --border-subtle:  rgba(139, 92, 246, 0.15);
  --border-glow:    rgba(99, 102, 241, 0.3);

  /* Accent colors */
  --purple:         #7c3aed;
  --purple-light:   #a78bfa;
  --blue:           #2563eb;
  --blue-light:     #60a5fa;
  --cyan:           #06b6d4;
  --cyan-light:     #22d3ee;
  --brand-blue:     #0056b8;
  --green:          #94d60a;
  --color-problem:  #a78bfa;

  /* Gradients */
  --gradient-primary:   linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
  --gradient-hero:      linear-gradient(160deg, #0a0a1a 0%, #0f0525 30%, #0a0a1a 60%, #050a20 100%);
  --gradient-section:   linear-gradient(180deg, #0a0a1a 0%, #0f0f23 50%, #0a0a1a 100%);
  --gradient-cta:       linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --gradient-glow:      linear-gradient(135deg, rgba(124,58,237,0.4) 0%, rgba(37,99,235,0.4) 100%);

  /* Text */
  --text-primary:   #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  /* Typography */
  --font-primary:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad:    6rem 0;
  --container-max:  1200px;
  --container-wide: 1400px;
  --gap:            2rem;
  --radius:         16px;
  --radius-sm:      10px;
  --radius-pill:    100px;

  /* Transitions */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --transition:     0.3s var(--ease-out);
}


/* ----- 2. Reset & Base ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--purple-light);
}

ul, ol { list-style: none; }

::selection {
  background: rgba(124, 58, 237, 0.4);
  color: var(--text-primary);
}


/* ----- SVG Icons (Lucide) ----- */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}


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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

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

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* AI feature gradient — animated shimmer for AI-specific text */
.ai-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 30%, #06b6d4 60%, #7c3aed 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aiTextShimmer 4s ease-in-out infinite;
}
@keyframes aiTextShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-pill);
}


/* ----- 4. Layout ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--container-wide);
}

section {
  padding: var(--section-pad);
  position: relative;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}


/* ----- 5. Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo img {
  height: 56px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Nav dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-trigger {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: inherit;
  transition: color var(--transition);
}
.nav__dropdown-trigger:hover {
  color: var(--text-primary);
}
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  z-index: 100;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav__dropdown-menu a:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}
.nav__dropdown-menu a::after {
  display: none;
}

.nav__cta {
  flex-shrink: 0;
}

/* Mobile menu */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(5, 5, 16, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-subtle);
    transition: right var(--transition);
    padding: 2rem;
    z-index: 1000;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    font-size: 1.1rem;
  }

  /* Resources dropdown — inline on mobile, no hover popup */
  .nav__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .nav__dropdown-menu a {
    padding: 0.3rem 0 0.3rem 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  .nav__dropdown-trigger {
    font-size: 1.1rem;
  }
  .nav__dropdown-trigger svg {
    display: none;
  }

  .nav__cta--desktop { display: none; }
}

@media (min-width: 769px) {
  .nav__cta--mobile { display: none; }
}


/* ----- 6. Buttons & CTAs ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--purple-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn svg,
.btn .arrow {
  transition: transform var(--transition);
}

.btn:hover svg,
.btn:hover .arrow {
  transform: translateX(3px);
}


/* ----- 7. Hero Section ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(
    135deg,
    #0c0018 0%,
    #102250 20%,
    #0c0c35 40%,
    #1a0830 60%,
    #081d40 80%,
    #0c0018 100%
  );
  background-size: 400% 400%;
  animation: heroGradient 20s ease infinite;
  overflow: hidden;
  padding-top: 80px;
}

@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 0 80px rgba(124, 58, 237, 0.25), 0 0 40px rgba(37, 99, 235, 0.12);
}

.hero h1 .rotating-text {
  display: inline-block;
  position: relative;
  text-align: center;
}

.hero h1 .rotating-text .word {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  left: 0;
  opacity: 0;
}

.hero h1 .rotating-text .word.active {
  opacity: 1;
  position: relative;
}

/* Roll-in per-character wrappers */
.hero h1 .rotating-text .word .char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero h1 .rotating-text .word .char {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}

.hero h1 .rotating-text .word .char.in {
  transform: translateY(0);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Hero headline lines — dramatic staged reveal */
.hero-line {
  display: inline-block;
  opacity: 0;
}
.hero-line--1 {
  animation: heroLineSlideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.hero-line--2 {
  animation: heroLineSlideLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}
@keyframes heroLineSlideRight {
  0% {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}
@keyframes heroLineSlideLeft {
  0% {
    opacity: 0;
    transform: translateX(60px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* Hero AI word accent — dramatic entrance */
.hero-ai-word {
  display: inline-block;
  position: relative;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 30%, var(--cyan) 60%, var(--purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aiWordEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both,
             aiShimmer 3s ease-in-out 2.2s infinite;
}
@keyframes aiWordEntrance {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
    filter: blur(12px);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) translateY(-5px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}
@keyframes aiShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glow burst behind AI Brain */
.hero-ai-word::before {
  content: '';
  position: absolute;
  inset: -20px -30px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.4) 0%, rgba(37,99,235,0.2) 40%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: aiGlowBurst 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both,
             aiGlowPulse 3s ease-in-out 2.4s infinite;
}
@keyframes aiGlowBurst {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0.6; transform: scale(1); }
}
@keyframes aiGlowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Underline sweep */
.hero-ai-word::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 3px;
  transform-origin: left;
  animation: aiUnderlineSweep 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.8s both,
             aiUnderlinePulse 3s ease-in-out 2.4s infinite alternate;
}
@keyframes aiUnderlineSweep {
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}
@keyframes aiUnderlinePulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Hero capability badges */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s;
}
.hero-badge:hover {
  border-color: var(--purple);
  color: var(--text-primary);
}

/* Staggered entrance on page load */
.hero__content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroEntrance 0.8s var(--ease-out) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.4s; }
.hero__content > *:nth-child(3) { animation-delay: 0.8s; }
.hero__content > *:nth-child(4) { animation-delay: 1.0s; }
.hero__content > *:nth-child(5) { animation-delay: 1.2s; }

@keyframes heroEntrance {
  to { opacity: 1; transform: translateY(0); }
}

/* Aurora glow */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 1300px;
  height: 1000px;
  top: -15%;
  left: -10%;
  background: radial-gradient(
    ellipse at center,
    rgba(124, 58, 237, 0.9) 0%,
    rgba(99, 102, 241, 0.5) 30%,
    rgba(37, 99, 235, 0.25) 50%,
    transparent 68%
  );
  animation: aurora1 18s ease-in-out infinite alternate;
}

.hero::after {
  width: 1200px;
  height: 900px;
  bottom: -10%;
  right: -10%;
  background: radial-gradient(
    ellipse at center,
    rgba(6, 182, 212, 0.85) 0%,
    rgba(37, 99, 235, 0.45) 30%,
    rgba(6, 182, 212, 0.2) 50%,
    transparent 68%
  );
  animation: aurora2 22s ease-in-out infinite alternate;
}

@keyframes aurora1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(100px, 60px) scale(1.2); }
  100% { transform: translate(-50px, -40px) scale(0.9); }
}

@keyframes aurora2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-80px, -50px) scale(1.15); }
  100% { transform: translate(60px, 40px) scale(0.95); }
}

/* Hero grid (disabled) */
.hero__grid {
  display: none;
}

/* Hero brand mark (oversized cloud icon) */
.hero__brand-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: auto;
  aspect-ratio: 454 / 320;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  animation: brand-pulse 10s ease-in-out infinite;
  transition: translate 0.4s ease-out;
}

.hero__brand-mark svg {
  width: 100%;
  height: 100%;
}

@keyframes brand-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.15; }
  50%      { transform: translate(-50%, -50%) scale(1.06) rotate(2deg); opacity: 0.22; }
}

/* Sub-page orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  bottom: -5%;
  left: -10%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Noise texture overlay */
.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  pointer-events: none;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* Sub-page hero (smaller) */
.hero--sub {
  min-height: 50vh;
  padding-top: 120px;
  padding-bottom: 4rem;
}

.hero--sub h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}


/* ----- 8. Logo Marquee ----- */
.marquee {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 15, 35, 0.3);
  overflow: hidden;
  position: relative;
}

/* Edge fade masks */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(5, 5, 16, 1) 0%, transparent 100%);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(5, 5, 16, 1) 0%, transparent 100%);
}

.marquee__label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: none;
  position: relative;
  z-index: 3;
}

.marquee__track {
  display: flex;
  gap: 1.5rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee__track:hover {
  animation-play-state: paused;
}

.marquee__track--reverse {
  animation: marquee-reverse 45s linear infinite;
  margin-top: 1rem;
}

.marquee__track--reverse:hover {
  animation-play-state: paused;
}

.marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Row 2 (capabilities) */
.marquee__track--reverse .marquee__item {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.22);
}

.marquee__item .icon {
  width: 1.1em;
  height: 1.1em;
  opacity: 0.7;
}

.marquee__item:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

.marquee__track--reverse .marquee__item:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.2);
}

.marquee__item:hover .icon {
  opacity: 1;
}

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

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


/* ----- 9. Glassmorphism Cards ----- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, transparent 50%, rgba(6,182,212,0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(124, 58, 237, 0.1);
}

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

.glass-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(37,99,235,0.2) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-size: 1.5rem;
}

.glass-card__visual {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, rgba(37,99,235,0.04) 50%, rgba(6,182,212,0.03) 100%);
  border: 1px solid rgba(124, 58, 237, 0.1);
  overflow: hidden;
}

.glass-card__illustration {
  width: 100%;
  height: 100%;
}

.glass-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.glass-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.glass-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan-light);
}

.glass-card__link .arrow {
  transition: transform var(--transition);
}

.glass-card:hover .glass-card__link .arrow {
  transform: translateX(4px);
}


/* ----- 10. Stats Section ----- */
.stats {
  background: var(--gradient-section);
  position: relative;
  overflow: hidden;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  padding: 2rem 1rem;
}

.stat__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

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


/* ----- 11. Process / How It Works ----- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.process__grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
  opacity: 0.3;
}

.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: var(--gradient-cta);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.process__step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.process__step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-inline: auto;
  max-width: 300px;
}

@media (max-width: 768px) {
  .process__grid { grid-template-columns: 1fr; gap: 3rem; }
  .process__grid::before { display: none; }
}


/* ----- 12. Testimonials ----- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  position: relative;
  padding-top: 1rem;
}

.testimonial-card__quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: -0.25rem;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.testimonial-card__author {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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


/* ----- 13. Industries ----- */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--transition);
}

.industry-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.industry-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.industry-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.industry-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-inline: auto;
}

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

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


/* ----- 14. CTA Banner ----- */
.cta-banner {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(37,99,235,0.15) 50%, rgba(6,182,212,0.15) 100%);
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-inline: auto;
  margin-bottom: 2rem;
}


/* ----- 15. Footer ----- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 300px;
}

.footer__brand img {
  height: 52px;
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer__col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

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

.footer__bottom {
  border-top: 1px solid rgba(100, 116, 139, 0.15);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.footer__social a svg {
  width: 20px;
  height: 20px;
}

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }

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


/* ----- 16. Solutions Page ----- */
.solution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.solution-block:nth-child(even) {
  direction: rtl;
}

.solution-block:nth-child(even) > * {
  direction: ltr;
}

.solution-block__content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.solution-block__content p {
  margin-bottom: 1.5rem;
}

.solution-block__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.solution-block__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.solution-block__features li .check {
  color: var(--cyan-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.solution-block__visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated visual elements for solution blocks */
.visual-anim {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.visual-anim__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.visual-anim__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  z-index: 2;
}

.visual-anim__mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

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

.visual-anim__lines span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0.3;
  animation: scanline 4s ease-in-out infinite;
}

@keyframes scanline {
  0%, 100% { transform: translateX(-100%); opacity: 0; }
  50% { transform: translateX(100%); opacity: 0.3; }
}

@media (max-width: 768px) {
  .solution-block,
  .solution-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
}


/* ----- 17. Compliance Badges ----- */
.compliance__grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.compliance-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  min-width: 140px;
  transition: all var(--transition);
}

.compliance-badge:hover {
  border-color: var(--border-glow);
}

.compliance-badge__icon {
  font-size: 2rem;
}

.compliance-badge__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.compliance-badge__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}


/* ----- 18. Integration Grid ----- */
.integration-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.integration-item:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

.integration-item__icon {
  font-size: 1.2rem;
}

.integration-item__logo {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}


/* ----- 19. About Page ----- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: none;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.value-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-inline: auto;
}

.offices__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.office-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.office-card h4 {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.office-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

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


/* ----- 20. Contact Page ----- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 12px;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: none;
}

.form-status--success {
  display: block;
  background: rgba(148, 214, 10, 0.1);
  border: 1px solid rgba(148, 214, 10, 0.3);
  color: var(--green);
}

.form-status--error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.contact-info__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}

.contact-info__item:not(:last-child) {
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.contact-info__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info__text p,
.contact-info__text a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info__text a:hover {
  color: var(--cyan-light);
}

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


/* ----- 21. Scroll Reveal Animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}


/* ----- 22. Utility ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  border: none;
  margin: 0;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }

/* Problem section accent */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.problem-item {
  text-align: center;
  padding: 1.5rem;
}

.problem-item__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.problem-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-problem);
}

.problem-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-inline: auto;
}

.solution-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.solution-intro h3 {
  color: var(--cyan-light);
  margin-bottom: 1rem;
}

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


/* ============================================================
   23. PBX-Specific Components (CloudspireVoice.com additions)
   ============================================================ */

/* ----- 23a. Bento Grid — Screenshot Showcases ----- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-item {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.bento-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(124, 58, 237, 0.08);
}

/* Bento span classes */
.bento-item--wide    { grid-column: span 8; }
.bento-item--narrow  { grid-column: span 4; }
.bento-item--half    { grid-column: span 6; }
.bento-item--full    { grid-column: span 12; }
.bento-item--third   { grid-column: span 4; }

.bento-item__content {
  padding: 2rem;
}

.bento-item__content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.bento-item__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.bento-item__image {
  width: 100%;
  height: auto;
  display: block;
}

.bento-item__image--padded {
  padding: 1rem 1rem 0;
}

/* Bento image with overlay label */
.bento-item__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(0deg, rgba(5, 5, 16, 0.9) 0%, transparent 100%);
  z-index: 2;
}

.bento-item__label h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.bento-item__label p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .bento-item--wide,
  .bento-item--narrow { grid-column: span 6; }
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item--wide,
  .bento-item--narrow,
  .bento-item--half,
  .bento-item--full,
  .bento-item--third { grid-column: span 1; }
}


/* ----- 23b. Screenshot Frame / Browser Mockup ----- */
.screenshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  max-width: 100%;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(124, 58, 237, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all var(--transition);
}

.screenshot-frame:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(124, 58, 237, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: translateY(-4px);
}

/* Browser chrome bar */
.screenshot-frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border-subtle);
}

.screenshot-frame__dots {
  display: flex;
  gap: 6px;
}

.screenshot-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.3);
}

.screenshot-frame__dot--red    { background: #ff5f57; }
.screenshot-frame__dot--yellow { background: #ffbd2e; }
.screenshot-frame__dot--green  { background: #28c940; }

.screenshot-frame__url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The screenshot image itself */
.screenshot-frame__image {
  width: 100%;
  height: auto;
  display: block;
}

/* Phone device mockup */
.device-frame {
  position: relative;
  display: inline-block;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(100, 116, 139, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.device-frame__screen {
  border-radius: 18px;
  overflow: hidden;
}

.device-frame__screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Laptop mockup */
.laptop-frame {
  position: relative;
  max-width: 100%;
}

.laptop-frame__screen {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border: 2px solid rgba(100, 116, 139, 0.2);
  border-bottom: none;
  background: var(--bg-surface);
}

.laptop-frame__screen img {
  width: 100%;
  height: auto;
  display: block;
}

.laptop-frame__base {
  height: 16px;
  background: linear-gradient(180deg, #2d2d4a 0%, #1a1a2e 100%);
  border-radius: 0 0 6px 6px;
  border: 2px solid rgba(100, 116, 139, 0.2);
  border-top: none;
  position: relative;
}

.laptop-frame__base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: rgba(100, 116, 139, 0.15);
}


/* ----- 23c. Feature Comparison Table ----- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.comparison-table thead th {
  background: var(--bg-raised);
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table thead th:first-child {
  text-align: left;
}

/* Highlight the recommended column */
.comparison-table th.highlight,
.comparison-table td.highlight {
  background: rgba(124, 58, 237, 0.08);
  position: relative;
}

.comparison-table thead th.highlight {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
}

.comparison-table thead th.highlight::before {
  content: 'Recommended';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.2rem 0.75rem;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.comparison-table tbody td {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid rgba(100, 116, 139, 0.08);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: rgba(124, 58, 237, 0.03);
}

/* Check/cross icons in comparison */
.comparison-check {
  color: var(--cyan-light);
  font-size: 1.1rem;
}

.comparison-cross {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 1.1rem;
}

.comparison-table__footer {
  text-align: center;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.75rem 0.5rem;
  }

  .comparison-table thead th.highlight::before {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
  }
}

/* Responsive table wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}


/* ----- 23d. Alternating Content + Screenshot Sections ----- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-row__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-row__content .section-label {
  align-self: flex-start;
}

.feature-row__content h3 {
  font-size: 1.75rem;
  line-height: 1.2;
}

.feature-row__content p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: none;
}

.feature-row__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-row__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-row__list li .check {
  color: var(--cyan-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-row__visual {
  position: relative;
  max-width: 100%;
}

/* Floating badge on screenshot — raised 3D effect, sits partially on image */
.feature-row__badge {
  position: absolute;
  top: -14px;
  right: 16px;
  padding: 0.45rem 1.1rem;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4), 0 2px 6px rgba(0,0,0,0.2);
  z-index: 3;
}

@media (max-width: 768px) {
  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .feature-row__content,
  .feature-row__visual {
    min-width: 0;
    max-width: 100%;
  }

  .feature-row__badge {
    top: -10px;
    right: 12px;
  }
}


/* ----- 23e. Stats Counter Section ----- */
.stats-counter {
  background: var(--gradient-section);
  position: relative;
  overflow: hidden;
}

.stats-counter .noise-overlay {
  z-index: 0;
}

.stats-counter__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stats-counter__item {
  padding: 2.5rem 1rem;
  position: relative;
}

/* Vertical dividers between stats */
.stats-counter__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-subtle), transparent);
}

.stats-counter__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stats-counter__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stats-counter__sublabel {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

  .stats-counter__item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-counter__grid { grid-template-columns: 1fr; }
}


/* ----- 23f. Step-by-Step "How It Works" (Enhanced) ----- */
.steps {
  counter-reset: step-counter;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

/* Connecting line between steps */
.steps__grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
  opacity: 0.25;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.step-card__number {
  counter-increment: step-counter;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: var(--gradient-cta);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  position: relative;
}

/* Pulse ring on hover */
.step-card:hover .step-card__number::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--purple-light);
  opacity: 0.4;
  animation: stepPulse 1.5s ease-in-out infinite;
}

@keyframes stepPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0; }
}

.step-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(37,99,235,0.12) 100%);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-inline: auto;
  max-width: 280px;
}

@media (max-width: 768px) {
  .steps__grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps__grid::before { display: none; }
}


/* ----- 23g. Quick Navigation Sticky Bar (Features Page) ----- */
.jump-nav {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(5, 5, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
  overflow: hidden;
}

.jump-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.jump-nav__inner::-webkit-scrollbar {
  display: none;
}

.jump-nav__link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition);
}

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

.jump-nav__link.active {
  color: var(--purple-light);
}

.jump-nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px 1px 0 0;
}

.jump-nav__link .icon {
  font-size: 1em;
  opacity: 0.6;
}

.jump-nav__link:hover .icon,
.jump-nav__link.active .icon {
  opacity: 1;
}

@media (max-width: 768px) {
  .jump-nav {
    top: 56px;
  }

  .jump-nav__link {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
}


/* ----- 23h. Image Gallery / Lightbox ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition);
  aspect-ratio: 16/10;
}

.gallery__item:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Zoom overlay icon on hover */
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 16, 0.4);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(0deg, rgba(5, 5, 16, 0.85) 0%, transparent 100%);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery__item:hover .gallery__caption {
  transform: translateY(0);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 5, 16, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-out);
}

.lightbox.active .lightbox__image {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 15, 35, 0.8);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition);
}

.lightbox__close:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--border-glow);
}

.lightbox__caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.5rem;
  background: rgba(15, 15, 35, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 15, 35, 0.8);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition);
}

.lightbox__nav:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--border-glow);
}

.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }


/* ----- 23i. Lazy Loading Placeholder ----- */
.lazy-image {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Skeleton placeholder while loading */
.lazy-placeholder {
  background: linear-gradient(90deg,
    var(--bg-surface) 25%,
    var(--bg-raised) 37%,
    var(--bg-surface) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

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


/* ----- 23j. Pricing Table ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.pricing-card--featured {
  border-color: var(--purple);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
  transform: scale(1.04);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-card__name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  margin-bottom: 0.75rem;
}

.pricing-card__price {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card__features li .check {
  color: var(--cyan-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .pricing-card--featured { transform: none; }
}


/* ----- 23k. FAQ / Accordion ----- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: var(--border-glow);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

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

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.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), padding 0.4s var(--ease-out);
}

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

.faq-item__answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
}


/* ============================================================
   24. Prefers Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Keep hero entrance visible with reduced motion */
  .hero__content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  html { scroll-behavior: auto; }

  .hero { animation: none; }
  .hero::before, .hero::after { animation: none; }
  .hero__orb { animation: none; opacity: 0.2; }
  .hero__brand-mark { animation: none; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-left { opacity: 1; transform: none; }
  .reveal-right { opacity: 1; transform: none; }
  .lazy-image { opacity: 1; }
}


/* ============================================================
   25. Light Mode Theme
   All overrides scoped to [data-theme="light"].
   Dark theme (:root) is completely untouched above.
   ============================================================ */

/* ----- 25a. Smooth theme transitions ----- */
html[data-theme] body,
html[data-theme] .nav,
html[data-theme] .glass-card,
html[data-theme] .testimonial-card,
html[data-theme] .industry-card,
html[data-theme] .value-card,
html[data-theme] .office-card,
html[data-theme] .compliance-badge,
html[data-theme] .integration-item,
html[data-theme] .contact-info__card,
html[data-theme] .footer,
html[data-theme] .section-label,
html[data-theme] .marquee,
html[data-theme] .form-group input,
html[data-theme] .form-group textarea,
html[data-theme] .form-group select,
html[data-theme] .bento-item,
html[data-theme] .screenshot-frame,
html[data-theme] .comparison-table,
html[data-theme] .jump-nav,
html[data-theme] .faq-item,
html[data-theme] .pricing-card {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ----- 25b. Variable overrides ----- */
[data-theme="light"] {
  --bg-deep:        #f8f9fc;
  --bg-primary:     #ffffff;
  --bg-surface:     #f1f5f9;
  --bg-raised:      #e8edf4;
  --bg-card:        rgba(255, 255, 255, 0.7);

  --border-subtle:  rgba(99, 102, 241, 0.12);
  --border-glow:    rgba(99, 102, 241, 0.25);

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #64748b;

  --color-problem:  #7c3aed;

  --gradient-section: linear-gradient(180deg, #ffffff 0%, #f1f5f9 50%, #ffffff 100%);
  --gradient-hero:    linear-gradient(160deg, #f8f9fc 0%, #ede9fe 30%, #f8f9fc 60%, #e0f2fe 100%);
  --gradient-glow:    linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(37,99,235,0.08) 100%);
}

[data-theme="light"] .section-label {
  color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
}

/* ----- 25c. Hero overrides ----- */
[data-theme="light"] .hero {
  background: linear-gradient(
    135deg,
    #ede9fe 0%,
    #dbeafe 20%,
    #f0f0ff 40%,
    #ede9fe 60%,
    #e0f2fe 80%,
    #ede9fe 100%
  );
  background-size: 400% 400%;
}

[data-theme="light"] .hero::before {
  width: 1400px;
  height: 1100px;
  background: radial-gradient(
    ellipse at center,
    rgba(124, 58, 237, 0.55) 0%,
    rgba(99, 102, 241, 0.35) 30%,
    rgba(37, 99, 235, 0.15) 50%,
    transparent 68%
  );
}

[data-theme="light"] .hero::after {
  width: 1300px;
  height: 1000px;
  background: radial-gradient(
    ellipse at center,
    rgba(6, 182, 212, 0.5) 0%,
    rgba(37, 99, 235, 0.3) 30%,
    rgba(6, 182, 212, 0.12) 50%,
    transparent 68%
  );
}

[data-theme="light"] .hero h1 {
  text-shadow: none;
}

[data-theme="light"] .noise-overlay {
  opacity: 0.04;
}

[data-theme="light"] .hero__brand-mark {
  opacity: 0.08;
}

[data-theme="light"] .hero__orb--1 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  opacity: 0.6;
}

[data-theme="light"] .hero__orb--2 {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  opacity: 0.6;
}

/* ----- 25d. Navigation overrides ----- */
[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

@media (max-width: 768px) {
  [data-theme="light"] .nav__links {
    background: rgba(255, 255, 255, 0.97);
    border-left: 1px solid rgba(99, 102, 241, 0.1);
  }
}

/* ----- 25e. Card / glassmorphism overrides ----- */
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .glass-card::before {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), transparent 50%, rgba(6,182,212,0.08));
}

[data-theme="light"] .glass-card:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass-card__icon {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(37,99,235,0.08));
  border: 1px solid rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .glass-card__visual {
  background: linear-gradient(135deg, rgba(124,58,237,0.04) 0%, rgba(37,99,235,0.03) 50%, rgba(6,182,212,0.02) 100%);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .testimonial-card,
[data-theme="light"] .industry-card,
[data-theme="light"] .value-card,
[data-theme="light"] .office-card,
[data-theme="light"] .compliance-badge,
[data-theme="light"] .integration-item,
[data-theme="light"] .contact-info__card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .industry-card:hover,
[data-theme="light"] .value-card:hover,
[data-theme="light"] .testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

/* ----- 25f. Component overrides ----- */

/* Section label pill */
[data-theme="light"] .section-label {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12);
}

/* Marquee */
[data-theme="light"] .marquee {
  background: rgba(241, 245, 249, 0.5);
}

[data-theme="light"] .marquee::before {
  background: linear-gradient(90deg, rgba(248, 249, 252, 1) 0%, transparent 100%);
}

[data-theme="light"] .marquee::after {
  background: linear-gradient(270deg, rgba(248, 249, 252, 1) 0%, transparent 100%);
}

[data-theme="light"] .marquee__item {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .marquee__track--reverse .marquee__item {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.12);
}

[data-theme="light"] .marquee__item:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .marquee__track--reverse .marquee__item:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.22);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.08);
}

/* Buttons */
[data-theme="light"] .btn--primary {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .btn--primary:hover {
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .btn--secondary:hover {
  background: rgba(99, 102, 241, 0.06);
}

/* Process */
[data-theme="light"] .process__number {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

/* CTA banner */
[data-theme="light"] .cta-banner::before {
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(37,99,235,0.06) 50%, rgba(6,182,212,0.06));
}

/* Selection */
[data-theme="light"] ::selection {
  background: rgba(124, 58, 237, 0.2);
}

/* Links */
[data-theme="light"] a:hover {
  color: var(--purple);
}

[data-theme="light"] .glass-card__link {
  color: var(--blue);
}

[data-theme="light"] .solution-intro h3 {
  color: var(--blue);
}

/* Footer */
[data-theme="light"] .footer__bottom {
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

/* Contact item dividers */
[data-theme="light"] .contact-info__item:not(:last-child) {
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

/* Forms */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: #ffffff;
  border: 1px solid #d1d5db;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

[data-theme="light"] .form-group select option {
  background: #ffffff;
  color: var(--text-primary);
}

/* Divider utility */
[data-theme="light"] .divider {
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
}

/* Solution block visual */
[data-theme="light"] .solution-block__visual {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

/* ----- 25g. PBX component light overrides ----- */

/* Screenshot frame */
[data-theme="light"] .screenshot-frame {
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .screenshot-frame:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .screenshot-frame__chrome {
  background: #e8edf4;
}

[data-theme="light"] .screenshot-frame__dot {
  background: rgba(100, 116, 139, 0.2);
}

[data-theme="light"] .screenshot-frame__url {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.1);
}

/* Bento grid */
[data-theme="light"] .bento-item {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .bento-item:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .bento-item__label {
  background: linear-gradient(0deg, rgba(248, 249, 252, 0.95) 0%, transparent 100%);
}

/* Comparison table */
[data-theme="light"] .comparison-table {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .comparison-table thead th {
  background: #f1f5f9;
}

[data-theme="light"] .comparison-table thead th.highlight {
  background: rgba(124, 58, 237, 0.06);
}

[data-theme="light"] .comparison-table td.highlight {
  background: rgba(124, 58, 237, 0.03);
}

[data-theme="light"] .comparison-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.03);
}

/* Jump nav */
[data-theme="light"] .jump-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(99, 102, 241, 0.1);
}

/* Gallery */
[data-theme="light"] .gallery__item {
  border-color: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .gallery__item:hover {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .gallery__caption {
  background: linear-gradient(0deg, rgba(248, 249, 252, 0.95) 0%, transparent 100%);
  color: var(--text-primary);
}

/* Lightbox */
[data-theme="light"] .lightbox {
  background: rgba(248, 249, 252, 0.95);
}

[data-theme="light"] .lightbox__close,
[data-theme="light"] .lightbox__nav {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .lightbox__caption {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.1);
}

/* Pricing */
[data-theme="light"] .pricing-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pricing-card--featured {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.08);
}

/* FAQ */
[data-theme="light"] .faq-item {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .faq-item.active {
  border-color: rgba(99, 102, 241, 0.2);
}

/* Step card */
[data-theme="light"] .step-card__number {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .step-card__icon {
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(37,99,235,0.06));
  border-color: rgba(124, 58, 237, 0.08);
}

/* Stats counter dividers */
[data-theme="light"] .stats-counter__item:not(:last-child)::after {
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.15), transparent);
}

/* Device frames */
[data-theme="light"] .device-frame {
  background: linear-gradient(135deg, #e8edf4 0%, #ddd 100%);
  border-color: rgba(100, 116, 139, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .laptop-frame__screen {
  border-color: rgba(100, 116, 139, 0.15);
}

[data-theme="light"] .laptop-frame__base {
  background: linear-gradient(180deg, #d1d5db 0%, #bdc3c7 100%);
  border-color: rgba(100, 116, 139, 0.15);
}


/* ----- 25h. Theme toggle button ----- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  background: rgba(99, 102, 241, 0.1);
}

.theme-toggle__icon {
  pointer-events: none;
}

@media (max-width: 768px) {
  .theme-toggle {
    width: 34px;
    height: 34px;
    margin-left: auto;
    margin-right: 0.25rem;
  }

  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }

  .nav__logo img {
    height: 44px;
  }
}

/* ── Screenshot Carousel ─────────────────────────────────────── */
.screenshot-carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 60px;
}
.screenshot-carousel__viewport {
  position: relative;
  overflow: hidden;
}
.screenshot-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.screenshot-carousel__slide {
  flex: 0 0 100%;
  padding: 0 1rem;
  text-align: center;
  box-sizing: border-box;
}
.screenshot-carousel__slide h4 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.screenshot-carousel__slide p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}
.screenshot-carousel__prev,
.screenshot-carousel__next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(10px);
  z-index: 2;
}
.screenshot-carousel__prev:hover,
.screenshot-carousel__next:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.screenshot-carousel__prev { left: 8px; }
.screenshot-carousel__next { right: 8px; }
.screenshot-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}
.screenshot-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.3);
  border: 1px solid rgba(124, 58, 237, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  padding: 0;
}
.screenshot-carousel__dot:hover {
  background: rgba(124, 58, 237, 0.5);
}
.screenshot-carousel__dot.active {
  background: var(--purple);
  border-color: var(--purple);
  transform: scale(1.3);
}
@media (max-width: 768px) {
  .screenshot-carousel { padding: 0 40px; }
  .screenshot-carousel__prev { left: 2px; }
  .screenshot-carousel__next { right: 2px; }
  .screenshot-carousel__prev,
  .screenshot-carousel__next { width: 36px; height: 36px; font-size: 1.2rem; }
}
