/* ========================================
   Velora — Premium SaaS Landing Page
   Design System & Styles
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors — refined palette, lower saturation for premium feel */
  --bg-primary: #07070e;
  --bg-secondary: #0b0b19;
  --bg-tertiary: #0f0f24;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #ededf2;
  --text-secondary: #8888a0;
  --text-muted: #555570;

  --accent-purple: #9b5de5;
  --accent-blue: #3a7bd5;
  --accent-cyan: #00b4d8;
  --accent-green: #10b981;
  --gradient-main: linear-gradient(135deg, #9b5de5 0%, #5b6abf 40%, #3a7bd5 70%, #00b4d8 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(155, 93, 229, 0.12) 0%, rgba(58, 123, 213, 0.08) 100%);

  /* Spacing */
  --section-py: clamp(80px, 10vw, 140px);
  --container-max: 1200px;
  --container-px: 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --glow-purple: 0 0 80px rgba(155, 93, 229, 0.12);
  --glow-blue: 0 0 80px rgba(58, 123, 213, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #f0f2f7;
  --bg-tertiary: #e9ebf2;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --glow-purple: 0 0 80px rgba(155, 93, 229, 0.06);
  --glow-blue: 0 0 80px rgba(58, 123, 213, 0.06);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.08);
  --gradient-subtle: linear-gradient(135deg, rgba(155, 93, 229, 0.06) 0%, rgba(58, 123, 213, 0.04) 100%);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 249, 252, 0.85);
}

[data-theme="light"] .nav-links.active {
  background: rgba(248, 249, 252, 0.95);
}

