html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

:root {
  /* Premium Palette */
  --primary: #2f6fed;
  --primary-glow: rgba(47, 111, 237, 0.5);
  --secondary: #12a67f;
  --accent: #f4b400;
  --dark-bg: #0b111a;
  --dark-surface: #151d29;
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  
  /* Dynamic Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --bento-radius: 2rem;
}

[data-bs-theme="light"] {
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --section-bg-alt: #f8fafc;
  --section-bg-main: #ffffff;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.05);
  --glow-opacity: 0.15;
  --terminal-bg: #ffffff;
  --terminal-text: #1e293b;
  --footer-bg: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
  --footer-text: #1e293b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

[data-bs-theme="dark"] {
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151d29 0%, #0b111a 100%);
  --section-bg-alt: #0b111a;
  --section-bg-main: #151d29;
  --card-bg: rgba(21, 29, 41, 0.8);
  --card-border: rgba(255, 255, 255, 0.1);
  --glow-opacity: 0.08;
  --terminal-bg: #151d29;
  --terminal-text: #ffffff;
  --footer-bg: linear-gradient(180deg, #0b111a 0%, #151d29 100%);
  --footer-text: #f1f5f9;
  --glass-bg: rgba(15, 23, 41, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Base Styles */
body {
  font-family: 'Public Sans', sans-serif;
  color: var(--text-main);
  background: var(--bg-gradient);
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-page-loading {
  overflow-x: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.22), transparent 36%),
    radial-gradient(circle at 82% 88%, rgba(16, 185, 129, 0.16), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(244, 197, 66, 0.08), transparent 50%),
    var(--bg-gradient);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  transform-origin: center center;
}

.page-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.98);
}

.loader-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.loader-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.loader-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.loader-ai-pulse {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563EB;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
}

.loader-cinematic-stage {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.08), rgba(34, 211, 238, 0.08), rgba(244, 197, 66, 0.05));
}

.salon-scene {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.tool-chip {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.tool-chip i {
  font-size: 1rem;
}

.tool-chip.scissor { animation: scissorChop 1.8s ease-in-out infinite; }
.tool-chip.comb { animation: brushSwipe 2.6s ease-in-out infinite; }
.tool-chip.bottle { animation: bottlePulse 2.8s ease-in-out infinite; }
.tool-chip.mirror { animation: mirrorSweep 3.2s ease-in-out infinite; }

.salon-scene-ops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.ops-card {
  min-height: 56px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transform: translateY(10px);
  animation: opsCardSync 2.6s ease-in-out infinite;
}

.ops-card.appt { animation-delay: 0s; }
.ops-card.clients { animation-delay: 0.15s; }
.ops-card.inventory { animation-delay: 0.3s; }
.ops-card.revenue { animation-delay: 0.45s; }

.loader-progress-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.simple-loader-status {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
}

.simple-loader-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.simple-loader-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.96), rgba(252, 211, 77, 0.92));
  transition: width 0.22s ease;
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.14);
}

.loader-subtext {
  font-size: 0.84rem;
  color: #64748b;
  opacity: 0.92;
}

@keyframes scissorChop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-2px) rotate(-4deg); }
  60% { transform: translateY(0) rotate(0deg); }
}

@keyframes brushSwipe {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  55% { transform: translateX(3px); }
}

@keyframes bottlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes mirrorSweep {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes opsCardSync {
  0%, 100% { transform: translateY(10px); opacity: 0.58; }
  50% { transform: translateY(0); opacity: 1; }
}

.loader-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.2), transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(244, 197, 66, 0.12), transparent 32%);
  animation: ambientDrift 12s ease-in-out infinite alternate;
}

.loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loader-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 197, 66, 0.7);
  filter: blur(0.2px);
  animation: particleFloat 8s linear infinite;
}

.loader-particles span:nth-child(1) { left: 10%; top: 70%; animation-delay: -1s; }
.loader-particles span:nth-child(2) { left: 22%; top: 20%; animation-delay: -4s; background: rgba(37, 99, 235, 0.7); }
.loader-particles span:nth-child(3) { left: 40%; top: 80%; animation-delay: -2s; }
.loader-particles span:nth-child(4) { left: 62%; top: 30%; animation-delay: -5s; background: rgba(34, 211, 238, 0.8); }
.loader-particles span:nth-child(5) { left: 78%; top: 72%; animation-delay: -3s; }
.loader-particles span:nth-child(6) { left: 90%; top: 24%; animation-delay: -6s; background: rgba(167, 139, 250, 0.8); }

.page-loader-panel {
  width: min(94vw, 720px);
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* Keep loader lightweight on phones/tablets */
@media (max-width: 991px) {
  .loader-cinematic-stage,
  .loader-modules,
  .loader-particles {
    display: none !important;
  }

  .page-loader-panel {
    width: min(92vw, 430px);
    padding: 1rem;
  }
}

[data-bs-theme="dark"] .page-loader-panel {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.8));
  border-color: rgba(255, 255, 255, 0.12);
}

.page-loader-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: panelShine 3.6s ease-in-out infinite;
}

.loader-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.loader-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.loader-ai-pulse {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563EB;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  animation: aiPulse 1.8s ease-in-out infinite;
}

.loader-cinematic-stage {
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.08), rgba(34, 211, 238, 0.08), rgba(244, 197, 66, 0.05));
}

.salon-scene {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.salon-scene-tools {
  margin-bottom: 0.65rem;
}

.tool-chip {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.tool-chip.scissor { animation: scissorChop 1.8s ease-in-out infinite; }
.tool-chip.brush { animation: brushSwipe 2.4s ease-in-out infinite; }
.tool-chip.dryer { animation: dryerDrift 2.8s ease-in-out infinite; }
.tool-chip.bottle { animation: bottleBounce 2.5s ease-in-out infinite; }

.salon-scene-ops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.ops-card {
  min-height: 54px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  transform: translateY(10px);
  opacity: 0.55;
  animation: opsCardSync 2.6s ease-in-out infinite;
}

.ops-card.appt { animation-delay: 0s; }
.ops-card.clients { animation-delay: 0.2s; }
.ops-card.inventory { animation-delay: 0.4s; }
.ops-card.revenue { animation-delay: 0.6s; }

.loader-graph {
  height: 58px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.02);
  padding: 0.25rem 0.4rem;
}

.loader-graph-svg {
  width: 100%;
  height: 100%;
}

.loader-graph-svg polyline {
  fill: none;
  stroke: #2563EB;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: drawGraph 2.6s ease-in-out infinite;
}

.loader-status-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.loader-status {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
  position: relative;
  background: linear-gradient(90deg, var(--text-muted), var(--text-main), var(--text-muted));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: statusShimmer 3s linear infinite;
}

.loader-status.is-swapping {
  opacity: 0.4;
  transform: translateY(3px);
}

.loader-percent {
  font-weight: 700;
  color: #2563EB;
}

.loader-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
  overflow: hidden;
}

.loader-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563EB, #22D3EE, #10B981, #F4C542);
  background-size: 180% 100%;
  transition: width 0.2s ease;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.5);
  animation: barShift 2s linear infinite;
}

.loader-modules {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.module-item {
  border-radius: 9px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.58);
  padding: 0.4rem 0.35rem;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  justify-content: center;
  transition: all 0.35s ease;
}

.module-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.module-item.active {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.module-item.active .dot {
  background: #2563EB;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.18);
}

.module-item.complete {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.5);
}

.module-item.complete .dot {
  background: #10B981;
}

@keyframes toolFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-4deg); }
}

@keyframes cardPulse {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes statusShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

@keyframes ambientDrift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(1.5%, -1%, 0); }
}

@keyframes particleFloat {
  0% { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translate3d(-18px, -120px, 0) scale(1.1); opacity: 0; }
}

@keyframes panelShine {
  0% { left: -45%; }
  55%, 100% { left: 120%; }
}

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

@keyframes scissorChop {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  30% { transform: rotate(-8deg) translateY(-3px); }
  60% { transform: rotate(8deg) translateY(0); }
}

@keyframes brushSwipe {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(6px) rotate(8deg); }
}

@keyframes dryerDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

@keyframes bottleBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

@keyframes opsCardSync {
  0%, 100% { transform: translateY(8px); opacity: 0.58; }
  40% { transform: translateY(0); opacity: 1; }
}

@keyframes drawGraph {
  0% { stroke-dashoffset: 340; opacity: 0.6; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -40; opacity: 0.85; }
}

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

@media (max-width: 767px) {
  .page-loader-panel {
    width: min(96vw, 560px);
    padding: 1rem;
    border-radius: 20px;
  }

  .salon-scene-ops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loader-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Custom Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Animated Background Orbs */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  animation: float-glow 20s infinite alternate ease-in-out;
}

.glow-1 { top: -10%; left: -10%; background: var(--primary); }
.glow-2 { bottom: -10%; right: -10%; background: var(--secondary); animation-delay: -5s; }

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Modern Navbar */
.navbar-glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(var(--bg-rgb), 0.7);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar-glass.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Hero Section Enhancement */
.hero-section {
  padding: 100px 0 80px;
  position: relative;
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.btn-premium {
  position: relative;
  padding: 12px 32px;
  border-radius: 14px;
  font-weight: 600;
  overflow: hidden;
  transition: var(--transition-bounce);
  border: none;
  z-index: 1;
}

.btn-premium.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-premium.primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-premium:hover::after {
  left: 100%;
}

/* Running Text (Marquee) */
.marquee-container {
  overflow: hidden;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 20px 0;
  margin: 40px 0;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  opacity: 0.3;
  margin: 0 40px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-item i {
  margin-right: 15px;
  color: var(--primary);
}

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

/* Premium Cards Overhaul */
.modern-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 35px;
  transition: var(--transition-bounce);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), transparent, var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: var(--transition-smooth);
}

/* --- Portfolio Mosaic & Badges --- */
.glass-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.glass-badge:hover {
    background: white;
    transform: translateX(10px);
    border-color: var(--primary);
}

.icon-box-sm {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.modern-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

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

.modern-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.1), rgba(18, 166, 127, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition-bounce);
  position: relative;
  z-index: 2;
}

.modern-card:hover .icon-box {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 10px 20px var(--primary-glow);
}

.card-blur-blob {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--primary);
  filter: blur(60px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.modern-card:hover .card-blur-blob {
  opacity: 0.1;
}

/* Stat Cards */
.stat-card {
  padding: 30px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  background: var(--primary);
}

.stat-card:hover * {
  color: white !important;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 5px;
}

/* Form Styles */
.premium-form-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 50px;
  box-shadow: var(--glass-shadow);
}