[data-theme="light"] .hero-grid-bg {
  background-image:
    linear-gradient(rgba(155, 93, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 93, 229, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse, rgba(91, 106, 191, 0.08) 0%, rgba(155, 93, 229, 0.04) 40%, transparent 70%);
}

[data-theme="light"] .dashboard-dots span:nth-child(1) {
  background: #ef4444;
}

[data-theme="light"] .dashboard-dots span:nth-child(2) {
  background: #f59e0b;
}

[data-theme="light"] .dashboard-dots span:nth-child(3) {
  background: #22c55e;
}

[data-theme="light"] .dash-card-value,
[data-theme="light"] .stat-number {
  color: var(--text-primary);
}

[data-theme="light"] .logo-item {
  color: #6b7280;
}

[data-theme="light"] .footer-social a {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .glow-orb {
  opacity: 0.3;
}

[data-theme="light"] .chart-bar {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .node {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .node::after {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .path {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lock-shackle {
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .feature-card:hover .lock-shackle {
  border-color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .lock-body {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .icon-ring {
  border: 1px dashed rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .icon-dot {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .comparison-table .dim {
  color: var(--text-secondary);
  opacity: 0.8;
}

[data-theme="light"] .comparison-table th:first-child,
[data-theme="light"] .comparison-table td:first-child {
  background: var(--bg-primary);
  box-shadow: 6px 0 15px -6px rgba(0, 0, 0, 0.05);
}

/* Stats Bar Light Theme Overrides */
[data-theme="light"] .stats-glass-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.05),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .stats-number {
  color: var(--text-primary);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .stats-desc {
  color: var(--text-secondary);
}

[data-theme="light"] .stats-icon {
  color: var(--accent-blue);
  filter: drop-shadow(0 0 10px rgba(58, 123, 213, 0.3));
}

[data-theme="light"] .stats-item:hover .stats-icon {
  color: var(--accent-purple);
}

[data-theme="light"] .stats-progress {
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

[data-theme="light"] .stats-item:not(:last-child)::after {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.06), transparent);
}

[data-theme="light"] .aurora-glow {
  background: radial-gradient(circle at 50% 50%, rgba(155, 93, 229, 0.06), rgba(58, 123, 213, 0.04) 30%, transparent 60%);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ===== NOISE TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

[data-theme="light"] body::before {
  opacity: 0.025;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes barGrow {
  from {
    height: 0;
  }

  to {
    height: var(--h);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes shimmer-border {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes subtle-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-6px) rotate(0.5deg);
  }

  66% {
    transform: translateY(3px) rotate(-0.3deg);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up.delay-100 {
  transition-delay: 0.1s;
}

.fade-in-up.delay-200 {
  transition-delay: 0.2s;
}

.fade-in-up.delay-300 {
  transition-delay: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(91, 106, 191, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(91, 106, 191, 0.45);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 12px rgba(91, 106, 191, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
}

.btn-outline:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.05);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(155, 93, 229, 0.08);
  color: var(--accent-purple);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(155, 93, 229, 0.15);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 26px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hide mobile CTA on desktop */
.nav-cta-mobile {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-login:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--container-px) 60px;
  overflow: hidden;
  text-align: center;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(155, 93, 229, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 93, 229, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(91, 106, 191, 0.12) 0%, rgba(155, 93, 229, 0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(155, 93, 229, 0.07);
  border: 1px solid rgba(155, 93, 229, 0.18);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-purple);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-purple);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

/* Hero Dashboard Mockup */
.hero-visual {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  width: 100%;
  max-width: 800px;
}

.hero-dashboard {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--glow-purple), 0 30px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.dash-traffic-lights {
  display: flex;
  gap: 8px;
}

.dash-traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dash-traffic-lights span:nth-child(1) {
  background: #ef4444;
}

.dash-traffic-lights span:nth-child(2) {
  background: #f59e0b;
}

.dash-traffic-lights span:nth-child(3) {
  background: #22c55e;
}

.dash-tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.dashboard-main {
  display: flex;
  height: 320px;
}

.dash-sidebar {
  width: 200px;
  border-right: 1px solid var(--border-color);
  padding: 16px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

/* Gradient fade for the log stream */
.dash-sidebar::before,
.dash-sidebar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
}

.dash-sidebar::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(20, 20, 30, 1), transparent);
}

.dash-sidebar::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(20, 20, 30, 1), transparent);
}

.log-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: scrollLogs 15s linear infinite;
}

.log-item {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  animation: glowLog 4s infinite alternate;
}

.log-item span {
  color: #22c55e;
  font-weight: bold;
}

.log-item.warn span {
  color: #f59e0b;
}

@keyframes scrollLogs {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes glowLog {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  }
}

.dash-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 32px;
  position: relative;
}

.dash-metrics {
  display: flex;
  gap: 48px;
  margin-bottom: auto;
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.m-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.fluctuate-1 {
  animation: numFluctuate1 3s infinite alternate;
}

.fluctuate-2 {
  animation: numFluctuate2 2s infinite alternate;
}

@keyframes numFluctuate1 {
  0% {
    opacity: 0.8;
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }
}

@keyframes numFluctuate2 {
  0% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1.02);
    color: var(--accent-purple);
  }
}

.dash-chart-container {
  height: 150px;
  width: 100%;
  position: relative;
  margin-top: 24px;
}

.live-chart {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 4s ease-out forwards;
}

.chart-area {
  opacity: 0;
  animation: fadeInArea 2s ease-out 2s forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInArea {
  to {
    opacity: 1;
  }
}

.chart-scanner {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 20px 2px var(--accent-cyan);
  left: 0;
  opacity: 0;
  animation: scanChart 6s infinite 4s;
}

@keyframes scanChart {
  0% {
    left: 0%;
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* ===== TRUSTED BY (Marquee) ===== */
.trusted {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 28px;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  /* Constrain max width for ultra-wide screens */
  margin: 0 auto;
  /* Center the constrained box */
  padding: 0 40px;
  /* Add breathing room for the mask */
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.logo-strip {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.logo-strip:hover {
  animation-play-state: paused;
}

.logo-item {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.45;
  letter-spacing: 1px;
  transition: opacity var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-item:hover {
  opacity: 0.8;
}

/* ===== FEATURES (PRO MAX BENTO GRID) ===== */
.features {
  padding: var(--section-py) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.feature-card.large {
  grid-column: span 2;
}

.feature-card.full {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.large,
  .feature-card.full {
    grid-column: span 1;
  }
}

.feature-visual {
  height: 180px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.feature-visual.center {
  justify-content: center;
}

.feature-visual.row {
  flex-direction: row;
  justify-content: center;
  height: 140px;
}

.feature-content {
  padding: 24px;
  flex-grow: 1;
}

.feature-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.feature-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Micro Visuals --- */
.glow-orb {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--orb-color, var(--accent-purple));
  filter: blur(60px);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* 1. Micro Dashboard (Chart) */
.micro-dashboard {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  width: 200px;
  z-index: 2;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px 4px 0 0;
  transition: all var(--transition);
}

.feature-card:hover .chart-bar {
  background: rgba(255, 255, 255, 0.1);
}

.chart-bar.active {
  background: var(--gradient-main);
  border: none;
  box-shadow: 0 0 20px rgba(155, 93, 229, 0.3);
}

.feature-card:hover .chart-bar.active {
  transform: scaleY(1.05);
  transform-origin: bottom;
}

/* 2. Micro Workflow (Nodes) */
.micro-workflow {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  gap: 12px;
  z-index: 2;
}

.node {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
}

.node.active {
  background: rgba(58, 123, 213, 0.15);
  border-color: rgba(58, 123, 213, 0.5);
  box-shadow: 0 0 20px rgba(58, 123, 213, 0.2);
}

.node.active::after {
  background: var(--accent-blue);
  box-shadow: 0 0 15px var(--accent-blue);
}

.path {
  flex-grow: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.particle {
  position: absolute;
  top: 0;
  left: -10px;
  width: 20px;
  height: 2px;
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
  filter: blur(1px);
  animation: pulsePath 2s infinite linear;
}

.particle.delay {
  animation-delay: 1s;
}

@keyframes pulsePath {
  0% {
    left: -10px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* 3. Micro Lock (Security) */
.micro-lock {
  position: relative;
  width: 64px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.lock-shackle {
  width: 32px;
  height: 24px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  transition: border-color var(--transition);
}

.feature-card:hover .lock-shackle {
  border-color: rgba(255, 255, 255, 0.7);
}

.lock-body {
  width: 48px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  opacity: 0;
  animation: rippleObj 3s infinite ease-out;
}

.ripple.delay {
  animation-delay: 1.5s;
}

@keyframes rippleObj {
  0% {
    width: 48px;
    height: 48px;
    opacity: 0.8;
  }

  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
    border-width: 2px;
  }
}

/* 4. Micro Speed (Lightning Fast) */
.micro-speed {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.speed-line {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  width: var(--w);
  opacity: 0.5;
  transform-origin: left;
  animation: speedPulse 2s infinite alternate ease-in-out;
  animation-delay: var(--delay);
}

@keyframes speedPulse {
  0% {
    transform: scaleX(0.8);
    opacity: 0.3;
  }

  100% {
    transform: scaleX(1.1);
    opacity: 0.8;
  }
}

/* 5. Micro Integrations (Ring) */
.micro-integrations {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.icon-ring {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  position: relative;
  animation: spinSlow 20s linear infinite;
}

.icon-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--gradient-main);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(155, 93, 229, 0.4);
}

.icon-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.icon-dot:nth-child(1) {
  top: -8px;
  left: 50%;
  margin-left: -8px;
}

.icon-dot:nth-child(2) {
  bottom: 20%;
  right: -4px;
  width: 12px;
  height: 12px;
}

.icon-dot:nth-child(3) {
  bottom: 20%;
  left: -4px;
  width: 14px;
  height: 14px;
}

@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
}

.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.step:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.step-connector::after {
  content: '';
  width: 100%;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0.3;
}

/* ===== TESTIMONIALS (DUAL-TRACK MARQUEE) ===== */
.testimonials {
  padding: var(--section-py) 0;
  overflow: hidden;
  position: relative;
}

.testimonials-marquee {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  /* Gradient masks for smooth fade in/out at the screen edges */
  mask-image: linear-gradient(to right,
      transparent,
      black 10%,
      black 90%,
      transparent);
  -webkit-mask-image: linear-gradient(to right,
      transparent,
      black 10%,
      black 90%,
      transparent);
}

.testimonial-track-container {
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 10px 0;
}

.testimonial-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marqueeLeft 40s linear infinite;
}

.testimonial-track.reverse {
  animation: marqueeRight 45s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: 340px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 280px;
    padding: 20px;
  }
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg, var(--gradient-main));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }

  /* Translate by exactly minus half the width (which is the original set) */
  100% {
    transform: translateX(calc(-50% - 12px));
  }
}

@keyframes marqueeRight {

  /* Start offset by minus half */
  0% {
    transform: translateX(calc(-50% - 12px));
  }

  100% {
    transform: translateX(0);
  }
}

/* ===== PRICING PRO MAX ===== */
.pricing {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Billing Toggle */
.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.toggle-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition);
  position: relative;
}

.toggle-label.active {
  color: var(--text-primary);
}

.discount-badge {
  position: absolute;
  top: -24px;
  right: -60px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pricing-toggle {
  width: 60px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-knob {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, white, #e2e8f0);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pricing-toggle.active {
  background: rgba(155, 93, 229, 0.3);
  border-color: rgba(155, 93, 229, 0.5);
}

.pricing-toggle.active .toggle-knob {
  transform: translateX(28px);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
}

[data-theme="light"] .pricing-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Pricing Grid & Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 60px;
  perspective: 1000px;
}

.pricing-card-wrapper {
  position: relative;
  border-radius: 24px;
  padding: 1px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card-wrapper:hover {
  z-index: 10;
  transform: translateY(-8px);
}

.holographic-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(155, 93, 229, 0.15),
      rgba(0, 180, 216, 0.05) 40%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.pricing-card-wrapper:hover .holographic-glow {
  opacity: 1;
}

.pricing-card {
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 23px;
  padding: 40px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.pricing-card-wrapper:hover .pricing-card {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  background: rgba(20, 20, 28, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Light theme support */
[data-theme="light"] .pricing-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .pricing-card-wrapper:hover .pricing-card {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .holographic-glow {
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(155, 93, 229, 0.08),
      rgba(0, 180, 216, 0.03) 40%,
      transparent 60%);
}

[data-theme="light"] .popular-energy-border {
  background: linear-gradient(135deg, rgba(88, 86, 214, 0.4), rgba(52, 199, 89, 0.4));
  opacity: 0.8;
}

[data-theme="light"] .pricing-card.popular {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px rgba(88, 86, 214, 0.15);
}

/* Popular Card Extravaganza */
.popular-wrapper {
  padding: 2px;
  z-index: 5;
}

.popular-wrapper:hover {
  transform: translateY(-8px);
  z-index: 10;
}

.popular-energy-border {
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(155, 93, 229, 0.5), rgba(0, 180, 216, 0.5));
  z-index: 0;
  opacity: 0.8;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.pricing-card.popular {
  background: rgba(20, 15, 30, 0.9);
  border: none;
  box-shadow: 0 0 40px rgba(155, 93, 229, 0.2);
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(155, 93, 229, 0.4);
  white-space: nowrap;
  z-index: 10;
}

.pricing-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.pricing-card.popular .plan-name {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .pricing-card.popular .plan-name {
  -webkit-text-fill-color: var(--text-primary);
  background: none;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-amount {
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 56px;
}

.pricing-amount .price-strikethrough {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.pricing-grid.is-annual .price-strikethrough {
  display: inline-block !important;
}

.pricing-amount .price {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  font-feature-settings: "tnum";
  transition: opacity 0.3s ease;
}

.pricing-amount .custom-price {
  font-size: 40px;
}

.pricing-amount .period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-features {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.plan-features .check-icon {
  color: #10b981;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

[data-theme="light"] .plan-features .check-icon {
  filter: none;
}

/* ===== FAQ PRO MAX ===== */
.faq {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.faq-left {
  position: sticky;
  top: 120px;
}

.faq-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.ai-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(155, 93, 229, 0.1);
  border-color: rgba(155, 93, 229, 0.3);
  color: var(--accent-purple) !important;
}

.ai-support-btn:hover {
  background: rgba(155, 93, 229, 0.2);
  border-color: rgba(155, 93, 229, 0.5);
  transform: translateY(-2px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(15, 15, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
}

.faq-item:hover {
  background: rgba(25, 25, 35, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.open {
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(155, 93, 229, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(155, 93, 229, 0.1);
  transform: translateY(-4px) scale(1.01);
  z-index: 10;
}

.faq-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at 50% -50%, rgba(155, 93, 229, 0.15), rgba(0, 180, 216, 0.05) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.faq-item.open::before {
  opacity: 1;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.faq-toggle-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.4s ease;
}

.cross-horizontal,
.cross-vertical {
  position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cross-horizontal {
  width: 12px;
  height: 2px;
}

.cross-vertical {
  width: 2px;
  height: 12px;
}

.faq-item:hover .faq-toggle-ring {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-item:hover .cross-horizontal,
.faq-item:hover .cross-vertical {
  background: var(--text-primary);
}

.faq-item.open .faq-toggle-ring {
  background: var(--gradient-main);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(155, 93, 229, 0.5);
  transform: rotate(180deg);
}

.faq-item.open .cross-horizontal,
.faq-item.open .cross-vertical {
  background: #fff;
}

.faq-item.open .cross-vertical {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 2;
}

.faq-answer-inner {
  padding: 0 32px 32px 32px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* Light Theme Support */
[data-theme="light"] .faq-item {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .faq-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .faq-item.open {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(155, 93, 229, 0.3);
  box-shadow: 0 20px 40px rgba(155, 93, 229, 0.1);
}

[data-theme="light"] .faq-toggle-ring {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cross-horizontal,
[data-theme="light"] .cross-vertical {
  background: var(--text-secondary);
}



/* ===== FOOTER ===== */
.footer-mega {
  position: relative;
  padding: 80px 0 0;
  background: var(--bg-primary);
  border-top: 1px solid rgba(0, 180, 216, 0.1);
  overflow: hidden;
  z-index: 1;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 400px;
  background: radial-gradient(ellipse at top, rgba(155, 93, 229, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.footer-mega .container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(52, 199, 89, 0.6);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-green);
  opacity: 0.4;
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 0.6;
  }

  80% {
    transform: scale(3);
    opacity: 0;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-main);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 0;
}

.footer-social a:hover::before {
  transform: translateY(-100%);
}

.footer-social a svg {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(155, 93, 229, 0.2);
}

.footer-social a:hover svg {
  color: #fff;
}

.footer-links h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Magnetic Links */
.magnetic-link {
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: inline-block;
}

.magnetic-link:hover {
  color: var(--text-primary);
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 32px;
}

.footer-legal a {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-legal a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mega Watermark */
.mega-watermark {
  position: absolute;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26vw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.008);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.008) 0%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Light Theme Overrides For Footer */
[data-theme="light"] .footer-mega {
  border-top-color: rgba(0, 180, 216, 0.2);
}

[data-theme="light"] .footer-glow {
  background: radial-gradient(ellipse at top, rgba(155, 93, 229, 0.05) 0%, transparent 60%);
}

[data-theme="light"] .status-badge {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

[data-theme="light"] .footer-social a {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .magnetic-link:hover {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mega-watermark {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.015);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.015) 0%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ===== FEATURE SHOWCASE — BENTO GRID ===== */
.showcase {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.bento-card.large {
  grid-column: span 1;
}

.bento-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.bento-card-placeholder {
  width: 100%;
  height: 260px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.bento-card-body {
  padding: 24px 28px;
}

.bento-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.bento-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Row 2 reversal */
.bento-grid .bento-card:nth-child(3) {
  order: 4;
}

.bento-grid .bento-card:nth-child(4) {
  order: 3;
  grid-column: span 1;
}

/* ===== INTEGRATIONS GRID ===== */
.integrations {
  padding: var(--section-py) 0;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 32px;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: default;
}

.integration-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.integration-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.integration-icon svg {
  width: 28px;
  height: 28px;
}

.integration-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.integrations-more {
  text-align: center;
  color: var(--accent-purple);
  font-size: 14px;
  font-weight: 600;
}

.integrations-more a {
  color: var(--accent-purple);
  transition: opacity var(--transition);
}

.integrations-more a:hover {
  opacity: 0.8;
}

/* ===== STATS COUNTER BAR (PRO MAX) ===== */
.stats-bar {
  padding: 40px 0 60px;
  position: relative;
  z-index: 10;
  margin-top: -40px;
}

.stats-glass-container {
  background: rgba(15, 15, 25, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.aurora-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(155, 93, 229, 0.15), rgba(0, 180, 216, 0.1) 30%, transparent 60%);
  animation: auroraRotate 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes auroraRotate {
  0% {
    transform: rotate(0deg) translate(5%, 5%);
  }

  50% {
    transform: rotate(180deg) translate(-5%, -5%);
  }

  100% {
    transform: rotate(360deg) translate(5%, 5%);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 20px 0;
}

/* Vertical dividers */
.stats-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.stats-icon {
  color: var(--accent-cyan);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.4));
  transition: transform 0.3s ease;
}

.stats-item:hover .stats-icon {
  transform: scale(1.15) translateY(-5px);
  color: #fff;
}

.stats-number {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.stats-desc {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-progress {
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.5s ease;
}

.stats-item:hover .stats-progress {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .stats-item:nth-child(2)::after {
    display: none;
  }

  .stats-item:not(:last-child)::after {
    right: -20px;
  }

  .stats-bar {
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-item::after {
    display: none;
  }

  .stats-glass-container {
    padding: 32px 20px;
  }
}

/* ===== CASE STUDIES — PREMIUM ===== */
.case-studies {
  padding: var(--section-py) 0;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.case-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.case-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent, var(--accent-purple));
  border-radius: 4px 0 0 4px;
}

.case-hero-stat {
  padding: 32px 32px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--gradient-subtle);
}

.case-hero-number {
  display: block;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.case-hero-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.case-card .case-company {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 32px 0;
  margin-bottom: 12px;
}

.case-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.case-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-company-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg, var(--gradient-main));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.case-company-info {
  display: flex;
  flex-direction: column;
}

.case-company-name {
  font-size: 15px;
  font-weight: 700;
}

.case-company-role {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.case-company-industry {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-card .case-problem {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 32px;
  margin-bottom: 20px;
  flex-grow: 1;
  font-style: italic;
}

.case-card .case-results {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 32px 28px;
}

.case-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
}

/* ===== COMPARISON TABLE (PRO MAX) ===== */
.comparison {
  padding: var(--section-py) 0;
  background: var(--bg-primary);
  position: relative;
}

.comparison-table-wrapper {
  margin-top: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
}

.comparison-table th,
.comparison-table td {
  padding: 24px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--bg-primary);
  /* Changed to opaque background so sliding columns hide behind */
  box-shadow: 6px 0 15px -6px rgba(0, 0, 0, 0.4);
  /* Added shadow to show depth when scrolling */
  z-index: 10;
  font-weight: 600;
  color: var(--text-primary);
  width: 35%;
}

.comparison-table th {
  font-size: 18px;
  font-weight: 700;
  padding-top: 32px;
  padding-bottom: 32px;
  background: rgba(0, 0, 0, 0.2);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Hover effect on entire row */
.comparison-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:hover td:first-child {
  background: var(--bg-card-hover);
}

.comparison-table tbody tr:hover td.highlight {
  background: rgba(155, 93, 229, 0.15);
  /* Slightly brighter on hover */
}

/* Velora Highlight Column */
.comparison-table .highlight {
  background: rgba(155, 93, 229, 0.08);
  border-left: 1px solid rgba(155, 93, 229, 0.3);
  border-right: 1px solid rgba(155, 93, 229, 0.3);
  width: 25%;
  position: relative;
}

.comparison-table th.highlight {
  border-top: 3px solid var(--accent-purple);
  color: #fff;
  font-size: 22px;
  background: rgba(155, 93, 229, 0.15);
}

/* Crown / Badge for Velora */
.our-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.our-platform-badge svg {
  stroke: var(--accent-cyan);
}

/* Competitor Dims */
.comparison-table .dim {
  color: var(--text-muted);
  opacity: 0.6;
}

.comparison-table th.dim {
  font-size: 16px;
  font-weight: 500;
}

/* SVG Icon Styling */
.check-yes {
  color: #10b981;
  /* Emerald Green */
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
  width: 24px;
  height: 24px;
  display: inline-block;
}

.check-no {
  color: #ef4444;
  /* Red */
  width: 20px;
  height: 20px;
  opacity: 0.5;
  display: inline-block;
}

.check-partial {
  color: #f59e0b;
  /* Amber */
  width: 20px;
  height: 20px;
  opacity: 0.8;
  display: inline-block;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: var(--bg-card-hover);
}

.comparison-table tbody tr:hover td.highlight {
  background: rgba(155, 93, 229, 0.06);
}

.check-yes {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 18px;
}

.check-no {
  color: #ef4444;
  font-weight: 700;
  font-size: 18px;
}

.check-partial {
  color: #f59e0b;
  font-weight: 700;
  font-size: 16px;
}

/* ===== NEWSLETTER MEGA BANNER ===== */
.newsletter-mega {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
}

.mega-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(155, 93, 229, 0.15) 0%, rgba(0, 180, 216, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.newsletter-mega-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 64px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.newsletter-mega-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(155, 93, 229, 0.4), transparent 50%, rgba(0, 180, 216, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.mega-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mega-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.mega-form {
  max-width: 480px;
  margin: 0 auto 30px auto;
  position: relative;
}

.mega-input-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 6px;
  position: relative;
  transition: all 0.3s ease;
}

.mega-input-group:focus-within {
  border-color: rgba(155, 93, 229, 0.5);
  box-shadow: 0 0 0 4px rgba(155, 93, 229, 0.15), inset 0 0 20px rgba(155, 93, 229, 0.05);
  background: rgba(0, 0, 0, 0.6);
}

.mega-input-group input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 24px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.mega-input-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.mega-submit-btn {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mega-submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(155, 93, 229, 0.3);
}

.mega-submit-btn .btn-text {
  position: relative;
  z-index: 2;
}

.mega-submit-btn .btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: mega-btn-shine 3s infinite;
  z-index: 1;
}

@keyframes mega-btn-shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.mega-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.mega-badge {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Light Theme Support */
[data-theme="light"] .newsletter-mega {
  background: var(--bg-primary);
}

[data-theme="light"] .mega-bg-glow {
  background: radial-gradient(ellipse at center, rgba(155, 93, 229, 0.08) 0%, rgba(0, 180, 216, 0.03) 40%, transparent 70%);
}

[data-theme="light"] .newsletter-mega-inner {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .newsletter-mega-inner::before {
  background: linear-gradient(135deg, rgba(155, 93, 229, 0.2), transparent 50%, rgba(0, 180, 216, 0.1));
}

[data-theme="light"] .mega-title {
  background: linear-gradient(180deg, var(--text-primary) 0%, rgba(0, 0, 0, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .mega-input-group {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mega-input-group:focus-within {
  background: #ffffff;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(155, 93, 229, 0.1);
}

[data-theme="light"] .mega-input-group input[type="email"]::placeholder {
  color: var(--text-muted);
}

[data-theme="light"] .mega-input-group input[type="email"] {
  color: var(--text-primary);
}

/* ===== SHIMMER BORDER FOR PREMIUM CARDS ===== */
.feature-card,
.bento-card,
.case-card {
  position: relative;
}

.feature-card::before,
.bento-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(155, 93, 229, 0.2) 50%, transparent 60%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-card:hover::before,
.bento-card:hover::before {
  opacity: 1;
  animation: shimmer-border 3s ease infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-left {
    position: relative;
    top: 0;
  }

  .features-grid,
  .testimonials-grid,
  .pricing-grid,
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .integrations-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions .nav-login,
  .nav-actions .nav-get-started {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
    margin-left: 12px;
  }

  .nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 6, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px var(--container-px);
    gap: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
  }

  .nav-links.active .nav-cta-mobile {
    display: block;
    padding-top: 14px;
  }

  .nav-links.active .nav-cta-mobile a {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-bottom: none;
    background: var(--gradient-main);
    color: #fff !important;
    border-radius: var(--radius-full);
    font-weight: 600;
  }



  .features-grid,
  .testimonials-grid,
  .pricing-grid,
  .case-studies-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Comparison Table Mobile */
  .comparison-table-wrapper {
    margin-top: 32px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 16px 16px;
    font-size: 13px;
  }

  .comparison-table th {
    font-size: 16px;
  }

  .comparison-table th.highlight {
    font-size: 18px;
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    width: 130px;
    font-size: 13px;
    padding-left: 16px;
    padding-right: 12px;
    white-space: normal;
  }

  .our-platform-badge {
    font-size: 12px;
    flex-direction: column;
    gap: 4px;
  }

  .check-yes,
  .check-no,
  .check-partial {
    width: 20px;
    height: 20px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid .bento-card:nth-child(3),
  .bento-grid .bento-card:nth-child(4) {
    order: unset;
  }

  .integrations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-mega-inner {
    padding: 40px 24px;
    border-radius: 24px;
  }

  .mega-title {
    font-size: 36px;
  }

  .mega-input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
  }

  .mega-input-group input[type="email"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 100px;
  }

  [data-theme="light"] .mega-input-group input[type="email"] {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
  }

  .mega-submit-btn {
    width: 100%;
  }

  .mega-footer {
    flex-direction: column;
    gap: 12px;
  }

  .steps {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    min-width: 2px;
  }

  .step-connector::after {
    width: 2px;
    height: 100%;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .dash-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-px: 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .feature-card,
  .step,
  .testimonial-card,
  .pricing-card {
    padding: 24px;
  }

  .pricing-amount .price {
    font-size: 40px;
  }

  .logo-strip {
    gap: 24px;
  }

  .logo-item {
    font-size: 14px;
  }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(155, 93, 229, 0.08);
  border-color: rgba(155, 93, 229, 0.25);
  color: var(--accent-purple);
}

/* Dark mode (default): show moon icon, hide sun */
.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

/* Light mode: show sun icon, hide moon */
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #6b7280;
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(155, 93, 229, 0.06);
  border-color: rgba(155, 93, 229, 0.25);
  color: var(--accent-purple);
}

/* Light Mode Overrides for Live Dashboard */
[data-theme="light"] .hero-dashboard {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(155, 93, 229, 0.15);
}

[data-theme="light"] .dashboard-topbar {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .dash-tab {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dash-sidebar {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .dash-sidebar::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
}

[data-theme="light"] .dash-sidebar::after {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

[data-theme="light"] .log-item {
  color: #64748b;
  /* slate-500 */
  text-shadow: none !important;
}

[data-theme="light"] .log-item span {
  color: #16a34a;
  /* Darker green */
}

[data-theme="light"] .log-item.warn span {
  color: #d97706;
  /* Darker orange */
}

[data-theme="light"] .m-value {
  color: var(--text-primary);
  text-shadow: none !important;
}

[data-theme="light"] .fluctuate-1 {
  animation: numFluctuate1Light 3s infinite alternate;
}

@keyframes numFluctuate1Light {
  0% {
    opacity: 0.8;
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(155, 93, 229, 0.2) !important;
  }
}