.form-floating > .form-control {
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-main);
}

.form-floating > .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Hover Shine Effect */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.shine-effect:hover::before {
  left: 125%;
}

/* Trust Logos */
.trust-logos {
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.logo-item {
  filter: grayscale(1);
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Persona Tabs */
.nav-pills-premium {
  background: var(--card-bg);
  padding: 8px;
  border-radius: 100px;
  border: 1px solid var(--card-border);
  display: inline-flex;
}

.nav-pills-premium .nav-link {
  border-radius: 100px;
  padding: 12px 30px;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.nav-pills-premium .nav-link.active {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* ROI Calculator */
.roi-card {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 40px;
  border: 1px solid var(--card-border);
}

input[type="range"] {
  height: 8px;
  -webkit-appearance: none;
  background: var(--card-border);
  border-radius: 10px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* --- Premium Immersive Pricing Section --- */
.pricing-immersive-section {
  position: relative;
  width: 100%;
  padding: var(--section-py) 0;
  background: var(--bg-gradient);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-immersive-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, var(--section-bg-alt), transparent);
  z-index: 1;
  pointer-events: none;
}

.pricing-glow {
  position: absolute;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.pricing-glow.glow-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--primary), transparent 70%);
}

.container-pricing-fluid {
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(2rem, 8vw, 10rem);
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Premium Pricing Card Architecture */
.pricing-card-ecosystem {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: 48px;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.elite-pricing-card {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 48px;
  padding: clamp(2rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.elite-pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 48px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), transparent, #F4C542);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.2;
  transition: opacity 0.5s ease;
}

.elite-pricing-card:hover {
  transform: translateY(-15px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.15);
}

.elite-pricing-card:hover::before {
  opacity: 0.5;
}

/* Pricing Typography */
.pricing-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 3rem 0;
}

.currency-symbol {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  opacity: 0.5;
}

.price-amount {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.billing-cycle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Custom Sleek Toggle */
.premium-pricing-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2rem;
}

.toggle-option {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.toggle-option.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.discount-tag {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  margin-left: 8px;
}

/* Feature List (Integrated) */
.pricing-feature-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-feature-item i {
  color: var(--primary);
}

/* --- Gallery & Features Immersive Extensions --- */
.gallery-immersive-section,
.features-immersive-section {
  position: relative;
  width: 100%;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.gallery-immersive-section {
  background: var(--bg-gradient);
  padding: clamp(6rem, 15vh, 10rem) 0;
}

.gallery-immersive-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 300px;
  background: linear-gradient(to bottom, var(--bg-gradient), transparent);
  z-index: 1;
}

.gallery-glow {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
  pointer-events: none;
}

.glow-gallery-1 { top: -10%; right: -5%; background: var(--primary); }
.glow-gallery-2 { bottom: -10%; left: -5%; background: #F4C542; }

/* Device Ecosystem Stage */
.device-ecosystem-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto 0;
  height: clamp(500px, 70vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 1rem;
  box-shadow: 0 50px 100px rgba(0,0,0,0.2);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.device-glass-card img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  transition: transform 0.8s ease;
}

/* Card Specific Positions */
.frame-desktop {
  width: clamp(500px, 60vw, 900px);
  z-index: 2;
  transform: translateY(0);
  animation: float-desktop 8s infinite ease-in-out;
}

.frame-tablet {
  width: clamp(280px, 30vw, 450px);
  left: -5%;
  bottom: 10%;
  z-index: 3;
  transform: rotate(-5deg);
  animation: float-tablet 7s infinite ease-in-out;
}

.frame-mobile {
  width: clamp(180px, 20vw, 260px);
  right: -5%;
  top: 15%;
  z-index: 3;
  transform: rotate(5deg);
  animation: float-mobile 9s infinite ease-in-out;
}

/* Float Animations */
@keyframes float-desktop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes float-tablet { 0%, 100% { transform: translate(0, 0) rotate(-5deg); } 50% { transform: translate(-10px, -15px) rotate(-2deg); } }
@keyframes float-mobile { 0%, 100% { transform: translate(0, 0) rotate(5deg); } 50% { transform: translate(10px, 15px) rotate(8deg); } }

.device-glass-card:hover {
  z-index: 10;
  transform: scale(1.05) translateY(-30px) !important;
  border-color: var(--primary);
  box-shadow: 0 70px 140px rgba(0,0,0,0.3);
}

.device-glass-card:hover img {
  transform: scale(1.02);
}

.device-info-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.device-glass-card:hover .device-info-overlay {
  opacity: 1;
}

@media (max-width: 991px) {
  .device-ecosystem-stage {
    height: auto;
    flex-direction: column;
    gap: 2rem;
  }
  .device-glass-card {
    position: static;
    width: 100% !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Architecture Showcase Extensions */
.features-immersive-section {
  background: #ffffff;
}

.features-immersive-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 200px;
  background: linear-gradient(to bottom, #f1f5f9, transparent);
  z-index: 1;
}

.infra-glow {
  position: absolute;
  width: 1000px; height: 1000px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.glow-infra-1 { top: -10%; left: -5%; background: var(--primary); }
.glow-infra-2 { bottom: -10%; right: -5%; background: #10B981; }

.container-features-fluid {
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(2rem, 8vw, 10rem);
  margin: 0;
  position: relative;
  z-index: 2;
}

.architecture-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
}

.infra-glass-node {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 48px;
  padding: clamp(2rem, 4vw, 4rem);
  padding-inline: clamp(1.25rem, 2vw, 2.25rem);
  height: 100%;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.infra-glass-node:hover {
  transform: translateY(-20px) scale(1.02);
  background: white;
  border-color: rgba(var(--primary-rgb), 0.2);
  box-shadow: 0 50px 100px rgba(0,0,0,0.06);
}

.node-status-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.status-light {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 15px #10B981;
  animation: pulse-status 2s infinite;
}

.node-icon-premium {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
  opacity: 0.8;
}

.infra-glass-node h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: auto;
}

.capability-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.capability-row i {
  color: var(--primary);
  font-size: 1.25rem;
  opacity: 0.7;
}

.infra-glass-node:hover .capability-row i {
  transform: translateX(5px);
  opacity: 1;
}

.node-span-3 { grid-column: span 3; }

@media (max-width: 1400px) {
  .node-span-3 { grid-column: span 6; }
}

@media (max-width: 768px) {
  .node-span-3 { grid-column: span 12; }
  .infra-glass-node { padding: 2.5rem; padding-inline: 1.25rem; border-radius: 32px; }
}

/* --- Testimonials & Demo Immersive Extensions --- */
.testimonials-immersive-section,
.demo-immersive-section {
  position: relative;
  width: 100%;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.testimonials-immersive-section {
  background: #ffffff;
}

.demo-immersive-section {
  background: var(--dark-bg);
  color: white;
}

.container-testimonials-fluid,
.container-demo-fluid {
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(2rem, 8vw, 10rem);
  margin: 0;
  position: relative;
  z-index: 2;
}

.demo-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

.demo-glow.glow-bottom-right {
  bottom: -20%;
  right: -10%;
  background: var(--primary);
}

.demo-glow.glow-top-left {
  top: -20%;
  left: -10%;
  background: #F4C542;
}

/* FAQ Accordion (Updated) */
.accordion-premium .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.accordion-premium .accordion-button {
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  padding: 25px 0;
  box-shadow: none;
}

.accordion-premium .accordion-button:not(.collapsed) {
  color: var(--primary);
}

.accordion-premium .accordion-body {
  padding: 0 0 25px 0;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-section { padding-top: 80px; }
  .hero-title { font-size: 3rem; }
  .pricing-card.featured { transform: scale(1); margin: 20px 0; }
}

/* --- Luxury Ecosystem Mosaic Styles --- */
.luxury-ecosystem-section {
  position: relative;
  background: var(--bg-light);
  min-height: 800px;
  padding: 100px 0;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #F4C542 0%, #D4A017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.ecosystem-glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.orb-1 {
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, #F4C542, transparent);
}

.orb-2 {
  bottom: -10%;
  left: -10%;
  background: radial-gradient(circle, #6366f1, transparent);
}

/* Architecture Timeline */
.architecture-timeline {
  position: relative;
  padding-left: 2rem;
}

.architecture-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--primary), transparent);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-node {
  position: absolute;
  left: -2.75rem;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(13, 202, 240, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-node {
  transform: scale(1.2);
  background: var(--primary);
  color: white;
}

/* Mosaic Grid Layout */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  position: relative;
  min-height: 650px;
}

.mosaic-card {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Asymmetric Positioning - Only on desktop */
@media (min-width: 992px) {
  .card-boutique { transform: translateY(0); }
  .card-enterprise { transform: translateY(80px); }
  .card-franchise { transform: translateY(-40px); }
  .card-academy { transform: translateY(40px); }
  
  .mosaic-card:hover {
    transform: scale(1.05) translateY(-10px) !important;
    z-index: 10;
  }
}

/* Premium Glass Card */
.glass-card-premium {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 40px;
  border: 1px solid var(--card-border);
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.glass-card-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(244, 197, 66, 0.3), transparent, rgba(13, 202, 240, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.glass-card-premium:hover::after {
  opacity: 1;
}

.luxury-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(244, 197, 66, 0.1), rgba(244, 197, 66, 0.02));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #F4C542;
  border: 1px solid rgba(244, 197, 66, 0.2);
  margin-bottom: 1.5rem;
}

/* Intelligence Paths */
.intelligence-paths {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.1;
}

.path-line {
  fill: none;
  stroke: #F4C542;
  stroke-width: 1;
  stroke-dasharray: 10, 10;
  animation: dash 30s linear infinite;
}

/* Fluid Typography & Badges */
.pill-badge {
  display: inline-flex;
  padding: 8px 20px;
  background: rgba(13, 202, 240, 0.1);
  border: 1px solid rgba(13, 202, 240, 0.2);
  border-radius: 100px;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-uppercase: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.ls-tight { letter-spacing: -0.04em; }

/* --- Refined Spacing System (Senior UI Optimization) --- */
:root {
  --section-py: clamp(5rem, 10vh, 10rem);
  --hero-pt: clamp(7rem, 10vh, 9rem); /* Reduced from 10rem-14rem for tighter fit */
  --content-gap: clamp(1rem, 2.5vh, 2rem);
  --inner-padding: clamp(1.5rem, 4vw, 2.5rem);
}

.py-section {
  padding: var(--section-py) 0;
}

/* --- Premium Glass Navbar --- */
.navbar-premium {
  padding: 0.8rem 0; /* Tighter navbar padding */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.glass-nav-container {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 0.5rem clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.brand-main { 
  font-weight: 800; 
  color: #F4C542; /* Luxury Golden Yellow */
}

.brand-accent { 
  font-weight: 800;
  background: linear-gradient(135deg, #2563EB 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link-premium {
  position: relative;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link-premium:hover, .nav-link-premium.active { color: var(--primary); }

.nav-link-premium::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link-premium:hover::after, .nav-link-premium.active::after { width: 100%; }

.btn-luxury-primary {
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-weight: 700;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-luxury-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 202, 240, 0.3);
}

/* --- Hero Premium --- */
.hero-premium {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-gradient);
  padding-top: var(--hero-pt);
  padding-bottom: var(--section-py);
}

.hero-mesh-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: orb-float 20s infinite alternate;
}

.mesh-1 { width: 600px; height: 600px; top: -10%; right: -5%; background: var(--primary); opacity: var(--glow-opacity); }
.mesh-2 { width: 500px; height: 500px; bottom: 0; left: -5%; background: var(--accent); opacity: var(--glow-opacity); }
.mesh-3 { width: 400px; height: 400px; top: 20%; left: 30%; background: #F4C542; opacity: calc(var(--glow-opacity) * 0.5); }

@keyframes orb-float {
  from { transform: translate(0, 0) rotate(0); }
  to { transform: translate(100px, 50px) rotate(30deg); }
}

.hero-display {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--content-gap);
}

.gold-highlight {
  color: #F4C542;
  position: relative;
}

.hero-subtext {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  max-width: 620px;
}

/* --- Premium Buttons --- */
.btn-xl { padding: 1.2rem 2.5rem; font-size: 1.1rem; border-radius: 100px; font-weight: 700; }

.btn-gold-shine {
  background: #F4C542;
  color: #000;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-gold-shine:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(244, 197, 66, 0.4); }

.btn-gold-shine::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: rotate(45deg);
  animation: shine 4s infinite;
}

.btn-glass-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  transition: all 0.3s ease;
}

.btn-glass-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); }

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

/* --- Floating Metrics --- */
.hero-metrics-grid {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 1.25rem 2.25rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  width: fit-content;
}

.metric-val { display: block; font-size: 1.75rem; font-weight: 800; color: var(--text-main); }
.metric-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.1em; }
.metric-separator { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.1); }

/* --- UI Command Center --- */
.ui-command-center {
  position: relative;
  width: 100%;
  height: clamp(400px, 60vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-floating-card {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  transition: all 0.5s ease;
  box-shadow: var(--glass-shadow);
}

.main-dashboard {
  padding: var(--inner-padding);
  width: 100%;
  max-width: 520px;
  z-index: 2;
  animation: float-main 6s infinite ease-in-out;
}

.insight-card {
  width: 240px;
  top: -15px;
  left: clamp(-60px, -5vw, -20px);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 3;
  animation: float-sub 5s infinite ease-in-out;
}

.activity-card {
  width: 200px;
  bottom: -15px;
  right: clamp(-40px, -4vw, -10px);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  animation: float-alt 7s infinite ease-in-out;
}

@keyframes float-main { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes float-sub { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, -15px); } }
@keyframes float-alt { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(15px, 10px); } }

.text-gold { color: #F4C542; }

/* Theme Toggle Refinement */
.theme-switch-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-switch-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: clamp(3.5rem, 8vh, 5.5rem);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-premium {
    padding-top: 120px;
    text-align: center;
  }
  
  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .ui-command-center {
    margin-top: 4rem;
    height: 450px;
  }
  
  .glass-nav-container { border-radius: 20px; padding: 0.5rem 1rem; }
  .hero-metrics-grid { margin: 0 auto; gap: 1rem; padding: 1rem; flex-wrap: wrap; justify-content: center; }
  .metric-separator { display: none; }
  .insight-card { left: 10px; }
  .activity-card { right: 10px; }
}

/* --- Intelligence Section Rhythm Optimization --- */
#analytics {
  padding: var(--section-py) 0;
}

#analytics .text-center {
  margin-bottom: clamp(4rem, 8vh, 6rem);
}

#analytics h2 {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

#analytics p.text-muted {
  max-width: 580px;
  line-height: 1.6;
}

/* Card Internal Spatial Polish */
#analytics .modern-card {
  padding: var(--inner-padding);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
}

#analytics .icon-box {
  margin-bottom: 2.25rem;
  flex-shrink: 0;
}

#analytics h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

#analytics p.text-muted {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
  margin-top: auto;
}

/* --- Bento Architecture Ecosystem --- */
.architecture-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.architecture-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  z-index: 1;
}

.glow-1 { top: -10%; left: -10%; background: var(--primary); }
.glow-2 { bottom: -10%; right: -10%; background: #F4C542; }

/* Intelligence Rail (Left Side) */
.intelligence-rail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 1rem;
}

.intelligence-rail::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.rail-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  position: relative;
  z-index: 2;
}

.rail-glow {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--primary);
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rail-item:hover .rail-glow { opacity: 0.2; }
.rail-item:hover { transform: translateX(10px); }

/* Bento Architecture Grid (Right Side) */
.bento-architecture-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(280px, auto));
  gap: 1.5rem;
}

.boutique-card { grid-column: span 5; }
.enterprise-card { grid-column: span 7; }
.franchise-card { grid-column: span 7; }
.academy-card { grid-column: span 5; }

.pillar-glass-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pillar-glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.card-status-pill {
  position: absolute;
  top: 2rem;
  right: 2rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.icon-luxury {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
}

.gold-glow { background: rgba(244, 197, 66, 0.1); color: #F4C542; }
.blue-glow { background: rgba(37, 99, 235, 0.1); color: #2563EB; }
.violet-glow { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.green-glow { background: rgba(16, 185, 129, 0.1); color: #10B981; }

/* Mini Visuals */
.pillar-visual-mini {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2rem;
}

.mini-bar-pulse {
  width: 40px;
  height: 4px;
  background: #F4C542;
  border-radius: 100px;
  position: relative;
  animation: mini-pulse 2s infinite;
}

@keyframes mini-pulse {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50% { opacity: 0.5; transform: scaleX(0.7); }
}

.network-nodes-visual {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 2rem;
}

.node { width: 8px; height: 8px; border-radius: 50%; background: rgba(37, 99, 235, 0.3); }
.node.n1 { background: #2563EB; animation: node-blink 3s infinite; }
.node.n2 { animation: node-blink 3s infinite 1s; }
.node.n3 { animation: node-blink 3s infinite 2s; }

@keyframes node-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.mini-data-tag {
  margin-top: auto;
  font-size: 0.75rem;
  color: #8B5CF6;
  font-weight: 600;
  padding-top: 2rem;
}

.academy-progress-mini {
  margin-top: auto;
  display: flex;
  gap: 6px;
  padding-top: 2rem;
}

.prog-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.prog-dot.active { background: #10B981; box-shadow: 0 0 10px #10B981; }

@media (max-width: 1199px) {
  .bento-architecture-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card-item { grid-column: span 1 !important; }
}

@media (max-width: 767px) {
  .bento-architecture-grid { grid-template-columns: 1fr; }
  .pillar-glass-card { padding: 2rem; }
}

/* --- Comprehensive Salon OS Section (Refined: Expansive Layout) --- */
.solutions-section {
  position: relative;
  width: 100%;
  min-height: auto;
  padding: var(--section-py) 0;
  background: var(--bg-gradient);
  overflow: hidden;
  display: block; /* Changed from flex to block to ensure full width behavior */
}

.solutions-glow {
  position: absolute;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.12;
  z-index: 0;
}

.solutions-glow.glow-top { top: -20%; right: -15%; background: var(--primary); }
.solutions-glow.glow-bottom { bottom: -25%; left: -15%; background: #F4C542; }

/* Expansive Container System */
.container-os-fluid {
  width: 100%;
  max-width: 100%; /* Truly fluid for ultra-wide monitors */
  padding: 0 clamp(2rem, 8vw, 10rem); /* Premium wide padding */
  margin: 0;
  position: relative;
  z-index: 2;
}

.os-header-area {
  margin-bottom: clamp(3rem, 8vh, 6rem);
  text-align: center;
}

.os-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
}

.os-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 48px;
  padding: clamp(2rem, 4vw, 4rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.os-card:hover {
  transform: translateY(-20px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
}

/* Fluid Column Distribution */
.os-card-appointments { grid-column: span 4; }
.os-card-revenue { grid-column: span 4; }
.os-card-inventory { grid-column: span 4; }

@media (max-width: 1400px) {
  .container-os-fluid { max-width: 100%; }
}

@media (max-width: 1200px) {
  .os-card-appointments, .os-card-revenue { grid-column: span 6; }
  .os-card-inventory { grid-column: span 12; }
}

@media (max-width: 768px) {
  .os-card-appointments, .os-card-revenue, .os-card-inventory { grid-column: span 12; }
  .os-card { border-radius: 32px; padding: 2.5rem; }
}

.os-card .icon-box-premium {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.os-card:hover .icon-box-premium {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 15px 30px var(--primary-glow);
}

.os-card h4 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.os-card p {
  opacity: 0.75;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Internal Visual Modules - Enhanced for Width */
.os-visual-module {
  margin-top: auto;
  padding-top: clamp(2.5rem, 5vh, 5rem);
  position: relative;
}

/* Appointment Pulse */
.apt-pulse-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-ring {
  width: 12px;
  height: 12px;
  background: #10B981;
  border-radius: 50%;
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10B981;
  animation: pulse-expand 2s infinite;
}

@keyframes pulse-expand {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.visual-stat-badge {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Revenue Flow Visual */
.revenue-flow-visual {
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.flow-bar {
  flex: 1;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.os-card:hover .flow-bar {
  opacity: 0.8;
}

/* Inventory Alert Visual */
.inventory-gauge-container {
  width: 100%;
}

.gauge-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #F4C542, #EAB308);
  border-radius: 100px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.os-card:hover .gauge-fill {
  width: 85%;
}

.os-card-revenue .icon-box-premium { color: var(--primary); }
.os-card-inventory .icon-box-premium { color: #F4C542; }
.os-card-appointments .icon-box-premium { color: #10B981; }

/* --- Editorial Vision Section (Refined: Full-Width Expansive) --- */
.vision-section {
  position: relative;
  width: 100%;
  padding: var(--section-py) 0;
  background: var(--section-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.vision-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  z-index: 0;
}

.vision-glow.glow-left { top: -15%; left: -10%; background: var(--primary); }
.vision-glow.glow-right { bottom: -20%; right: -10%; background: #F4C542; }

/* Expansive Container System */
.container-vision-fluid {
  width: 100%;
  max-width: 100%; /* Fully immersive width */
  padding: 0 clamp(2rem, 8vw, 10rem);
  margin: 0;
  position: relative;
  z-index: 2;
}

.vision-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

.vision-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  color: var(--text-main);
  max-width: 900px;
}

.vision-text-block {
  max-width: 600px;
}

.vision-lead {
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.vision-description {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Expansive Image Ecosystem */
.image-ecosystem {
  position: relative;
  padding: 3rem;
  display: flex;
  justify-content: flex-end;
}

.main-image-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 10;
  border-radius: 56px;
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(0,0,0,0.15);
  transform: perspective(1200px) rotateY(-8deg);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.image-ecosystem:hover .main-image-frame {
  transform: perspective(1200px) rotateY(0deg) translateY(-15px);
  box-shadow: 0 70px 140px rgba(0,0,0,0.2);
}

.main-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-frame-overlay {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 56px;
  pointer-events: none;
  z-index: 3;
}

.floating-badge-vision {
  position: absolute;
  top: 15%;
  left: -5%;
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 32px;
  box-shadow: var(--glass-shadow);
  z-index: 4;
  display: flex;
  flex-direction: column;
  animation: vision-float 7s infinite alternate ease-in-out;
}

.badge-val {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.badge-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.decorative-accent {
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(244, 197, 66, 0.2);
  border-radius: 50%;
  z-index: 1;
}

/* --- Testimonials & Demo Immersive Extensions --- */
.testimonials-immersive-section,
.demo-immersive-section {
  position: relative;
  width: 100%;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.testimonials-immersive-section {
  background: #ffffff;
}

.demo-immersive-section {
  background: var(--dark-bg);
  color: white;
}

.container-testimonials-fluid,
.container-demo-fluid {
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(2rem, 8vw, 10rem);
  margin: 0;
  position: relative;
  z-index: 2;
}

.demo-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

.demo-glow.glow-bottom-right {
  bottom: -20%;
  right: -10%;
  background: var(--primary);
}

.demo-glow.glow-top-left {
  top: -20%;
  left: -10%;
  background: #F4C542;
}

/* FAQ Accordion (Updated) */
.accordion-premium .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.accordion-premium .accordion-button {
  background: transparent;
  color: white;
  padding: 1.5rem 0;
  font-weight: 700;
  box-shadow: none;
}

.accordion-premium .accordion-button:not(.collapsed) {
  color: var(--primary);
}

.accordion-premium .accordion-body {
  padding: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* --- Final Polish: Trust & Footer --- */
/* --- Final Polish: Trust & Footer Redesign --- */
.footer-immersive {
  width: 100%;
  background: var(--dark-bg);
  color: white;
  padding: clamp(4rem, 10vh, 8rem) 0 4rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.footer-immersive::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
  pointer-events: none;
}

.glow-footer-1 { top: -10%; left: -10%; background: var(--primary); }
.glow-footer-2 { bottom: -10%; right: -10%; background: #F4C542; }

/* Partner Marquee */
.partner-marquee-area {
  padding-bottom: clamp(3rem, 6vh, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: clamp(3rem, 6vh, 5rem);
}

.marquee-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.marquee-item {
  opacity: 0.3;
  transition: all 0.4s ease;
  filter: grayscale(1) brightness(2);
}

.marquee-item:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: translateY(-5px);
}

/* Footer Main Structure */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-col-brand { grid-column: span 4; }
.footer-col-links { grid-column: span 2; }
.footer-col-contact { grid-column: span 4; }

.footer-brand-summary {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.6;
  margin: 2rem 0;
  max-width: 320px;
}

.footer-social-tray {
  display: flex;
  gap: 12px;
}

.social-glass-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-glass-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.footer-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 2rem;
  display: block;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link-item a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-link-item a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-link-item a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-link-item a:hover::after {
  width: 100%;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-pill {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-pill i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 4px;
}

.contact-pill div p {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.contact-pill div span {
  font-size: 0.85rem;
  opacity: 0.5;
  font-weight: 500;
}

/* Bottom Bar */
.footer-bottom-bar {
  margin-top: clamp(4rem, 8vh, 6rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright-text {
  font-size: 0.9rem;
  opacity: 0.4;
  font-weight: 500;
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: white;
}

@media (max-width: 1200px) {
  .footer-col-brand { grid-column: span 12; margin-bottom: 2rem; }
  .footer-col-links { grid-column: span 6; }
  .footer-col-contact { grid-column: span 12; margin-top: 2rem; }
}

@media (max-width: 768px) {
  .footer-col-links { grid-column: span 12; }
  .footer-bottom-bar { flex-direction: column; text-align: center; }
  .legal-links { justify-content: center; }
}

/* --- Inquiry Terminal Form Fixes --- */
.inquiry-terminal-panel {
  background: #ffffff !important;
  border-radius: 48px !important;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
}

.inquiry-terminal-form .form-control {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  border-radius: 20px !important;
  padding: 1.25rem 1.5rem !important;
  font-weight: 600 !important;
  height: auto !important;
}

.inquiry-terminal-form .form-floating label {
  color: #64748b !important;
  padding-left: 1.5rem !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.inquiry-terminal-form .form-control:focus {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1) !important;
  color: #000000 !important;
}

.inquiry-terminal-form .form-floating > .form-control:focus ~ label,
.inquiry-terminal-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary) !important;
  opacity: 1 !important;
  transform: scale(0.85) translateY(-1rem) translateX(0.15rem) !important;
}

.inquiry-terminal-form .captcha-container {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  width: 100%;
}

.btn-submit-premium {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  border: none;
  border-radius: 100px;
  padding: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white !important;
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.3);
  transition: all 0.4s ease;
}

.btn-submit-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(var(--primary-rgb), 0.4);
  color: white !important;
}

/* --- Theme-Aware Component Overrides --- */
.demo-immersive-section {
  background: var(--footer-bg) !important;
  color: var(--text-main) !important;
  transition: var(--transition-smooth);
}

.demo-glow {
  opacity: var(--glow-opacity) !important;
  transition: var(--transition-smooth);
}

.footer-glow {
  opacity: var(--glow-opacity) !important;
  transition: var(--transition-smooth);
}

.inquiry-terminal-panel {
  background: var(--terminal-bg) !important;
  color: var(--terminal-text) !important;
  box-shadow: var(--glass-shadow) !important;
  border: 1px solid var(--card-border) !important;
  transition: var(--transition-smooth);
}

.inquiry-terminal-form .form-control {
  background: var(--section-bg-alt) !important;
  color: var(--text-main) !important;
  border-color: var(--card-border) !important;
}

.inquiry-terminal-form .form-control:focus {
  background: var(--terminal-bg) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1) !important;
}

.inquiry-terminal-form .form-floating label {
  color: var(--text-muted) !important;
}

.footer-immersive {
  background: var(--footer-bg) !important;
  color: var(--footer-text) !important;
  transition: var(--transition-smooth);
}

.footer-immersive::before {
  background: linear-gradient(to right, transparent, var(--card-border), transparent) !important;
}

.social-glass-icon {
  background: var(--card-bg) !important;
  border-color: var(--card-border) !important;
  color: var(--text-main) !important;
}

.footer-link-item a {
  color: var(--text-muted) !important;
}

.footer-link-item a:hover {
  color: var(--primary) !important;
}

.contact-pill i {
  color: var(--primary) !important;
}

.contact-pill div p {
  color: var(--text-main) !important;
}

.contact-pill div span {
  color: var(--text-muted) !important;
}

.footer-bottom-bar {
  border-top: 1px solid var(--card-border) !important;
}

.copyright-text, .legal-link {
  color: var(--text-muted) !important;
}

.marquee-item {
  filter: grayscale(1) invert(var(--invert-marquee, 0)) !important;
  opacity: 0.2 !important;
}

[data-bs-theme="dark"] {
  --invert-marquee: 1;
}

.marquee-item:hover {
  filter: grayscale(0) invert(0) !important;
  opacity: 1 !important;
}

/* --- Global Component Theme Normalization --- */
.modern-card, .os-card, .pillar-glass-card, .infra-glass-node, .pricing-card-ecosystem {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  color: var(--text-main) !important;
  box-shadow: var(--glass-shadow) !important;
  transition: var(--transition-smooth);
}

.solutions-section {
  background: var(--section-bg-alt) !important;
}

.infrastructure-section, .architecture-section, .features-immersive-section {
  background: var(--section-bg-main) !important;
}

.testimonials-immersive-section, .vision-section, .solutions-section {
  background: var(--section-bg-alt) !important;
}

.analytics-section, #analytics {
  background: var(--section-bg-main) !important;
}

/* Fixed: Input contrast in dark mode */
[data-bs-theme='dark'] .inquiry-terminal-form .form-control {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

[data-bs-theme='dark'] .inquiry-terminal-form .form-control:focus {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--primary) !important;
}

[data-bs-theme='dark'] .inquiry-terminal-panel {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* reCAPTCHA v3 badge position */
.grecaptcha-badge {
  left: 14px !important;
  right: auto !important;
  bottom: 14px !important;
  z-index: 9999;
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  overflow: hidden !important;
  border-radius: 10px;
  transform: scale(0.86);
  transform-origin: left bottom;
}

@media (max-width: 767px) {
  .grecaptcha-badge {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    transform: scale(0.78);
    left: 6px !important;
    bottom: 6px !important;
  }
}


/* --- Mobile Navigation Optimization --- */
.custom-toggler {
  border: none !important;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.toggler-icon {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggler-icon::before, .toggler-icon::after {
  content: '';
  width: 100%;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  left: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggler-icon::before { top: -8px; }
.toggler-icon::after { top: 8px; }

.custom-toggler[aria-expanded='true'] .toggler-icon {
  background: transparent !important;
}

.custom-toggler[aria-expanded='true'] .toggler-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.custom-toggler[aria-expanded='true'] .toggler-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    margin-top: 1rem;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
  }
  
  .navbar-nav {
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  
  .nav-link-premium {
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }
  
  .nav-item.ms-lg-2 {
    width: 100%;
    margin-top: 1rem;
    margin-left: 0 !important;
  }
  
  .btn-luxury-primary {
    width: 100%;
    text-align: center;
    padding: 1rem !important;
  }

  .pricing-card-ecosystem {
    border-radius: 24px;
    padding: 0;
  }

  .elite-pricing-card {
    border-radius: 28px;
    padding: 1.5rem;
    border-width: 1px;
  }

  .elite-pricing-card::before {
    border-radius: 28px;
  }
}

