/*
  Echo Maker — Landing Styles
  Modern dark, glassmorphism, responsive layout with subtle motion.
*/

:root {
  --bg: #0a0d14;
  --bg-2: #0f1419;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #b8c5d1;
  --accent-1: #7c5cff; /* violet */
  --accent-2: #2dd4bf; /* teal */
  --accent-3: #ff6b6b; /* coral */
  --accent-4: #ffd93d; /* yellow */
  --accent-5: #60a5fa; /* blue */
  --accent-6: #f472b6; /* pink */
  --accent-7: #34d399; /* green */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(124, 92, 255, 0.3), 0 0 40px rgba(124, 92, 255, 0.15);
  --radius: 20px;
  --radius-lg: 24px;
  --container: 1200px;
  
  /* Animation variables */
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-extra-slow: 800ms;
  
  /* Theme variables for light/dark mode */
  --theme-bg: var(--bg);
  --theme-text: var(--text);
  --theme-card: var(--card);
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
}

/* Light theme support */
[data-theme="light"] {
  --theme-bg: #ffffff;
  --theme-text: #1a202c;
  --theme-card: rgba(0, 0, 0, 0.05);
  --bg: #f8fafc;
  --bg-2: #edf2f7;
  --text: #1a202c;
  --muted: #4a5568;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* High contrast mode */
.high-contrast {
  --text: #ffffff;
  --bg: #000000;
  --card: rgba(255, 255, 255, 0.15);
}

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

.reduced-motion * {
  animation: none !important;
  transition: none !important;
}

/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; width: 100%; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Prevent horizontal overflow */
* {
  max-width: 100%;
}

/* Allow specific elements to extend beyond */
.fx-blobs .blob,
.bg,
body {
  max-width: none;
}

body {
  background: 
    radial-gradient(1400px 900px at 15% -15%, rgba(124, 92, 255, 0.15) 0%, transparent 50%),
    radial-gradient(1000px 600px at 85% 10%, rgba(45, 212, 191, 0.12) 0%, transparent 60%),
    radial-gradient(800px 500px at 50% 100%, rgba(255, 107, 107, 0.08) 0%, transparent 70%),
    linear-gradient(135deg, #0a0d14 0%, #0f1419 25%, #0b0d12 50%, #0f1419 75%, #0a0d14 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, Roboto, Segoe UI, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fix for h1 elements within semantic containers - browser compatibility */
/* Ensures h1 elements within article, aside, nav, or section have explicit font-size */
article h1, aside h1, nav h1, section h1 {
  font-size: inherit; /* Inherit from parent or use default browser size */
}

body {
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

/* Skip link */
.skip-link { position: fixed; left: 12px; top: -50px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #11151c; color: #fff; border: 1px solid rgba(255,255,255,0.2); text-decoration: none; box-shadow: var(--shadow); transition: top 180ms ease; }
.skip-link:focus { top: 12px; outline: none; }

.container {
  max-width: var(--container);
  padding: 24px;
  margin: 0 auto;
}
html { scroll-behavior: smooth; }

/* Background FX */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
/* Freeze background like apple.com: keep backdrop static */
.fx-blobs[data-static] .blob { animation: none !important; }
.fx-blobs[data-static] .particles { display: none !important; }
.fx-blobs[data-static] { will-change: auto; }
.fx-blobs .blob {
  position: absolute; filter: blur(60px); opacity: 0.55; border-radius: 50%;
  will-change: transform;
}
.fx-blobs .b1 { width: 520px; height: 520px; left: -120px; top: -120px; background: radial-gradient(circle at 30% 30%, #2f3a64, transparent 60%); animation: float 18s ease-in-out infinite; max-width: calc(100vw + 120px); }
.fx-blobs .b2 { width: 420px; height: 420px; right: -140px; top: -60px; background: radial-gradient(circle at 60% 40%, #133b3b, transparent 60%); animation: float 22s ease-in-out infinite reverse; max-width: calc(100vw + 140px); }
.fx-blobs .b3 { width: 380px; height: 380px; right: 10%; bottom: -140px; background: radial-gradient(circle at 40% 60%, #3a2b66, transparent 60%); animation: float 20s ease-in-out infinite; max-width: calc(100vw - 10%); }
.particles { position: absolute; inset: 0; opacity: 0.35; }
.floating-types { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ft-pill {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  opacity: 0.75;
  white-space: nowrap;
  animation: drift var(--d, 30s) ease-in-out infinite alternate, bob 6s ease-in-out infinite;
  text-decoration: none;
}
/* Hover highlight on desktop */
.ft-pill:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); box-shadow: 0 16px 36px rgba(0,0,0,0.5); }
@keyframes drift {
  from { transform: translate(-50%, -50%) translate3d(-10px, 0, 0) rotate(-1deg); }
  to { transform: translate(-50%, -50%) translate3d(10px, 6px, 0) rotate(1deg); }
}
@keyframes bob { 0%, 100% { filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35)); } 50% { filter: drop-shadow(0 14px 24px rgba(0,0,0,0.5)); } }

@media (max-width: 640px) {
  .ft-pill { font-size: 11px; padding: 7px 9px; opacity: 0.65; }
  .floating-types .ft-pill:nth-child(n+16) { display: none; }
}

/* Enable clickability for pills on larger screens only */
@media (min-width: 1024px) {
  .ft-pill { pointer-events: auto; cursor: pointer; }
}

/* Keep pills behind hero content and contained */
.hero { position: relative; }
.hero .hero-inner, .hero .hero-showcase { position: relative; z-index: 1; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -20px, 0); }
}

/* Apple Liquid Glass Design */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 1;
}

.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Enhanced glass hover effects */
[data-tilt] { 
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-tilt]:hover { 
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}
[data-tilt]:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.1s ease;
}

/* Cursor spotlight */
.cursor-spot {
  position: fixed; left: 0; top: 0; width: 220px; height: 220px; border-radius: 50%;
  pointer-events: none; z-index: 2; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(100,160,255,0.18), rgba(124,92,255,0.10) 40%, rgba(0,0,0,0) 70%);
  transition: opacity 240ms ease; filter: blur(6px);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: 1rem;
  padding: 0.375rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-switcher a {
  position: relative;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 2.5rem;
  text-align: center;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.lang-switcher a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.8), rgba(100, 160, 255, 0.8));
  border-radius: 0.5rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.lang-switcher a:hover {
  color: white;
  transform: translateY(-1px);
}

.lang-switcher a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.lang-switcher a.active {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.3);
}

.lang-switcher a.active::before {
  opacity: 1;
  transform: scale(1);
}

.lang-switcher a:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.6);
  outline-offset: 2px;
}

.lang-switcher a:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .site-header .logo {
    order: 1;
    margin: 0;
  }
  
  .site-header .lang-switcher {
    order: 2;
    margin: 0;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    width: fit-content;
  }
  
  .site-header .mobile-nav {
    order: 3;
  }
  
  .lang-switcher a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-width: 2.5rem;
    border-radius: 0.5rem;
  }
  
  .lang-switcher a::before {
    border-radius: 0.5rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }
  
  .lang-switcher {
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
  }
  
  .lang-switcher a {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
    min-width: 2.25rem;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 10px;
    padding: 10px 14px;
  }
  
  .lang-switcher {
    gap: 0.25rem;
    padding: 0.25rem 0.375rem;
  }
  
  .lang-switcher a {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    min-width: 2rem;
  }
}

/* Desktop hover effects */
@media (hover: hover) and (pointer: fine) {
  .lang-switcher a:hover {
    transform: translateY(-2px);
  }
  
  .lang-switcher a:hover::before {
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.4);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .lang-switcher {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .lang-switcher a {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .lang-switcher a.active {
    background: rgba(124, 92, 255, 0.9);
    color: white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .lang-switcher,
  .lang-switcher a,
  .lang-switcher a::before {
    transition: none;
  }
  
  .lang-switcher a:hover,
  .lang-switcher a.active {
    transform: none;
  }
}

/* Enhanced Header with Mobile Navigation */
.site-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px; 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  backdrop-filter: blur(20px) saturate(180%); 
  -webkit-backdrop-filter: blur(20px) saturate(180%); 
  background: rgba(10, 13, 20, 0.85); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--duration-normal) var(--ease-out-cubic);
}

.site-header.scrolled {
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.logo { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  padding: 12px 16px; 
  border-radius: 999px; 
  text-decoration: none; 
  color: var(--text);
  transition: all var(--duration-normal) var(--ease-out-cubic);
}

.logo:hover { 
  opacity: 0.9; 
  transform: scale(1.02);
}

.logo-mark { 
  font-weight: 600; 
  color: transparent; 
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); 
  -webkit-background-clip: text; 
  background-clip: text; 
}

.logo-text { 
  font-weight: 600; 
  letter-spacing: 0.3px; 
  font-size: 1.1rem;
}

.logo-img { 
  width: 28px; 
  height: 28px; 
  display: block;
  transition: transform var(--duration-normal) var(--ease-elastic);
}

.logo:hover .logo-img {
  transform: rotate(5deg) scale(1.1);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
  transition: all var(--duration-normal) var(--ease-out-cubic);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  transition: width var(--duration-normal) var(--ease-out-cubic);
}

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

.nav-link:hover {
  color: var(--accent-2);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  align-items: center;
  gap: 16px;
}

.mobile-cta-header {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-cubic);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 2px 0;
  transition: all var(--duration-normal) var(--ease-out-cubic);
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out-cubic);
}

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

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 85vw);
  height: 100vh;
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out-cubic);
  overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-cubic);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

.mobile-menu-content {
  padding: 24px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 8px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--duration-normal) var(--ease-out-cubic);
}

.mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.menu-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.menu-text {
  font-weight: 500;
  font-size: 1rem;
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}

.mobile-menu-cta {
  margin-bottom: 24px;
}

.mobile-menu-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; }
}

@media (max-width: 640px) {
  .cta-text-desktop { display: none; }
  .cta-text-mobile { display: inline; }
  .mobile-cta-header { 
    padding: 10px 16px; 
    font-size: 0.9rem; 
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
  }
  .mobile-cta-header:active {
    transform: scale(0.98);
  }
  .mobile-menu { 
    width: 100vw; 
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.95);
  }
  
  /* Enhanced mobile header */
  .site-header {
    padding: 12px 16px;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Better mobile logo */
  .site-header .logo {
    gap: 8px;
  }
  
  .site-header .logo-img {
    width: 28px;
    height: 28px;
  }
  
  /* Improved mobile language switcher */
  .lang-switcher {
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .lang-switcher a {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .lang-switcher a:hover,
  .lang-switcher a.active {
    background: rgba(124, 92, 255, 0.2);
    color: #9ec5ff;
  }
}

@media (max-width: 480px) {
  .site-header .logo {
    font-size: 0.9rem;
  }
  
  .site-header .logo-text {
    display: none;
  }
}

/* Focus visibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 10px; }

/* Apple-style buttons with liquid glass */
.button { 
  --bgbtn: rgba(255,255,255,0.08); 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px; 
  padding: 16px 24px; 
  border-radius: 16px; 
  border: 1px solid rgba(255,255,255,0.18); 
  color: var(--text); 
  background: var(--bgbtn); 
  text-decoration: none; 
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 1;
}

.button:hover { 
  transform: translateY(-2px); 
  background: rgba(255,255,255,0.12); 
  box-shadow: 0 12px 28px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.button:active { 
  transform: translateY(0); 
  transition: all 0.1s ease;
}

.button--primary { 
  color: #0b0d12; 
  font-weight: 600; 
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); 
  border: none; 
  box-shadow: 0 8px 24px rgba(117, 100, 255, 0.4), 0 4px 12px rgba(7, 255, 196, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.button--primary:hover { 
  box-shadow: 0 16px 32px rgba(117, 100, 255, 0.5), 0 8px 20px rgba(7, 255, 196, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

.button--lg { 
  padding: 20px 32px; 
  font-size: 1.1rem; 
  border-radius: 18px;
  font-weight: 600;
}

/* Hero */
.hero { display: grid; align-items: center; gap: 28px; grid-template-columns: 1.2fr 1fr; padding-top: 36px; padding-bottom: 20px; }
.hero-inner { padding: 36px; }
.hero-title { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.hero-sub { margin-top: 12px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }

/* Enhanced Typing Animation Styles */
.hero-description {
  margin-top: 16px;
  min-height: 120px;
  display: flex;
  align-items: center;
}

/* Enhanced Hero Title Animations */
.hero .hero-title {
  opacity: 1 !important;
  transform: translateY(30px) scale(0.95) !important;
  animation: hero-title-reveal 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 200ms forwards !important;
}

@keyframes hero-title-reveal {
  0% {
    opacity: 0 !important;
    transform: translateY(30px) scale(0.95) !important;
  }
  60% {
    opacity: 1 !important;
    transform: translateY(-5px) scale(1.02) !important;
  }
  100% {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
}

/* Staggered Value Props Animation */
.hero-value-props {
  opacity: 0;
  transform: translateY(20px);
  animation: value-props-reveal 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 600ms forwards;
}

@keyframes value-props-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.value-prop {
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  animation: value-prop-stagger 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.value-prop:nth-child(1) { animation-delay: 800ms; }
.value-prop:nth-child(2) { animation-delay: 900ms; }
.value-prop:nth-child(3) { animation-delay: 1000ms; }

@keyframes value-prop-stagger {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Floating/Breathing Animation for Value Props */
.value-prop {
  animation: value-prop-stagger 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
             value-prop-float 6s ease-in-out infinite;
}

@keyframes value-prop-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.02);
  }
}

/* Enhanced CTA Animations */
.hero-ctas {
  opacity: 0;
  transform: translateY(25px);
  animation: cta-container-reveal 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 1200ms forwards;
}

@keyframes cta-container-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Magnetic Hover Effect for CTA Buttons */
.hero-ctas .button {
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.hero-ctas .button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 8px 16px rgba(0,0,0,0.1);
}

.hero-ctas .button:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}

/* Subtle Parallax Background Effect */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
  animation: parallax-bg 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes parallax-bg {
  0%, 100% {
    transform: translateX(0) translateY(0) scale(1);
  }
  33% {
    transform: translateX(-10px) translateY(-5px) scale(1.05);
  }
  66% {
    transform: translateX(5px) translateY(10px) scale(0.95);
  }
}

/* Enhanced Glass Effect with Subtle Animation */
.hero-inner.glass {
  animation: glass-shimmer 8s ease-in-out infinite;
}

@keyframes glass-shimmer {
  0%, 100% {
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
  }
  50% {
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  }
}

/* Enhanced Typing Animation with Smooth Transitions */
.typing-container {
  opacity: 0;
  transform: translateY(15px);
  animation: typing-container-reveal 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 400ms forwards;
  width: 100%;
  position: relative;
}

@keyframes typing-container-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon Pulse Animation for Value Props */
.value-icon {
  animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.2);
  }
}

/* Subtle Text Glow Effect */
.hero-title strong {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-glow 4s ease-in-out infinite;
}

@keyframes text-glow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6));
  }
}

/* Enhanced Button Icon Animations */
.cta-icon, .demo-icon {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-ctas .button:hover .cta-icon {
  transform: rotate(10deg) scale(1.1);
}

.hero-ctas .button:hover .demo-icon {
  transform: scale(1.2);
}

/* Smooth Scroll Indicator Animation */
.hero::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6), transparent);
  animation: scroll-indicator 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes scroll-indicator {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
  }
}

.typing-container {
  width: 100%;
  position: relative;
}

.typing-line {
  margin-bottom: 8px;
  opacity: 0.3;
  transition: all 0.3s ease;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
  line-height: 1.4;
}

.typing-line.active {
  opacity: 1;
  color: var(--text);
  transform: translateX(0);
}

.typing-line:not(.active) {
  transform: translateX(-10px);
}

.typing-text {
  display: inline-block;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-1);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}
.hero-ctas { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
/* Disable animations within hero-ctas */
/* Gentle entrance + tasteful hover for hero CTA */
.hero-ctas { will-change: transform, opacity; }
.hero-ctas [data-cta] { opacity: 0; transform: translateY(6px) scale(0.995); animation: cta-reveal 500ms cubic-bezier(.2,.7,.2,1) 120ms forwards; }
@keyframes cta-reveal { to { opacity: 1; transform: translateY(0) scale(1); } }

/* Restore smooth but subtle transitions for the CTA button */
.hero-ctas .button { transition: background 220ms ease, box-shadow 220ms ease, transform 140ms ease; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.hero-ctas .button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
.hero-ctas .button:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(0,0,0,0.28); }
.hero-ctas .button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Hero value propositions with liquid glass */
.hero-value-props { 
  margin: 32px 0; 
  display: flex; 
  gap: 20px; 
  flex-wrap: wrap;
  justify-content: center;
}

.value-prop { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 16px 20px; 
  border-radius: 50px; 
  background: rgba(255, 255, 255, 0.08); 
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.value-prop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 1;
}

.value-prop:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.value-icon { 
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.value-text { 
  font-size: 1rem; 
  color: var(--text); 
  font-weight: 500;
}

/* Tooltip integration with value props */
.value-prop[data-tooltip] {
  cursor: help;
}

.value-prop[data-tooltip]:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Enhanced CTAs */
.hero-ctas .button { display: flex; align-items: center; gap: 8px; }
.cta-icon, .demo-icon { font-size: 18px; }
.button--secondary { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.button--secondary:hover { background: rgba(255, 255, 255, 0.12); }

/* Advanced Hero Trust Section */
.hero-trust { 
  margin-top: 24px; 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  gap: 16px; 
}

/* Rotating Testimonials */
.rotating-testimonials {
  position: relative;
  height: 60px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-item {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out-cubic);
}

.testimonial-item.active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-text {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  font-style: italic;
}

.testimonial-author {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.trust-indicators { 
  display: flex; 
  gap: 8px; 
}

.trust-dot { 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-cubic);
}

.trust-dot.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  transform: scale(1.2);
}

.trust-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Live Activity Counter */
.live-activity {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 50px;
  animation: gentle-glow 3s ease-in-out infinite;
}

@keyframes gentle-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-icon {
  font-size: 1.1rem;
  animation: bounce 2s ease-in-out infinite;
}

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

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

.activity-counter {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.counter-number {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.counter-label {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Hero Media Container */
.hero-media-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-media-toggle {
  position: absolute;
  top: -40px;
  right: 20px;
  z-index: 10;
}

.media-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-cubic);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.media-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.toggle-icon {
  font-size: 1rem;
}

.toggle-text {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Enhanced Phone Design */
.demo-phone {
  position: relative;
}

.phone-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.camera-dot {
  width: 6px;
  height: 6px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
}

.camera-speaker {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
}

/* Video Container */
.hero-video-container {
  width: clamp(260px, 36vw, 420px);
  aspect-ratio: 9/19;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(45, 212, 191, 0.1));
  position: relative;
}

.video-play-button {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-elastic);
  box-shadow: 0 8px 24px rgba(117, 100, 255, 0.3);
  margin-bottom: 20px;
}

.video-play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(117, 100, 255, 0.4);
}

.play-icon {
  font-size: 1.8rem;
  color: #0b0d12;
  margin-left: 4px;
}

.video-overlay h4 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.video-overlay p {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

/* Bot Preview Tabs */
.bot-preview-tabs {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.preview-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.preview-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-cubic);
  justify-content: center;
}

.preview-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.tab-icon {
  font-size: 1.1rem;
}

.tab-text {
  font-weight: 500;
  font-size: 0.9rem;
}

.preview-content {
  position: relative;
  min-height: 120px;
}

.bot-preview-card {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out-cubic);
}

.bot-preview-card.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.bot-preview-card h4 {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.bot-preview-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.preview-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-tag {
  padding: 4px 12px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 999px;
  color: var(--accent-1);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Animation for stat cards when they come into view */
.stat-card[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-slow) var(--ease-out-cubic);
}

.stat-card[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark/Light Mode Support */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --card: rgba(0, 0, 0, 0.05);
  --border: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text);
}

/* High Contrast Mode */
.high-contrast {
  --text: #ffffff;
  --bg: #000000;
  --muted: #cccccc;
  --accent-1: #00ff00;
  --accent-2: #ffff00;
}

.high-contrast * {
  border-color: var(--text) !important;
}

/* Reduced Motion */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Keyboard Navigation */
.keyboard-navigation *:focus {
  outline: 3px solid var(--accent-2) !important;
  outline-offset: 2px !important;
}

/* PWA Install Button */
.install-app-btn {
  margin-left: 12px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Template Preview Modal Enhancements */
.preview-demo h4 {
  color: var(--accent-2);
  margin-bottom: 16px;
}

.preview-demo ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.preview-demo ol li {
  margin-bottom: 8px;
  color: var(--text);
}

.preview-features {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.preview-features h5 {
  color: var(--accent-1);
  margin-bottom: 12px;
  font-size: 1rem;
}

.preview-features ul {
  list-style: none;
  padding: 0;
}

.preview-features li {
  padding: 6px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .template-controls {
    padding: 20px;
  }
  
  .filter-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .filter-tabs {
    justify-content: center;
    overflow-x: auto;
    padding: 8px;
  }
  
  .search-container {
    margin-bottom: 20px;
  }
  
  .results-info {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* List View Toggle */
.tpl-grid.list-view {
  grid-template-columns: 1fr;
}

.tpl-grid.list-view .tpl-card {
  flex-direction: row;
  align-items: center;
  padding: 24px;
}

.tpl-grid.list-view .tpl-header {
  padding: 0;
  margin-right: 24px;
}

.tpl-grid.list-view .tpl-content {
  padding: 0;
  flex: 1;
}

.tpl-grid.list-view .tpl-actions {
  padding: 0;
  flex-direction: column;
  min-width: 150px;
}

/* Recommendations Section */
.recommendations {
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.recommendations h4 {
  color: var(--accent-1);
  margin-bottom: 8px;
}

.recommendations p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Enhanced Button Styles */
.button {
  position: relative;
  overflow: hidden;
}

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

.button:hover::before {
  left: 100%;
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Image lazy loading */
.lazy-load {
  opacity: 0;
  transition: opacity var(--duration-normal);
}

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

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.scroll-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  width: 0%;
  transition: width 0.1s ease;
}

/* Final polish animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* Print styles */
@media print {
  .mobile-menu-overlay,
  .onboarding-overlay,
  .feature-spotlight,
  .particles,
  .fx-blobs {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero-ctas [data-cta] { animation: none !important; opacity: 1; transform: none; }
  .hero-ctas .button { transition: background 120ms ease, box-shadow 120ms ease; }
  .trust-dot { animation: none !important; opacity: 0.7; }
  
  /* Disable all new hero animations for reduced motion */
  .hero .hero-title { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-value-props { animation: none !important; opacity: 1; transform: none; }
  .value-prop { animation: none !important; opacity: 1; transform: none; }
  .hero-ctas { animation: none !important; opacity: 1; transform: none; }
  .typing-container { animation: none !important; opacity: 1; transform: none; }
  .value-icon { animation: none !important; }
  .hero-title strong { animation: none !important; }
  .cta-icon, .demo-icon { transition: none !important; }
  .hero::before { animation: none !important; }
  .hero-inner.glass { animation: none !important; }
  .hero::after { animation: none !important; }
}

.hero-showcase { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; min-height: 340px; }
.phone {
  width: clamp(260px, 36vw, 420px);
  justify-self: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 12px;
  aspect-ratio: 9/19;
  box-shadow: var(--shadow);
  animation: float 10s ease-in-out infinite;
}
.notch {
  height: 18px; width: 44%; margin: 0 auto 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10));
  border-radius: 0 0 12px 12px; box-shadow: inset 0 1px 0 rgba(0,0,0,0.25);
}
.screen {
  background: radial-gradient(80% 40% at 50% 0%, rgba(255,255,255,0.04), rgba(255,255,255,0) 60%), rgba(0,0,0,0.35);
  border-radius: 20px; height: calc(100% - 26px);
  padding: 16px; overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  display: grid; align-content: start;
}
/* Mini header inside hero phone */
.mini-header { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: -2px -2px 10px; border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.06); }
.mini-avatar { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset; overflow: hidden; }
.mini-avatar img { width: 12px; height: 12px; display: block; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25)); }
.mini-meta { line-height: 1; }
.mini-title { font-weight: 700; font-size: 11px; letter-spacing: 0.2px; }
.mini-status { font-size: 10px; color: var(--muted); opacity: 0.9; }
.skeleton { height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.14), rgba(255,255,255,0.08)); margin: 12px 0; }
.shimmer { background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.bubble { width: 64%; height: 24px; border-radius: 12px; background: rgba(255,255,255,0.10); margin: 10px 0; }
.bubble.left { margin-right: auto; }
.bubble.right { margin-left: auto; background: rgba(255,255,255,0.16); }
.bubble.short { width: 40%; }

/* Hero phone: mini Telegram chat preview */
.mini-chat { display: grid; gap: 10px; }
.pmsg { max-width: 88%; padding: 9px 11px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); box-shadow: 0 8px 18px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06); font-size: 13px; line-height: 1.4; }
.pmsg.bot { justify-self: start; border-top-left-radius: 6px; }
.pmsg.user { justify-self: end; background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); color: #0b0d12; border: none; border-top-right-radius: 6px; font-weight: 700; letter-spacing: 0.2px; }
.pmsg .title { display: inline-block; margin: 0 0 6px; padding: 5px 8px; border-radius: 8px; font-weight: 700; font-size: 11px; color: #eafff1; background: linear-gradient(180deg, rgba(56,168,98,0.95), rgba(26,122,68,0.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.pmsg .time { display: block; text-align: right; color: var(--muted); font-size: 10px; margin-top: 6px; opacity: 0.9; }
.pmsg.user .time, .pmsg.user .meta-row { color: rgba(0,0,0,0.6); }
.pmsg .meta-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; justify-content: flex-end; font-size: 10px; color: var(--muted); opacity: 0.9; }
.pmsg .ticks { letter-spacing: -2px; }
/* precise vertical rhythm */
.mini-chat .pmsg + .pmsg { margin-top: 6px; }
.mini-chat .pmsg + .tg-ik--mini { margin-top: 10px; }

/* Inline keyboard scaled for the phone preview */
.tg-ik--mini {
  grid-template-columns: 1fr; gap: 6px; padding: 8px; margin-top: 4px;
  position: relative; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.22);
  width: 96%; margin-left: auto; margin-right: auto;
}
.tg-ik--mini::before {
  content: ""; position: absolute; inset: 3px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10); pointer-events: none;
}
.tg-ik--mini .tg-row { grid-template-columns: 1fr 1fr; gap: 6px; }
.tg-ik--mini .tg-btn { min-height: 34px; padding: 8px 10px; font-size: 12px; }
.tg-ik--mini .tg-btn.tg-wide { min-height: 38px; }

/* Subtle entry */
@keyframes mini-reveal { to { opacity: 1; transform: translateY(0); } }
.mini-chat .pmsg, .mini-chat .tg-ik--mini { opacity: 0; transform: translateY(6px); }
.mini-chat .pmsg.user { animation: mini-reveal 380ms ease forwards; animation-delay: 80ms; }
.mini-chat .pmsg.bot { animation: mini-reveal 420ms ease forwards; animation-delay: 220ms; }
.mini-chat .tg-ik--mini { animation: mini-reveal 460ms ease forwards; animation-delay: 360ms; }

@media (max-width: 880px) {
  .phone { width: clamp(240px, 60vw, 360px); }
  .pmsg { font-size: 12px; }
  .tg-ik--mini .tg-row { grid-template-columns: 1fr; }
}

/* Mobile-first polish for small phones */
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; gap: 20px; justify-items: center; align-content: center; min-height: calc(100vh - 72px); padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .hero .phone-wrap { order: -1; }
  .phone-wrap { width: 100%; display: flex; justify-content: center; padding: 12px 0; margin: 8px auto 16px; }
  .hero-inner { padding: 20px; text-align: center; }
  .hero-ctas { justify-content: center; flex-direction: column; gap: 12px; }
  .hero-ctas .button { width: 100%; justify-content: center; min-height: 52px; }
  .hero-value-props { justify-content: center; gap: 12px; }
  .value-prop { flex: 1; min-width: 140px; justify-content: center; }
  .hero-trust { justify-content: center; }
  .phone { width: clamp(240px, 86vw, 360px); animation: none; }
  .screen { padding: 12px; }
  .mini-header { margin: 0 0 8px; padding: 6px 8px; }
  .pmsg { font-size: 13px; }
  .tg-ik--mini { gap: 8px; }
  .tg-ik--mini .tg-btn { min-height: 42px; font-size: 13px; }
  .tg-btn { min-height: 44px; }
  .container { padding: 18px; }

  /* Better mobile value props layout */
  .hero-value-props { flex-direction: column; align-items: stretch; }
  .value-prop { justify-content: flex-start; padding: 12px 16px; }
}

@media (max-width: 880px) and (min-width: 641px) {
  .hero { grid-template-columns: 1fr; gap: 18px; justify-items: center; align-content: center; min-height: calc(100vh - 88px); }
  .hero .phone-wrap { order: -1; }
  .phone-wrap { width: 100%; display: flex; justify-content: center; padding: 10px 0; margin: 10px auto 18px; }
  .hero-inner { text-align: center; }
  .hero-ctas { justify-content: center; }
  .phone { width: clamp(260px, 72vw, 400px); animation: none; }
}

/* Motion/accessibility */
@media (prefers-reduced-motion: reduce) {
  .phone, .ui-panel, .ft-pill { animation: none !important; }
  .mini-chat .pmsg, .mini-chat .tg-ik--mini { animation: none !important; opacity: 1; transform: none; }
}

/* Safe-area on notched devices */
@supports (padding: max(0px)) {
  .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

.ui-panel { border-radius: 20px; border: 1px solid rgba(255,255,255,0.10); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); padding: 16px; position: relative; overflow: hidden; animation: float 12s ease-in-out infinite reverse; }
.ui-row { display: flex; gap: 10px; margin-bottom: 14px; }
.ui-chip { height: 28px; width: 28px; border-radius: 999px; background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); opacity: 0.9; }
.ui-card { height: 90px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.ui-card + .ui-card { margin-top: 12px; }
.ui-card.wide { height: 120px; }

/* Chat Demo */
.chat-demo .chat-wrap { padding: 0; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)); }
.chat-header .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #0b0d12; background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); }
.chat-header .avatar-img { width: 18px; height: 18px; display: block; object-fit: contain; }
.chat-header .meta { line-height: 1.2; }
.chat-header .name { font-weight: 600; }
.chat-header .status { font-size: 12px; color: var(--muted); }
.chat-restart { margin-left: auto; padding: 8px 12px; font-size: 0.9rem; background: rgba(255,255,255,0.06); }

.chat-window { position: relative; max-height: clamp(300px, 50vh, 460px); overflow: auto; padding: 16px; display: grid; grid-template-columns: 1fr; gap: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.03)); scrollbar-gutter: stable; }
.chat-window::after { content: ""; position: sticky; bottom: -1px; left: 0; right: 0; height: 24px; pointer-events: none; background: linear-gradient(180deg, rgba(11,13,18,0), rgba(11,13,18,0.25)); }

/* Chat demo progress */
.chat-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); overflow: hidden; margin: 8px 16px 0; }
.chat-progress .bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-2), var(--accent-1)); box-shadow: 0 8px 18px rgba(0,0,0,0.25) inset; transition: width 200ms ease; }

/* Chat explainer */
.chat-explainer { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.explainer-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.explainer-icon { font-size: 16px; }
.explainer-text { font-size: 0.9rem; color: var(--text); }

@media (max-width: 640px) {
  .chat-explainer { grid-template-columns: 1fr; gap: 8px; }
  .explainer-item { padding: 12px 14px; }
}
.msg { max-width: 80%; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), var(--shadow); opacity: 0; transform: translateY(6px) scale(0.98); transition: opacity 220ms ease, transform 220ms ease; }
.msg.show { opacity: 1; transform: translateY(0) scale(1); }
.msg.bot { justify-self: start; border-top-left-radius: 4px; }
.msg.user { justify-self: end; background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); color: #0b0d12; border: none; border-top-right-radius: 4px; }
.msg .pill { display: inline-block; margin: 6px 6px 0 0; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); font-size: 0.9em; }
.msg .muted { color: var(--muted); }
.msg .link { color: #9ec5ff; text-decoration: underline; }
.msg .meta-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--muted); opacity: 0.9; }
.msg.user .meta-row { justify-content: flex-end; color: rgba(0,0,0,0.6); }
.msg .ticks { letter-spacing: -2px; }
.typing { display: flex; gap: 6px; padding: 8px 16px 16px; justify-self: start; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); animation: bob 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

/* Chat input (demo, interactive for mobile) */
.chat-input { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,0.08); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.chat-input input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: var(--text); outline: none; font-size: 16px; }
.chat-input input::placeholder { color: var(--muted); }
.chat-input input[disabled] { opacity: 0.8; cursor: default; }
.chat-input .attach, .chat-input .send { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: all 180ms ease; }
.chat-input .send { background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); color: #0b0d12; border: none; font-weight: 800; }
.chat-input .send:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(117, 100, 255, 0.35); }
.chat-input .attach:hover { background: rgba(255,255,255,0.1); }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Sections */
.section-head { text-align: center; margin: 40px 0 24px; }
.section-head h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.01em; font-weight: 700; }
.section-head p { color: var(--muted); font-size: clamp(0.95rem, 1.1vw, 1.1rem); line-height: 1.6; max-width: 600px; margin: 8px auto 0; }

@media (max-width: 640px) {
  .section-head { margin: 32px 0 20px; }
  .section-head h2 { font-size: 1.6rem; }
  .section-head p { font-size: 1rem; }
}

/* Story progress */
.story-progress { position: sticky; top: 64px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); overflow: hidden; margin: 12px auto 0; max-width: 520px; }
.story-progress .bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-2), var(--accent-1)); box-shadow: 0 8px 18px rgba(0,0,0,0.25) inset; transition: width 200ms ease; }

/* Sticky Story */
.story { margin-top: 8px; }
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.story-stage { position: sticky; top: 72px; height: calc(100vh - 120px); display: grid; place-items: center; }
.story-phone { width: clamp(280px, 36vw, 440px); transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
[data-story][data-step="0"] .story-phone { transform: translateY(6px) scale(0.98); }
[data-story][data-step="1"] .story-phone { transform: translateY(0) scale(1); }
[data-story][data-step="2"] .story-phone { transform: translateY(-4px) scale(1.03); }

/* Story scenes inside the phone */
.story-phone .screen { position: relative; overflow: hidden; }
.story-scene { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 18px; text-align: center; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity 420ms ease, transform 420ms ease; }
.story-scene .scene-title { font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.story-scene .scene-ui { display: inline-grid; gap: 8px; justify-items: center; }
.scene-pill { width: 60%; height: 14px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); }
.scene-pill.long { width: 76%; }
.scene-card { width: 78%; height: 60px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.scene-ui.grid { grid-template-columns: repeat(2, 28px); gap: 12px; }
.scene-dot { width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }

[data-story][data-step="0"] .story-scene[data-scene="0"],
[data-story][data-step="1"] .story-scene[data-scene="1"],
[data-story][data-step="2"] .story-scene[data-scene="2"] { opacity: 1; transform: translateY(0) scale(1); }

/* Story media swap */
.story-scene .scene-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; opacity: 0; transform: scale(1.01); transition: opacity 420ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); border: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.4); }
.story-scene.media-ready .scene-media { opacity: 1; transform: scale(1); }
.story-scene.media-ready .scene-fallback { opacity: 0; visibility: hidden; transition: opacity 200ms ease; }

.story-steps { display: grid; gap: 16px; align-content: start; }
.story-step { padding: 18px; position: relative; }
.story-step.is-active { background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)); box-shadow: 0 18px 36px rgba(0,0,0,0.35); transform: translateY(-1px); }
.story-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.story-step p { color: var(--muted); }
.story-step::before { content: ""; position: absolute; left: -10px; top: 18px; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.2); box-shadow: 0 0 0 2px rgba(255,255,255,0.08); }
.story-step.is-active::before { background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); box-shadow: 0 0 0 2px rgba(124,92,255,0.25); }

@media (max-width: 1024px) { .story-grid { grid-template-columns: 1fr; } .story-stage { order: 1; height: auto; position: relative; top: 0; } .story-phone { width: clamp(260px, 70vw, 420px); margin: 0 auto 10px; } }

@media (prefers-reduced-motion: reduce) {
  .story-phone { transition: none; }
  .story-scene { transition: none; opacity: 1 !important; transform: none !important; }
  .story-scene .scene-media { transition: none; }
  .story-progress .bar { transition: none; }
}


/* Features with Apple liquid glass */
.feature-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 32px; 
  margin: 60px 0;
}
.feature { 
  padding: 50px 40px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 1;
}
.feature:hover { 
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.25);
}
.feature-icon { 
  width: 60px; 
  height: 60px; 
  display: grid; 
  place-items: center; 
  border-radius: 20px; 
  margin: 0 auto 24px; 
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)); 
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
}
.feature h3 { 
  font-size: 1.2rem; 
  margin-bottom: 12px; 
  font-weight: 600;
}
.feature p { 
  color: var(--muted); 
  font-size: 1rem; 
  line-height: 1.6;
}

/* Showcase */
.showcase .screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px; }
.screen-mock { height: 220px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)); box-shadow: var(--shadow); transition: transform 220ms ease, box-shadow 220ms ease; }
.screen-mock:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.screen-mock.b { height: 260px; }
.screen-mock.c { height: 240px; }

/* Enhanced Social Proof Section */
.social-proof-section {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Live Activity Feed */
.activity-feed {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.activity-feed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 1;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feed-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff4757;
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.live-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff4757;
  letter-spacing: 0.5px;
}

.feed-items {
  max-height: 180px;
  overflow: hidden;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  transition: all var(--duration-normal) var(--ease-out-cubic);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item.new {
  transform: translateY(-10px);
  opacity: 0;
  animation: slide-in var(--duration-normal) var(--ease-out-cubic) forwards;
}

@keyframes slide-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-name {
  font-weight: 600;
  color: var(--accent-2);
  font-size: 0.9rem;
}

.feed-highlight {
  color: var(--accent-1);
  font-weight: 500;
}

.feed-time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.feed-flag {
  font-size: 1.2rem;
}

/* Enhanced Stats Grid */
.enhanced-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out-cubic);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-change {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(45, 212, 191, 0.1);
  border-radius: 12px;
  display: inline-block;
}

/* Live Stats Dashboard */
.stats-dashboard {
  text-align: center;
  padding: 2rem 0;
}

.dashboard-header {
  margin-bottom: 3rem;
  position: relative;
}

.dashboard-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.dashboard-header p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-live 2s infinite;
}

.live-text {
  color: #22c55e;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat-company {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.stat-company:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.company-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.logo-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
}

.company-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-align: left;
}

.company-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-pulse {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-activity 3s infinite;
}

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

.dashboard-summary {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.summary-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  border-radius: 50%;
  flex-shrink: 0;
}

.summary-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.summary-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.summary-label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .enhanced-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .enhanced-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-card {
    padding: 24px 20px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .activity-feed {
    padding: 20px;
  }
  
  .feed-item {
    padding: 10px 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-company {
    padding: 1.25rem;
  }
  
  .company-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .dashboard-summary {
    padding: 1.5rem;
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .summary-item {
    padding: 0.75rem;
  }
  
  .summary-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .summary-number {
    font-size: 1.5rem;
  }
}

/* How it works */
.how-it-works .hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-it-works .hiw-step { padding: 16px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); box-shadow: var(--shadow); }
.how-it-works .step-ico { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); margin-bottom: 8px; font-weight: 700; }
.how-it-works h3 { margin-bottom: 6px; font-size: 1.05rem; }
.how-it-works p { color: var(--muted); }
.how-it-works .hiw-cta { display: flex; justify-content: center; margin-top: 14px; }
@media (max-width: 1024px) { .how-it-works .hiw-grid { grid-template-columns: 1fr; } }

/* Use cases */
.use-cases .uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use-cases .uc-card { padding: 16px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.use-cases .uc-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); font-size: 18px; }
.use-cases .uc-card h3 { margin: 4px 0; font-size: 1.05rem; }
.use-cases .uc-card p { color: var(--muted); }
.use-cases .uc-cta { justify-self: start; margin-top: 4px; }
@media (max-width: 1024px) { .use-cases .uc-grid { grid-template-columns: 1fr; } }

/* Press logos */
.press-logos .logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: center; }
.press-logos .logo-badge { display: grid; place-items: center; height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); color: var(--muted); font-weight: 600; letter-spacing: 0.2px; filter: grayscale(1); opacity: 0.8; }
.press-logos .logo-badge:hover { opacity: 1; filter: grayscale(0.85); }
@media (max-width: 1024px) { .press-logos .logos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .press-logos .logos { grid-template-columns: 1fr; } }

/* Trust & Security */
.trust .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust .trust-item { padding: 16px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); box-shadow: var(--shadow); }
.trust .trust-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); margin-bottom: 8px; }
.trust h3 { margin-bottom: 6px; font-size: 1.05rem; }
.trust p { color: var(--muted); }
@media (max-width: 1024px) { .trust .trust-grid { grid-template-columns: 1fr; } }

/* Global map */
.global-map { position: relative; }
.global-map .world { 
  position: relative; 
  height: 320px; 
  border-radius: 16px; 
  border: 1px solid rgba(255,255,255,0.12); 
  background: radial-gradient(60% 80% at 50% 50%, rgba(124,92,255,0.10), rgba(45,212,191,0.06), rgba(0,0,0,0) 70%), rgba(255,255,255,0.03); 
  overflow: hidden; 
  cursor: default;
}

.global-map .world::before { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(40% 80% at 20% 50%, rgba(255,255,255,0.06), transparent 60%), radial-gradient(40% 80% at 80% 50%, rgba(255,255,255,0.06), transparent 60%); 
  pointer-events: none; 
}

.global-map .world-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

.global-map .connection-path {
  stroke-dasharray: 4, 4;
  animation: dash-flow 3s linear infinite;
}

@keyframes dash-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 16; }
}

.global-map .world .dot { 
  position: absolute; 
  left: var(--x); 
  top: var(--y); 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); 
  box-shadow: 0 0 0 2px rgba(124,92,255,0.25), 0 8px 18px rgba(0,0,0,0.35); 
  transform: translate(-50%, -50%); 
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-dot 2s infinite;
  animation-delay: calc(var(--delay, 0) * 1ms);
}

.global-map .world .dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.3) 0%, transparent 70%);
  animation: ripple 2s infinite;
  animation-delay: calc(var(--delay, 0) * 1ms + 0.5s);
  opacity: 0;
}

.global-map .world .dot:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 0 4px rgba(124,92,255,0.4), 0 12px 24px rgba(0,0,0,0.4);
  z-index: 10;
}

@keyframes pulse-dot {
  0%, 100% { 
    box-shadow: 0 0 0 2px rgba(124,92,255,0.25), 0 8px 18px rgba(0,0,0,0.35); 
  }
  50% { 
    box-shadow: 0 0 0 6px rgba(124,92,255,0.4), 0 0 20px rgba(124,92,255,0.3), 0 8px 18px rgba(0,0,0,0.35); 
  }
}

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

.global-map .world .legend { 
  position: absolute; 
  left: 16px; 
  bottom: 16px; 
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: calc(100% - 32px);
}

.global-map .legend-item {
  display: flex;
  align-items: center;
}

.global-map .trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.global-map .trust-badge:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(124,92,255,0.3);
  transform: translateY(-1px);
}

.global-map .badge-icon {
  font-size: 0.9rem;
  filter: drop-shadow(0 0 4px rgba(124,92,255,0.3));
}

.global-map .badge-text {
  font-weight: 500;
  white-space: nowrap;
}

.global-map .region-tooltip {
  position: absolute;
  background: rgba(20, 24, 35, 0.95);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 20;
  transform: translate(-50%, -100%) translateY(-8px);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-map .region-tooltip.show {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(-8px) scale(1);
}

.global-map .tooltip-region {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.global-map .tooltip-stats {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.global-map .tooltip-stats span {
  color: var(--accent-1);
  font-weight: 500;
}

.global-map .connection-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Scroll reveal animation for global map */
.global-map[data-reveal]:not(.is-visible) .dot {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.global-map[data-reveal].is-visible .dot {
  opacity: 1;
  animation: dot-reveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 1ms);
}

@keyframes dot-reveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .global-map .world .dot {
    animation: none;
  }
  
  .global-map .world .dot::before {
    animation: none;
    opacity: 0;
  }
  
  .global-map .connection-path {
    animation: none;
  }
  
  .global-map[data-reveal]:not(.is-visible) .dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .global-map .world {
    height: 280px;
  }
  
  .global-map .world .legend {
    grid-template-columns: 1fr;
    gap: 6px;
    left: 12px;
    bottom: 12px;
  }
  
  .global-map .trust-badge {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  
  .global-map .badge-icon {
    font-size: 0.8rem;
  }
}

/* Enhanced Template Marketplace */
.templates { padding: 80px 0; }

.template-controls {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 40px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.search-container { position: relative; margin-bottom: 24px; }
.search-input-wrapper { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; font-size: 1.1rem; color: var(--muted); z-index: 2; }
.template-search {
  width: 100%; padding: 16px 16px 16px 50px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; color: var(--text);
  font-size: 1rem; outline: none; transition: all var(--duration-normal) var(--ease-out-cubic);
}
.template-search:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1); }

.filter-container { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.filter-tabs { display: flex; gap: 8px; background: rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 6px; }
.filter-tab {
  display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: transparent;
  border: none; border-radius: 10px; color: var(--muted); cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-cubic); font-weight: 500; font-size: 0.9rem;
}
.filter-tab.active { background: rgba(255, 255, 255, 0.12); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.filter-count { background: var(--accent-1); color: #0b0d12; padding: 2px 6px; border-radius: 8px; font-size: 0.7rem; font-weight: 600; }

.templates .tpl-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 32px; 
  margin: 40px 0;
}
.templates .tpl-card { 
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}
.templates .tpl-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }

.tpl-header { padding: 24px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.tpl-icon { font-size: 2.5rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)); }
.tpl-badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.badge { padding: 4px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-popular { background: linear-gradient(135deg, #ff6b6b, #ff8e53); color: #fff; }
.badge-new { background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); color: #0b0d12; }

.tpl-content { padding: 16px 24px; flex: 1; }
.tpl-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.tpl-content p { color: var(--muted); line-height: 1.6; margin-bottom: 16px; font-size: 0.95rem; }
.tpl-features { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.feature-tag { padding: 6px 12px; background: rgba(124, 92, 255, 0.15); border: 1px solid rgba(124, 92, 255, 0.3); border-radius: 20px; color: var(--accent-1); font-size: 0.8rem; font-weight: 500; }
.tpl-actions { padding: 0 24px 24px; display: flex; gap: 12px; }
.tpl-actions .button { flex: 1; justify-content: center; }
@media (max-width: 1024px) { .templates .tpl-grid { grid-template-columns: 1fr; } }

/* Analytics counters */
.analytics-counters .ac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.analytics-counters .ac-card { padding: 16px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); box-shadow: var(--shadow); display: grid; justify-items: center; gap: 6px; }
.analytics-counters .ac-num { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.2px; }
.analytics-counters .ac-label { color: var(--muted); }
@media (max-width: 1024px) { .analytics-counters .ac-grid { grid-template-columns: 1fr; } }

/* Bot Types (floating background) */

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi { padding: 18px; }
.testi blockquote { font-size: 1rem; line-height: 1.5; }
.testi figcaption { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* Admin Info (overview copy) */
.admin-info .info { padding: 16px; }
.admin-info h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.admin-info h3 { margin-top: 14px; font-size: 1.05rem; }
.admin-info p { color: var(--muted); }
.admin-info .divider { height: 1px; background: rgba(255,255,255,0.08); margin: 12px 0; }
.admin-info .info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.admin-info .info-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; background: rgba(255,255,255,0.05); }
.admin-info .info-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); }
.admin-info .info-title { font-weight: 600; letter-spacing: 0.2px; }
.admin-info .info-desc { color: var(--muted); font-size: 0.95rem; }
.admin-info .ticks { margin: 8px 0 0; padding-left: 18px; }
.admin-info .ticks li + li { margin-top: 6px; }

@media (max-width: 1024px) {
  .admin-info .info-grid { grid-template-columns: 1fr; }
}

/* Admin Demo */
.admin-demo { padding: 14px; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.admin-demo .admin-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 10px; }
.admin-demo .admin-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.2px; }
.admin-demo .admin-title .badge { font-size: 11px; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); }
.admin-demo .toggle-theme { background: rgba(255,255,255,0.06); }
.admin-demo .toggle-theme[aria-pressed="true"] { background: rgba(255,255,255,0.12); }

.admin-demo .admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.admin-demo .admin-card { border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); box-shadow: var(--shadow); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.admin-demo .admin-card:hover { transform: translateY(-2px); box-shadow: 0 22px 40px rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.22); }
.admin-demo .admin-card.full { grid-column: 1 / -1; }
.admin-demo .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.admin-demo .card-title { font-weight: 600; }
.admin-demo .legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.admin-demo .legend .dot { width: 8px; height: 8px; border-radius: 999px; background: #60e1c6; box-shadow: 0 0 0 2px rgba(96,225,198,0.25); }
.admin-demo .legend .dot.live { background: #9cc0ff; box-shadow: 0 0 0 2px rgba(156,192,255,0.25); }

.admin-demo .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.admin-demo .kpi { padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.admin-demo .kpi-ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); grid-row: span 2; }
.admin-demo .kpi-label { font-size: 12px; color: var(--muted); }
.admin-demo .kpi-value { font-size: 1.1rem; font-weight: 700; margin-top: 6px; letter-spacing: 0.2px; }

.admin-demo .controls .switch-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-demo .controls .sr { color: var(--muted); font-size: 0.95rem; }
.admin-demo .controls .w-full { width: 100%; margin-top: 6px; }

/* iOS-like switch */
.switch { position: relative; width: 42px; height: 24px; display: inline-block; }
.switch input { display: none; }
.slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.24); border-radius: 999px; transition: background 200ms ease; }
.slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 2px; border-radius: 50%; background: #0b0d12; box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 6px 14px rgba(0,0,0,0.4); transition: transform 200ms ease; }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); border: none; }
.switch input:checked + .slider::before { transform: translateX(18px); background: #fff; }

.admin-demo .points .points-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.admin-demo .points .points-value { font-size: 1.4rem; font-weight: 800; }
.admin-demo .points .points-hint { color: var(--muted); font-size: 12px; }
.admin-demo .points .api-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-demo .points .api { color: #9ec5ff; background: rgba(255,255,255,0.06); padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.16); }
.admin-demo .points .api-actions { display: inline-flex; gap: 8px; }
.admin-demo .points .api-status { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

.admin-demo .admin-bullets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.admin-demo .admin-bullets li { padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); }

/* Admin light theme (scoped) */
#adminDemo[data-theme="light"] { color-scheme: light;
  --ad-card: rgba(255,255,255,0.8);
}
#adminDemo[data-theme="light"] .admin-card { background: rgba(255,255,255,0.85); color: #0b0d12; border-color: rgba(0,0,0,0.08); }
#adminDemo[data-theme="light"] .kpi { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
#adminDemo[data-theme="light"] .points .api { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #0b0d12; }
#adminDemo[data-theme="light"] .switch .slider { background: rgba(0,0,0,0.12); border-color: rgba(0,0,0,0.18); }

/* Toast */
#adminDemo .toast { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 8px 10px; border-radius: 10px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; }
#adminDemo .toast.show { opacity: 1; transform: translateY(0); }

/* Telegram-like panel */
.tg-panel { display: grid; gap: 12px; }
.tg-wrap { max-width: 760px; margin: 0 auto; }
.tg-chat, .tg-ik { width: 100%; }
.tg-chat { background: #0c1116; border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; overflow: hidden; }
.tg-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)); font-size: 12px; color: var(--muted); }
.tg-header .tg-user { font-weight: 600; color: var(--text); }
.tg-bubble { margin: 10px; padding: 12px; border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.tg-bubble { position: relative; }
.tg-bubble.is-protected::after { content: 'protected'; position: absolute; right: 8px; bottom: 6px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.tg-bubble p { margin: 0 0 8px 0; font-size: 0.95rem; }
.tg-bubble .tg-sep { color: var(--muted); letter-spacing: 1px; }
.tg-link { color: #9ec5ff; text-decoration: underline; }
.tg-time { text-align: right; font-size: 11px; color: var(--muted); margin-top: 6px; }

.tg-ik { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: rgba(255,255,255,0.04); }
.tg-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; grid-column: 1 / -1; }
.tg-btn { width: 100%; min-height: 40px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.16); background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); color: var(--text); text-align: center; font-weight: 600; letter-spacing: 0.2px; cursor: pointer; transition: background 180ms ease, box-shadow 180ms ease, transform 90ms ease; }
.tg-btn.tg-wide { grid-column: 1 / -1; }
.tg-btn:hover { background: rgba(255,255,255,0.12); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.tg-btn:active { transform: translateY(1px); }
.tg-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.tg-btn.is-on { background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); border: none; color: #0b0d12; box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.tg-btn[disabled] { opacity: 0.6; cursor: default; }

@media (max-width: 1024px) { .tg-ik { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tg-ik { grid-template-columns: 1fr; }
  .tg-row { grid-template-columns: 1fr; }
}

/* Light theme adjustments */
#adminDemo[data-theme="light"] .tg-chat { background: #f6f7fb; border-color: rgba(0,0,0,0.06); }
#adminDemo[data-theme="light"] .tg-bubble { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
#adminDemo[data-theme="light"] .tg-ik { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
#adminDemo[data-theme="light"] .tg-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #0b0d12; }
#adminDemo[data-theme="light"] .tg-btn:hover { background: rgba(0,0,0,0.06); }

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

@media (max-width: 640px) {
  .admin-demo { padding: 10px; }
  .admin-demo .admin-bullets { grid-template-columns: 1fr; }
}

/* Magical Solar System Types */

/* Main Container */
.types-solar {
  position: relative;
  overflow: hidden;
}

.solar-universe {
  position: relative;
  margin: 0 auto;
  width: min(960px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 40%, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 40%, rgba(0, 0, 0, 0.95) 100%);
}

/* Cosmic Background Layers */
.cosmic-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

/* Animated Starfield */
.starfield {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(1px 1px at 160px 30px, rgba(255,255,255,0.9), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: starfield-drift 120s linear infinite;
}

.starfield-far {
  opacity: 0.3;
  animation-duration: 200s;
}

.starfield-mid {
  opacity: 0.5;
  animation-duration: 150s;
  background-size: 250px 120px;
}

.starfield-near {
  opacity: 0.7;
  animation-duration: 100s;
  background-size: 300px 150px;
}

@keyframes starfield-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-200px, -100px); }
}

/* Flowing Nebula Clouds */
.nebula-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.4;
  mix-blend-mode: screen;
  animation: nebula-flow 60s ease-in-out infinite;
}

.nebula-1 {
  background: radial-gradient(ellipse 300px 200px at 20% 30%, rgba(124, 92, 255, 0.3) 0%, transparent 50%),
              radial-gradient(ellipse 200px 300px at 80% 70%, rgba(45, 212, 191, 0.2) 0%, transparent 50%);
  animation-delay: 0s;
}

.nebula-2 {
  background: radial-gradient(ellipse 250px 180px at 60% 20%, rgba(255, 215, 100, 0.2) 0%, transparent 50%),
              radial-gradient(ellipse 180px 250px at 30% 80%, rgba(255, 140, 200, 0.2) 0%, transparent 50%);
  animation-delay: -30s;
}

@keyframes nebula-flow {
  0%, 100% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(1deg) scale(1.05); }
  66% { transform: rotate(-1deg) scale(0.95); }
}

/* Cosmic Dust Particles */
.cosmic-dust {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(124,92,255,0.3), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(45,212,191,0.3), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,215,100,0.3), transparent);
  background-size: 400px 400px;
  animation: cosmic-drift 180s linear infinite;
  opacity: 0.6;
}

@keyframes cosmic-drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-100px, -50px) rotate(360deg); }
}

/* Aurora Light Effects */
.aurora-lights {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(124, 92, 255, 0.1) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(45, 212, 191, 0.1) 50%, transparent 70%);
  animation: aurora-dance 40s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes aurora-dance {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.8; }
  50% { transform: translateY(-20px) scaleY(1.1); opacity: 0.6; }
}

/* Solar System Types */
.types-solar .solar {
  position: relative;
  margin: 0 auto;
  width: min(960px, 92vw);
  aspect-ratio: 1 / 1;
  padding: 12px;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(124,92,255,0.14), rgba(11,13,18,0) 65%),
    radial-gradient(40% 40% at 55% 55%, rgba(45,212,191,0.10), transparent 70%);
}
.types-solar .solar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8), transparent 50%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1.2px 1.2px at 60% 30%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 80% 80%, rgba(255,255,255,0.6), transparent 50%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.25; }
  to { opacity: 0.45; }
}
.solar .ring {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin-left: calc(var(--r) * -1); margin-top: calc(var(--r) * -1);
  border: 1px dashed rgba(255,255,255,0.10);
  border-radius: 50%;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}
.solar .ring::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.22), transparent 12%, transparent 88%);
  mask: radial-gradient(circle, transparent calc(50% - 1px), #000 calc(50% - 1px), #000 calc(50% + 1px), transparent calc(50% + 1px));
  animation: ringSweep 18s linear infinite;
  opacity: 0.6;
}
@keyframes ringSweep { to { transform: rotate(1turn); } }
/* Enhanced Magical Sun */
.solar .sun {
  position: relative; z-index: 2;
  width: 110px; height: 110px; border-radius: 50%;
  display: grid; place-items: center; color: #0b0d12; font-weight: 800;
  background: radial-gradient(60% 60% at 40% 40%, #ffffff, #ffe7a8 60%, #ffd36a 100%);
  box-shadow: 0 20px 60px rgba(255, 211, 106, 0.45), inset 0 2px 10px rgba(255,255,255,0.6);
  animation: sunPulse 4.5s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.sun-core {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: grid;
  place-items: center;
}

/* Energy Rings around Sun */
.energy-rings {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.energy-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 211, 106, 0.4);
  animation: energy-pulse 3s ease-in-out infinite;
}

.energy-ring.ring-1 {
  inset: 0;
  animation-delay: 0s;
}

.energy-ring.ring-2 {
  inset: -10px;
  animation-delay: -1s;
  border-color: rgba(255, 180, 77, 0.3);
}

.energy-ring.ring-3 {
  inset: -20px;
  animation-delay: -2s;
  border-color: rgba(255, 152, 0, 0.2);
}

@keyframes energy-pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.4;
    border-width: 1px;
  }
  50% { 
    transform: scale(1.1); 
    opacity: 0.8;
    border-width: 2px;
  }
}

/* Solar Flares */
.solar-flares {
  position: absolute;
  inset: -30px;
  pointer-events: none;
}

.flare {
  position: absolute;
  width: 2px;
  background: linear-gradient(to top, transparent, rgba(255, 211, 106, 0.8), transparent);
  animation: solar-flare 8s ease-in-out infinite;
  transform-origin: bottom center;
}

.flare-1 {
  top: -20px;
  left: 50%;
  height: 40px;
  animation-delay: 0s;
}

.flare-2 {
  bottom: -20px;
  left: 50%;
  height: 35px;
  transform: rotate(180deg);
  animation-delay: -2s;
}

.flare-3 {
  top: 50%;
  right: -20px;
  height: 30px;
  transform: rotate(90deg);
  animation-delay: -4s;
}

.flare-4 {
  top: 50%;
  left: -20px;
  height: 25px;
  transform: rotate(-90deg);
  animation-delay: -6s;
}

@keyframes solar-flare {
  0%, 70%, 100% { 
    opacity: 0;
    transform: scaleY(0.5);
  }
  10%, 60% { 
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Power Waves */
.power-waves {
  position: absolute;
  inset: -50px;
  pointer-events: none;
}

.power-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 211, 106, 0.2);
  animation: power-wave 6s ease-out infinite;
}

.power-wave.wave-1 {
  animation-delay: 0s;
}

.power-wave.wave-2 {
  animation-delay: -2s;
}

.power-wave.wave-3 {
  animation-delay: -4s;
}

@keyframes power-wave {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Enhanced Sun Hover Effects */
.magic-sun:hover {
  transform: scale(1.05);
}

.magic-sun:hover .energy-ring {
  animation-duration: 1.5s;
  border-color: rgba(255, 211, 106, 0.8);
}

.magic-sun:hover .flare {
  animation-duration: 4s;
  opacity: 1;
}

.magic-sun:hover .power-wave {
  animation-duration: 3s;
}
.sun .sun-mark { font-size: 28px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.sun .sun-logo { width: 48px; height: 48px; display: block; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.sun .sun-text { position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: #0b0d12; background: rgba(255, 255, 255, 0.9); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.sun .sun-glow { position: absolute; inset: -36px; border-radius: 50%; background: radial-gradient(70% 70% at 50% 50%, rgba(255,211,106,0.35), transparent 70%); z-index: -1; filter: blur(2px); }
@keyframes sunPulse { 0%, 100% { transform: scale(1); box-shadow: 0 20px 60px rgba(255,211,106,0.45); } 50% { transform: scale(1.03); box-shadow: 0 28px 80px rgba(255,211,106,0.55); } }
/* Make sun anchor non-underlined */
.solar .sun { text-decoration: none; position: relative; }
.solar .sun:hover { filter: saturate(1.05); }
.solar .sun:hover .sun-text { background: rgba(255, 255, 255, 1); transform: translateX(-50%) translateY(-2px); }

/* Solar instructions and magic controls */
.solar-instructions { 
  margin-top: 16px; 
  display: flex; 
  justify-content: center; 
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.instruction-mobile, .instruction-desktop { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  padding: 8px 12px; 
  border-radius: 999px; 
  background: rgba(255, 255, 255, 0.06); 
  border: 1px solid rgba(255, 255, 255, 0.12); 
}

.instruction-icon { font-size: 16px; }
.instruction-text { font-size: 0.9rem; color: var(--muted); }

/* Magic Controls */
.magic-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.constellation-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.constellation-toggle:hover {
  background: rgba(124, 92, 255, 0.2);
  border-color: rgba(124, 92, 255, 0.5);
  transform: translateY(-1px);
}

.constellation-toggle.active {
  background: rgba(124, 92, 255, 0.3);
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.3);
}

.constellation-icon {
  font-size: 14px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
}

.constellation-toggle.active .constellation-icon {
  animation-duration: 1s;
}

/* Constellation Overlay */
.constellation-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 3;
}

.constellation-overlay.active {
  opacity: 1;
}

.constellation-line {
  stroke: rgba(124, 92, 255, 0.6);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 5, 5;
  animation: constellation-draw 2s ease-out forwards;
  filter: url(#constellation-glow);
}

@keyframes constellation-draw {
  from {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Magic Particles Canvas */
.magic-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}
.instruction-desktop { display: none; }

@media (min-width: 1024px) {
  .instruction-mobile { display: none; }
  .instruction-desktop { display: flex; }
}

/* Static mode: disable all autonomous animations inside solar */
.types-solar .solar[data-static] .ring::after { animation: none !important; }
.types-solar .solar[data-static] .sun { animation: none !important; }
.types-solar .solar[data-static] .orbiter { animation: none !important; transform: none !important; }
.types-solar .solar[data-static] .planet { transform: translate(var(--sx, 0px), var(--sy, 0px)) !important; }

.orbiter { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--offset, 0deg)); transform-origin: 0 0; animation: spin var(--d, 40s) linear infinite; }
@keyframes spin { to { transform: rotate(calc(var(--offset, 0deg) + 1turn)); } }

/* Random motion mode disables orbit rotation; JS drives positions */
.solar.random .orbiter { animation: none !important; transform: none !important; }

/* Planet pills styled like floating-types (premium) */
.planet {
  position: absolute; left: 0; top: 0; transform: translateX(var(--r));
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  color: var(--text); text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 0 0 1px var(--acc, rgba(124,92,255,0.28)), 0 10px 24px rgba(0,0,0,0.35);
  transition: transform 160ms ease, background 200ms ease, box-shadow 200ms ease;
  --sz: 1;
  will-change: transform;
  max-width: 140px;
  min-width: fit-content;
}
.planet:hover { transform: translateX(var(--r)) translateY(-1px) scale(calc(1 * var(--sz))); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 1px var(--acc, rgba(124,92,255,0.4)), 0 16px 36px rgba(0,0,0,0.5); }
.planet::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 40%); opacity: 0; transition: opacity 200ms ease; }
.planet:hover::after { opacity: 1; }
.planet .emoji { 
  font-size: 14px; 
  flex-shrink: 0;
}
.planet .label { 
  font-weight: 600; 
  font-size: 12px; 
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
/* Pause CSS orbits on hover (non-random mode) */
.types-solar .orbiter:hover { animation-play-state: paused; }
/* Keyboard focus ring for pill planets */
.types-solar .planet:focus { outline: 2px solid var(--accent-2); outline-offset: 2px; }
/* Subtle press feedback */
.types-solar .planet:active { transform: translateX(var(--r)) scale(0.98); }

/* Accent tints */
.planet[data-t="violet"] { --acc: rgba(124,92,255,0.35); }
.planet[data-t="teal"] { --acc: rgba(45,212,191,0.35); }
.planet[data-t="gold"] { --acc: rgba(255,215,100,0.35); }
.planet[data-t="blue"] { --acc: rgba(100,180,255,0.35); }
.planet[data-t="cyan"] { --acc: rgba(120,240,240,0.35); }
.planet[data-t="pink"] { --acc: rgba(255,140,200,0.35); }
.planet[data-t="lime"] { --acc: rgba(150,255,150,0.35); }
.planet[data-t="orange"] { --acc: rgba(255,175,110,0.35); }
.planet[data-t="purple"] { --acc: rgba(180,140,255,0.35); }
.planet[data-t="indigo"] { --acc: rgba(120,140,255,0.35); }
.planet[data-t="rose"] { --acc: rgba(255,160,160,0.35); }


/* Planet accent colors */
.dot[data-color="violet"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(124,92,255,0.6)); }
.dot[data-color="teal"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(45,212,191,0.6)); }
.dot[data-color="gold"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(255,215,100,0.6)); }
.dot[data-color="blue"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(100,180,255,0.6)); }
.dot[data-color="cyan"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(120,240,240,0.6)); }
.dot[data-color="pink"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(255,140,200,0.6)); }
.dot[data-color="lime"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(150,255,150,0.6)); }
.dot[data-color="orange"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(255,175,110,0.6)); }
.dot[data-color="purple"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(180,140,255,0.6)); }
.dot[data-color="indigo"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(120,140,255,0.6)); }
.dot[data-color="rose"] { background: radial-gradient(50% 50% at 40% 40%, #fff, rgba(255,160,160,0.6)); }

/* Responsive and motion */
@media (max-width: 640px) {
  .types-solar.container { padding: 0; max-width: 100%; }
  .types-solar .section-head { padding: 16px 20px 12px; margin: 0; }
  
  /* Mobile: Square layout with auto-zoom */
  .types-solar .solar { 
    width: 100vw; 
    height: 100vw; /* Square aspect ratio */
    aspect-ratio: 1; 
    border-radius: 0; 
    transform: scale(0.85); /* Auto-zoom to show full system */
    transform-origin: center;
    transition: transform 0.3s ease;
  }
  
  /* Show all rings on mobile with square layout */
  .solar .ring[style*="340px"],
  .solar .ring[style*="410px"] { display: block; }
  .types-solar .orbiter[data-ring="340"],
  .types-solar .orbiter[data-ring="410"] { display: block; }
  
  /* Optimize planet visibility for square layout */
  .planet { 
    padding: 6px 10px; 
    font-size: 12px; 
    gap: 4px;
    max-width: 120px;
  }
  .planet .label {
    font-size: 11px;
    max-width: 80px;
  }
  .planet .emoji {
    font-size: 12px;
  }
  .sun { width: 80px; height: 80px; }
  .sun .sun-text { bottom: -28px; font-size: 11px; padding: 3px 6px; }
  
  /* Better mobile instructions */
  .solar-instructions { margin-top: 12px; }
  .instruction-mobile { padding: 10px 16px; }
  
  /* Mobile universe container adjustments */
  .solar-universe {
    width: 100vw;
    height: 100vw;
    aspect-ratio: 1;
    border-radius: 0;
  }
}

/* Extra small phones: prefer emoji-only for density */
@media (max-width: 380px) {
  .types-solar .planet .label { display: none; }
  .types-solar .planet { padding: 8px; }
  .types-solar .section-head { padding: 12px 16px 8px; }
  .types-solar .section-head h2 { font-size: 1.4rem; }
  .types-solar .section-head p { font-size: 0.9rem; }
  
  /* Extra zoom for very small screens */
  .types-solar .solar { 
    transform: scale(0.75); 
  }
}

/* Medium mobile devices: balanced zoom */
@media (min-width: 480px) and (max-width: 640px) {
  .types-solar .solar { 
    transform: scale(0.9); 
  }
}

/* Mobile landscape orientation optimization */
@media (max-width: 640px) and (orientation: landscape) {
  .types-solar .solar { 
    width: 100vh; 
    height: 100vh; 
    transform: scale(0.8); 
  }
  .solar-universe {
    width: 100vh;
    height: 100vh;
  }
}

/* Extra small phones: compact Admin UI further */
@media (max-width: 380px) {
  .tg-header { font-size: 10px; padding: 6px 8px; }
  .tg-bubble p { font-size: 0.9rem; }
  .tg-ik { gap: 5px; padding: 5px; }
  .tg-row { gap: 5px; }
  .tg-btn { min-height: 34px; padding: 7px 8px; font-size: 0.9rem; }
}

@media (min-width: 1600px) {
  .types-solar .solar { width: min(1120px, 80vw); }
}

/* Show 5th ring only on larger screens */
.types-solar .orbiter[data-ring="410"],
.solar .ring[style*="410px"] { display: none; }
@media (min-width: 1200px) {
  .types-solar .orbiter[data-ring="410"],
  .solar .ring[style*="410px"] { display: block; }
}

/* Enlarge pill size on desktop */
@media (min-width: 1280px) {
  .types-solar .planet { 
    padding: 10px 16px; 
    max-width: 160px;
  }
  .types-solar .planet .label { 
    font-size: 13px; 
    max-width: 120px;
  }
  .types-solar .planet .emoji { font-size: 16px; }
  .sun .sun-text { font-size: 13px; bottom: -34px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbiter { animation: none !important; }
}

/* Footer */
.site-footer { 
  padding: 3rem 0 2rem; 
  border-top: 1px solid rgba(255,255,255,0.08); 
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.footer-logo .logo-mark {
  font-size: 1.5rem;
  color: var(--primary);
}

.footer-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.footer-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.footer-stats {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.footer-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-stat .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.footer-stat .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-column h4 {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-showcase { min-height: 300px; }
  .chat-window { max-height: min(60vh, 520px); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase .screens { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 24px 20px; }
  .hero-inner { padding: 40px 30px; }
  .button--lg { width: 100%; padding: 18px 24px; }
  .msg { max-width: 90%; font-size: 0.95rem; padding: 16px 18px; border-radius: 18px; }
  .msg .pill { margin: 8px 8px 4px 0; padding: 10px 14px; font-size: 0.85rem; border-radius: 20px; }
  .chat-header { padding: 16px 16px; }
  .chat-restart { 
    width: auto; 
    min-width: 48px;
    height: 48px; 
    padding: 8px 12px; 
    border-radius: 24px; 
    font-size: 0.85rem; 
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
  }
  
  .chat-restart::before { 
    content: '↻'; 
    font-size: 18px; 
    line-height: 1; 
    color: var(--accent-1);
    transition: all 0.2s ease;
    order: -1;
  }
  
  .chat-restart::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: left 0.5s ease;
  }
  
  .chat-restart:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  
  .chat-restart:hover::before {
    transform: rotate(180deg);
    color: var(--accent-2);
  }
  
  .chat-restart:hover::after {
    left: 100%;
  }
  
  .chat-restart:active {
    transform: translateY(0) scale(0.95);
    transition: all 0.1s ease;
  }
  
  .chat-restart:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
  }
  
  /* Enhanced touch feedback for mobile */
  @media (pointer: coarse) {
    .chat-restart {
      min-width: 52px;
      height: 52px;
      min-height: 52px;
      padding: 10px 14px;
      font-size: 0.9rem;
    }
    
    .chat-restart::before {
      font-size: 20px;
    }
    
    .chat-restart:active {
      transform: scale(0.9);
      background: rgba(255,255,255,0.2);
    }
  }
  
  /* Improved accessibility for screen readers */
  .chat-restart[aria-label] {
    position: relative;
  }
  
  .chat-restart[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
  }
  
  .chat-restart[aria-label]:hover::after {
    opacity: 1;
  }
  
  /* Additional mobile optimizations */
  @media (max-width: 480px) {
    .chat-restart {
      min-width: 50px;
      height: 50px;
      padding: 8px 10px;
      font-size: 0.8rem;
    }
    
    .chat-restart::before {
      font-size: 18px;
    }
  }
  
  @media (max-width: 360px) {
    .chat-header {
      padding: 12px 16px;
    }
    
    .chat-restart {
      min-width: 46px;
      height: 46px;
      padding: 6px 8px;
      font-size: 0.75rem;
    }
    
    .chat-restart::before {
      font-size: 16px;
    }
  }
  .chat-window { max-height: clamp(300px, 50vh, 450px); padding: 16px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  
  .hero-description {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .typing-line {
    font-size: 0.95rem !important;
    margin-bottom: 4px;
  }
  
  .typing-container {
    width: 100%;
    text-align: center;
  }
  .types-box { padding: 16px; }
  /* Smooth scrolling for storytelling */
  html { 
    scroll-behavior: smooth;
    scroll-snap-type: none;
  }
  main > section { 
    scroll-snap-align: none;
  }
  /* Compact grids with better spacing */
  .feature-grid { grid-template-columns: 1fr; gap: 24px; margin: 40px 0; }
  .feature { padding: 32px 24px; }
  .how-it-works .hiw-grid { grid-template-columns: 1fr; gap: 24px; margin: 40px 0; }
  .how-it-works .hiw-step { padding: 32px 24px; }
  .use-cases .uc-grid { grid-template-columns: 1fr; gap: 24px; margin: 40px 0; }
  .use-cases .uc-card { padding: 32px 24px; }
  .templates .tpl-grid { grid-template-columns: 1fr; gap: 24px; margin: 40px 0; }
  .templates .tpl-card { padding: 32px 24px; }
  /* Better chat demo on mobile */
  .chat-demo .section-head p { font-size: 1rem; line-height: 1.5; }
  /* Section spacing on mobile */
  .section-head { margin: 60px 0 40px; padding: 0 16px; }
  .section-head h2 { font-size: 1.8rem; }
  .section-head p { font-size: 1.1rem; }
  /* Hero mobile adjustments */
  .hero { padding: 60px 0 80px; gap: 40px; }
  .hero-inner { padding: 40px 24px; }
  .hero-value-props { gap: 16px; margin: 24px 0; }
  .value-prop { padding: 14px 18px; }
}

/* Smooth storytelling motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    animation: none !important; 
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  }
}

/* Remove all scroll-based animations for storytelling */
* {
  scroll-behavior: smooth;
}

/* Disable all scroll animations */
[data-reveal], [data-parallax], [data-tilt] {
  animation: none !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.3s ease,
              border-color 0.3s ease !important;
}


/* Admin Suite layout */
.admin-suite-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1024px) { .admin-suite-grid { grid-template-columns: 1fr; } }

/* Admin quick subnav */
.admin-subnav { position: sticky; top: 64px; z-index: 10; margin: 6px 0 14px; padding: 6px; display: inline-flex; gap: 6px; border-radius: 999px; }
.admin-subnav { display: flex; align-items: center; gap: 8px; position: sticky; overflow-x: auto; }
.admin-subnav a { position: relative; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--text); border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.admin-subnav a:hover { background: rgba(255,255,255,0.10); }
.admin-subnav a.active { background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); color: #0b0d12; border: none; }
.admin-subnav .indicator { position: absolute; height: 2px; background: linear-gradient(90deg, var(--accent-2), var(--accent-1)); border-radius: 2px; bottom: 4px; left: 0; width: 0; transition: transform 300ms ease, width 300ms ease; }
.admin-suite [data-anchor] { scroll-margin-top: 84px; }

/* Smooth storytelling flow - no scroll animations */
[data-reveal] { 
  opacity: 1; 
  transform: none; 
  transition: none;
}
[data-reveal].is-visible { 
  opacity: 1; 
  transform: none;
}

/* Remove parallax for smooth storytelling */
[data-parallax] { 
  will-change: auto;
  transform: none !important;
}

/* Mobile sticky CTA with liquid glass */
.mobile-cta {
  position: fixed; left: 20px; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50; display: none; justify-content: center; align-items: center; gap: 12px;
  height: 64px; border-radius: 20px; font-weight: 600; letter-spacing: 0.2px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1)); 
  color: #0b0d12; text-decoration: none;
  box-shadow: 0 20px 40px rgba(117, 100, 255, 0.4), 0 8px 20px rgba(7, 255, 196, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(120%); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 1.1rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.mobile-cta::before {
  content: '🤖';
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.mobile-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: 1;
}

@media (max-width: 640px) { .mobile-cta { display: flex; } }
.mobile-cta.is-show { transform: translateY(0); }
.mobile-cta:active { 
  transform: translateY(0) scale(0.98); 
  transition: all 0.1s ease;
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }
/* Seamless background - no gaps between sections */
body { margin: 0; padding: 0; }
main { background: transparent; }
section { 
  background: transparent !important; 
  box-shadow: none !important; 
  margin: 0;
  padding: 0;
  border: none;
}
.container { 
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Loading States & Skeleton Animations */
.skeleton {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.04) 25%, 
    rgba(255, 255, 255, 0.08) 50%, 
    rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-2);
  animation: spin 1s linear infinite;
}

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

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

/* Micro-interactions */
.micro-bounce {
  animation: micro-bounce var(--duration-fast) var(--ease-elastic);
}

@keyframes micro-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.micro-shake {
  animation: micro-shake var(--duration-fast) ease-in-out;
}

@keyframes micro-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(124, 92, 255, 0); }
}

/* Smart Onboarding System */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out-cubic);
}

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

.onboarding-content {
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all var(--duration-normal) var(--ease-elastic);
}

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

.onboarding-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.onboarding-header p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.onboarding-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.btn-onboarding {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--duration-normal) var(--ease-out-cubic);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-onboarding.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  color: #0b0d12;
  box-shadow: 0 8px 24px rgba(117, 100, 255, 0.3);
}

.btn-onboarding.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(117, 100, 255, 0.4);
}

.btn-onboarding.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-onboarding.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

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

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  transition: width var(--duration-normal) var(--ease-out-cubic);
}

.progress-text {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Tooltip System */
.tooltip {
  position: absolute;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-out-cubic);
  pointer-events: none;
}

.tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.tooltip-content {
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

.tooltip-text {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 250px;
}

.tooltip-arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(10, 13, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
  border-top: none;
  border-left: none;
}

.tooltip.top .tooltip-arrow {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.tooltip.bottom .tooltip-arrow {
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(225deg);
}

/* Feature Spotlight — removed (unused) */

/* New User Badge */
.new-user-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 999px;
  padding: 8px 16px;
  margin-top: 16px;
  font-size: 0.9rem;
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.badge-icon {
  font-size: 1rem;
}

.badge-text {
  color: var(--text);
}

.badge-text a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.badge-text a:hover {
  text-decoration: underline;
}

.badge-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--duration-fast) var(--ease-out-cubic);
}

.badge-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* Mobile responsiveness for onboarding */
@media (max-width: 640px) {
  .onboarding-content {
    padding: 24px;
    margin: 20px;
  }
  
  .onboarding-actions {
    flex-direction: column;
  }
  
  
  .tooltip-text {
    max-width: 200px;
  }
}

/* ===== 30-POINT UI/UX POLISH SYSTEM ===== */

/* TYPOGRAPHY POLISH - Perfect font scaling and hierarchy */
.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem) !important;
  font-weight: 800 !important;
  margin-bottom: 1rem !important;
  letter-spacing: -0.03em !important;
  background: linear-gradient(135deg, var(--text), #e2e8f0) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.section-head p {
  color: #94a3b8 !important;
  font-size: 1.125rem !important;
  line-height: 1.625 !important;
  margin: 0 !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* SPACING POLISH - Perfect spacing system */
.hero {
  padding: 5rem 0 !important;
}

.hero-inner {
  padding: 2.5rem !important;
  max-width: 560px !important;
}

.hero-title {
  font-size: clamp(1.875rem, 6vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: -0.04em !important;
  background: linear-gradient(135deg, var(--text), #e2e8f0) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.hero-sub {
  font-size: 1.25rem !important;
  color: #94a3b8 !important;
  line-height: 1.625 !important;
  margin-bottom: 2rem !important;
  max-width: 480px !important;
}

.hero-ctas {
  gap: 1rem !important;
  margin-bottom: 2rem !important;
}

.hero-value-props {
  gap: 1rem !important;
  margin-bottom: 2rem !important;
}

/* VISUAL DEPTH POLISH - Enhanced glassmorphism */
.value-prop {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1) !important;
}

.value-prop::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
  z-index: 1 !important;
}

.value-prop:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

/* BUTTON POLISH - Perfect button interactions */
.button {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1) !important;
}

.button::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
  transition: left 0.5s cubic-bezier(0, 0, 0.2, 1) !important;
}

.button:hover::before {
  left: 100% !important;
}

.button--primary:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 0 30px rgba(124, 92, 255, 0.4) !important;
}

.button--secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px) !important;
}

/* CARD POLISH - Enhanced template cards */
.tpl-card {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1) !important;
}

.tpl-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
  z-index: 1 !important;
}

.tpl-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04) !important;
}

/* PHONE MOCKUP POLISH */
.phone {
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.5s cubic-bezier(0, 0, 0.2, 1) !important;
}

.phone:hover {
  transform: rotateY(-5deg) rotateX(2deg) !important;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(124, 92, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* PERFECT GLASS SYSTEM */
.glass {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 24px !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  box-shadow: 
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1) !important;
}

.glass::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
  z-index: 1 !important;
}

.glass:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 
    0 20px 25px rgba(0, 0, 0, 0.1),
    0 10px 10px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* RESPONSIVE POLISH */
@media (max-width: 1024px) {
  .hero {
    padding: 4rem 0 !important;
  }
  
  .hero-inner {
    padding: 2rem !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 !important;
  }
  
  .hero-inner {
    padding: 1.5rem !important;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem) !important;
  }
  
  .hero-sub {
    font-size: 1.125rem !important;
  }
  
  .hero-description {
    min-height: 120px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .typing-line {
    font-size: 1rem !important;
    margin-bottom: 6px;
  }
  
  .typing-container {
    width: 100%;
    text-align: center;
  }
  
  .hero-ctas {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .hero-value-props {
    grid-template-columns: 1fr !important;
  }
}

/* PERFECT FOCUS STATES */
.focusable:focus {
  outline: 2px solid #2dd4bf !important;
  outline-offset: 2px !important;
}

.focusable:focus:not(:focus-visible) {
  outline: none !important;
}

/* MICRO-INTERACTIONS */
.micro-hover {
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1) !important;
}

.micro-hover:hover {
  transform: translateY(-2px) scale(1.01) !important;
}

/* LOADING ANIMATIONS */
.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.04) 25%, 
    rgba(255, 255, 255, 0.08) 50%, 
    rgba(255, 255, 255, 0.04) 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s infinite !important;
}

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

/* ACCESSIBILITY POLISH */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --text: #ffffff !important;
    --bg: #000000 !important;
    --muted: #cccccc !important;
  }
}

.keyboard-navigation *:focus {
  outline: 3px solid #2dd4bf !important;
  outline-offset: 2px !important;
}

/* ===== END POLISH SYSTEM ===== */

/* ===== LEGENDARY MAIN SCREEN TRANSFORMATION ===== */

/* CINEMATIC HERO SECTION */
.hero {
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 4rem !important;
  align-items: center !important;
  position: relative !important;
  padding: 6rem 0 !important;
  overflow: hidden !important;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(124, 92, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, rgba(10, 13, 20, 0.95), rgba(15, 20, 25, 0.98)) !important;
}

.hero::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: 
    radial-gradient(circle at 25% 25%, rgba(124, 92, 255, 0.1) 0%, transparent 25%),
    radial-gradient(circle at 75% 75%, rgba(45, 212, 191, 0.1) 0%, transparent 25%),
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.01) 50%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.hero::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') !important;
  opacity: 0.3 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* LEGENDARY HERO INNER */
.hero-inner {
  max-width: 600px !important;
  z-index: 10 !important;
  position: relative !important;
  padding: 3rem !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 32px !important;
  backdrop-filter: blur(40px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.3),
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05) !important;
  transform: perspective(1000px) rotateX(2deg) !important;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-inner:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-8px) !important;
  box-shadow: 
    0 48px 96px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 0 80px rgba(124, 92, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08) !important;
}

.hero-inner::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(124, 92, 255, 0.8) 20%, 
    rgba(45, 212, 191, 0.8) 80%, 
    transparent
  ) !important;
  border-radius: 32px 32px 0 0 !important;
  z-index: 1 !important;
}

/* ========================================
   🚀 30 UI/UX IMPROVEMENTS - LEGENDARY EDITION
   ======================================== */

/* 1. GRADIENT TEXT EFFECT WITH SHIMMER */
.hero-title {
  background: linear-gradient(
    45deg,
    var(--accent-1) 0%,
    var(--accent-2) 25%,
    var(--accent-5) 50%,
    var(--accent-6) 75%,
    var(--accent-1) 100%
  ) !important;
  background-size: 400% 400% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: gradient-shift 4s ease-in-out infinite,
             shimmer 2s linear infinite !important;
  position: relative !important;
}

.hero-title::before {
  display: none !important;
}

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

@keyframes shimmer {
  0% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.2) saturate(1.3); }
  100% { filter: brightness(1) saturate(1); }
}

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

/* 2. FLOATING TESTIMONIAL CARDS */
.floating-testimonials {
  position: absolute;
  top: 20%;
  right: -100px;
  width: 300px;
  z-index: 5;
  pointer-events: none;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateX(50px) scale(0.9);
  animation: float-in 0.8s ease-out forwards;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: testimonial-pulse 2s ease-in-out infinite;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}

.testimonial-author {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

@keyframes float-in {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes testimonial-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* 3. INTERACTIVE TYPING ANIMATION */
.typing-animation {
  display: inline-block;
  position: relative;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-1);
  margin-left: 2px;
  animation: blink 1s infinite;
}

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

.typing-text {
  overflow: hidden;
  white-space: nowrap;
}

/* 4. ENHANCED PHONE MOCKUP */
.phone {
  position: relative;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
  transform-style: preserve-3d !important;
}

.phone::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 70%);
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.phone:hover::before {
  opacity: 1;
}

.phone:hover {
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) translateZ(20px) !important;
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.4),
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(124, 92, 255, 0.2) !important;
}

.screen {
  position: relative;
  overflow: hidden;
}

.screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
  animation: screen-shine 3s ease-in-out infinite;
}

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

/* Touch ripple effect */
.tg-btn {
  position: relative;
  overflow: hidden;
}

.tg-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.tg-btn:active::after {
  width: 200px;
  height: 200px;
}

/* 5. DYNAMIC TRUST BADGES */
.trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: default;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.trust-badge-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px currentColor);
}

.trust-badge-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.trust-badge-number {
  font-weight: 700;
  color: var(--accent-1);
  font-size: 16px;
}

.live-counter {
  color: var(--accent-2);
  font-weight: 700;
  position: relative;
}

.live-counter::before {
  content: '●';
  color: #00ff00;
  margin-right: 4px;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 6. MICRO-INTERACTIONS THROUGHOUT */
.button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
  transition: left 0.5s ease;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

.button:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* Bounce effect for value props */
.value-prop {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.value-prop:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}

.legendary-hover {
  animation: legendary-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes legendary-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1.05); }
}

/* 7. SMOOTH PAGE TRANSITIONS */
.page-transition {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-slide-up 0.8s ease-out forwards;
}

@keyframes fade-slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animations for sections */
section {
  opacity: 0;
  transform: translateY(50px);
  animation: section-reveal 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }

@keyframes section-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. ENHANCED GLASSMORPHISM */
.glass {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
}

.glass:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 
    0 16px 64px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 40px rgba(124, 92, 255, 0.1) !important;
  transform: translateY(-2px) !important;
}

/* Depth layering */
.glass-layer-1 { z-index: 1; }
.glass-layer-2 { z-index: 2; }
.glass-layer-3 { z-index: 3; }

/* 9. BETTER LOADING STATES */
.loading-skeleton {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 25%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

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

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Progress indicators */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 10. THEME TOGGLE */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 11. SMART SEARCH FUNCTIONALITY */
.smart-search {
  position: relative;
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.suggestion-item:last-child {
  border-bottom: none;
}

/* 12. PERSONALIZED RECOMMENDATIONS */
.recommendations {
  background: linear-gradient(135deg, 
    rgba(124, 92, 255, 0.1) 0%, 
    rgba(45, 212, 191, 0.1) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.recommendations::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 100%);
  animation: recommendation-shine 3s ease-in-out infinite;
}

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

.recommendation-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-1);
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.recommendation-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.recommendation-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 13. BETTER ERROR HANDLING */
.error-message {
  background: linear-gradient(135deg, 
    rgba(255, 107, 107, 0.15) 0%, 
    rgba(255, 107, 107, 0.05) 100%);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: error-slide-in 0.5s ease-out;
}

@keyframes error-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-icon {
  font-size: 24px;
  color: var(--accent-3);
  flex-shrink: 0;
}

.error-content {
  flex: 1;
}

.error-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.error-description {
  color: var(--muted);
  font-size: 14px;
}

.error-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.error-retry {
  background: var(--accent-3);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.error-retry:hover {
  background: #ff5252;
  transform: translateY(-1px);
}

/* 14. ENHANCED ACCESSIBILITY */
.keyboard-navigation *:focus {
  outline: 2px solid var(--accent-1) !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-1);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 6px;
}

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

/* High contrast mode enhancements */
@media (prefers-contrast: high) {
  .glass {
    border-width: 2px !important;
    background: rgba(255, 255, 255, 0.15) !important;
  }
  
  .button {
    border: 2px solid var(--accent-1) !important;
  }
}

/* 15. PROGRESS INDICATORS */
.step-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.step.active {
  background: var(--accent-1);
  color: white;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.5);
}

.step.completed {
  background: var(--accent-2);
  color: white;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}

.step-connector.active {
  background: var(--accent-1);
}

.step-connector.completed {
  background: var(--accent-2);
}

/* 16. LIVE CHAT PREVIEW — removed (unused) */

/* 17. TEMPLATE COMPARISON TOOL */
.comparison-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.comparison-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.comparison-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
}

.comparison-feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.comparison-feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-check {
  color: var(--accent-2);
  font-weight: bold;
}

.feature-cross {
  color: var(--accent-3);
  font-weight: bold;
}

/* 18. SOCIAL PROOF WIDGETS — removed (unused) */

/* 19. GAMIFICATION ELEMENTS */
.achievement-badge {
  background: linear-gradient(135deg, var(--accent-4), #ffb347);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 25px rgba(255, 211, 61, 0.3);
  animation: achievement-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

@keyframes achievement-bounce {
  0% { transform: scale(0) rotate(-180deg); }
  50% { transform: scale(1.2) rotate(-90deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.achievement-badge::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(255, 211, 61, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: achievement-glow 2s ease-in-out infinite;
}

@keyframes achievement-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.level-progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin: 16px 0;
  position: relative;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 20px;
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.level-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  animation: level-shine 2s ease-in-out infinite;
}

@keyframes level-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 20. ENHANCED DEMO EXPERIENCE — removed (unused) */

.demo-tooltip {
  position: absolute;
  background: var(--accent-1);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(-10px);
  animation: tooltip-bounce 0.5s ease-out;
}

@keyframes tooltip-bounce {
  0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(-10px) scale(1); }
}

.demo-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--accent-1);
}

.demo-controls {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 3001;
}

.demo-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 21. IMPROVED TOUCH INTERACTIONS */
@media (pointer: coarse) {
  .button {
    min-height: 48px;
    padding: 16px 24px;
    font-size: 16px;
  }
  
  .tg-btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .mobile-menu-link {
    min-height: 56px;
    padding: 16px 24px;
  }
}

/* Haptic feedback simulation */
@keyframes haptic-feedback {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.button:active,
.tg-btn:active {
  animation: haptic-feedback 0.1s ease-out;
}

/* 22. SWIPE GESTURES */
.swipe-container {
  position: relative;
  overflow: hidden;
  touch-action: pan-x;
}

.swipe-content {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.swipe-item {
  flex: 0 0 100%;
  width: 100%;
}

.swipe-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.swipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.swipe-dot.active {
  background: var(--accent-1);
  transform: scale(1.2);
}

/* Swipe-to-dismiss for modals */
.swipe-dismiss {
  touch-action: pan-y;
}

.swipe-dismiss.swiping {
  transition: none;
}

/* 23. OPTIMIZED MOBILE LAYOUTS */
@media (max-width: 768px) {
  .hero-inner {
    padding: 24px 20px !important;
  }
  
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    line-height: 1.1 !important;
  }
  
  .hero-ctas {
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .hero-ctas .button {
    width: 100% !important;
    justify-content: center !important;
  }
  
  .tpl-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr !important;
  }
  
  .floating-testimonials {
    position: static !important;
    width: 100% !important;
    margin: 24px 0 !important;
  }
  
  .testimonial-card {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Collapsible sections */
.collapsible-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.collapsible-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.collapsible-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.collapsible-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.collapsible-section.expanded .collapsible-content {
  padding: 20px;
  max-height: 500px;
}

.collapsible-icon {
  transition: transform 0.3s ease;
}

.collapsible-section.expanded .collapsible-icon {
  transform: rotate(180deg);
}

/* 24. ENHANCED MOBILE NAVIGATION */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
  z-index: 1000;
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
  
  body {
    padding-bottom: 80px;
  }
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--muted);
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-1);
}

.bottom-nav-icon {
  font-size: 20px;
}

.bottom-nav-label {
  font-size: 12px;
  font-weight: 500;
}

/* Quick action buttons */
.quick-actions {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.quick-action {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-1);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.3);
}

.quick-action:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(124, 92, 255, 0.4);
}

.quick-action:active {
  transform: scale(0.95);
}

/* 25. PULL-TO-REFRESH */
.pull-to-refresh {
  position: relative;
  overflow: hidden;
}

.pull-indicator {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.pull-indicator.active {
  top: 20px;
}

.pull-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid var(--accent-1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 26. PWA CAPABILITIES — install prompt removed (unused) */

/* Offline indicator — removed (unused) */

/* 27. SMART CACHING INDICATORS — removed (unused) */

/* 28. OPTIMIZED ANIMATIONS */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

.performance-mode * {
  animation-duration: 0.2s !important;
  transition-duration: 0.2s !important;
}

/* Animation queuing system */
.animation-queue {
  opacity: 0;
  transform: translateY(20px);
}

.animation-queue.animate {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease-out;
}

.animation-queue:nth-child(1) { transition-delay: 0.1s; }
.animation-queue:nth-child(2) { transition-delay: 0.2s; }
.animation-queue:nth-child(3) { transition-delay: 0.3s; }
.animation-queue:nth-child(4) { transition-delay: 0.4s; }
.animation-queue:nth-child(5) { transition-delay: 0.5s; }

/* 29. KEYBOARD SHORTCUTS */
.keyboard-shortcut-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.keyboard-shortcut-overlay.show {
  opacity: 1;
  visibility: visible;
}

.shortcut-grid {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcut-item:last-child {
  border-bottom: none;
}

.shortcut-description {
  color: var(--text);
  font-size: 14px;
}

.shortcut-keys {
  display: flex;
  gap: 4px;
}

.shortcut-key {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  min-width: 24px;
  text-align: center;
}

/* Enhanced analytics/heatmap & conversion funnel — removed (unused) */

/* A/B Testing indicators */
.ab-test-indicator {
  position: fixed;
  top: 50px;
  right: 20px;
  background: var(--accent-4);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.7;
  z-index: 1000;
}

/* Performance monitoring — removed (unused) */

/* LEGENDARY PARTICLES */
.legendary-particle {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-100px) translateX(50px) rotate(180deg);
    opacity: 0.8;
  }
}

/* EPIC TYPOGRAPHY */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem) !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: -0.05em !important;
  background: linear-gradient(
    135deg, 
    #ffffff 0%, 
    #e2e8f0 25%, 
    #cbd5e1 50%, 
    #94a3b8 75%, 
    #64748b 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  position: relative !important;
  animation: title-glow 4s ease-in-out infinite !important;
}

@keyframes title-glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(124, 92, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(45, 212, 191, 0.4));
  }
}

/* PREMIUM SUBTITLE */
.hero-sub {
  font-size: 1.4rem !important;
  color: rgba(226, 232, 240, 0.9) !important;
  line-height: 1.7 !important;
  margin-bottom: 2.5rem !important;
  max-width: 520px !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* LEGENDARY VALUE PROPS */
.hero-value-props {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.25rem !important;
  margin-bottom: 2.5rem !important;
}

.value-prop {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 1rem 1.25rem !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.value-prop::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.5), 
    transparent
  ) !important;
  z-index: 1 !important;
}

.value-prop:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.08)
  ) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.value-icon {
  font-size: 1.5rem !important;
  filter: drop-shadow(0 2px 8px rgba(124, 92, 255, 0.3)) !important;
  animation: icon-float 3s ease-in-out infinite !important;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

.value-text {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}

/* EPIC CTA BUTTONS */
.hero-ctas {
  display: flex !important;
  gap: 1.25rem !important;
  margin-bottom: 2.5rem !important;
  flex-wrap: wrap !important;
}

.hero-ctas .button {
  padding: 1rem 2rem !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-ctas .button--primary {
  background: linear-gradient(
    135deg, 
    #2dd4bf 0%, 
    #7c5cff 50%, 
    #a855f7 100%
  ) !important;
  box-shadow: 
    0 16px 32px rgba(124, 92, 255, 0.4),
    0 8px 16px rgba(45, 212, 191, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  color: #0b0d12 !important;
}

.hero-ctas .button--primary:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 
    0 24px 48px rgba(124, 92, 255, 0.5),
    0 12px 24px rgba(45, 212, 191, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.hero-ctas .button--secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
}

.hero-ctas .button--secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* EPIC PHONE MOCKUP WITH 3D EFFECTS */
.phone-wrap {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  perspective: 2000px !important;
  z-index: 5 !important;
}

.phone {
  width: clamp(320px, 40vw, 480px) !important;
  aspect-ratio: 9/19.5 !important;
  border-radius: 32px !important;
  overflow: hidden !important;
  position: relative !important;
  background: linear-gradient(
    135deg, 
    #1a1a2e 0%, 
    #16213e 25%, 
    #0f1629 50%, 
    #1a1a2e 100%
  ) !important;
  border: 3px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 
    0 48px 96px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3) !important;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) !important;
  animation: phone-float 6s ease-in-out infinite !important;
}

@keyframes phone-float {
  0%, 100% {
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(1deg) translateY(-10px);
  }
}

.phone:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(0deg) translateY(-20px) scale(1.02) !important;
  box-shadow: 
    0 64px 128px rgba(0, 0, 0, 0.5),
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 16px 32px rgba(0, 0, 0, 0.3),
    0 0 120px rgba(124, 92, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4) !important;
}

/* ENHANCED BACKGROUND PARTICLES */
.fx-blobs {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -2 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.blob {
  position: absolute !important;
  border-radius: 50% !important;
  filter: blur(150px) !important;
  opacity: 0.6 !important;
  animation: blob-float 40s infinite linear !important;
  will-change: transform !important;
}

.b1 {
  width: 500px !important;
  height: 500px !important;
  background: radial-gradient(
    circle,
    rgba(124, 92, 255, 0.4) 0%,
    rgba(168, 85, 247, 0.3) 50%,
    transparent 100%
  ) !important;
  top: 10% !important;
  left: 10% !important;
  animation-delay: 0s !important;
}

.b2 {
  width: 600px !important;
  height: 600px !important;
  background: radial-gradient(
    circle,
    rgba(45, 212, 191, 0.3) 0%,
    rgba(6, 182, 212, 0.2) 50%,
    transparent 100%
  ) !important;
  top: 50% !important;
  right: 10% !important;
  animation-delay: -20s !important;
}

.b3 {
  width: 550px !important;
  height: 550px !important;
  background: radial-gradient(
    circle,
    rgba(255, 107, 107, 0.2) 0%,
    rgba(251, 146, 60, 0.15) 50%,
    transparent 100%
  ) !important;
  bottom: 20% !important;
  left: 30% !important;
  animation-delay: -40s !important;
}

@keyframes blob-float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(100px, -100px) scale(1.1) rotate(90deg);
  }
  50% {
    transform: translate(-50px, 50px) scale(0.9) rotate(180deg);
  }
  75% {
    transform: translate(150px, 30px) scale(1.05) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

/* LEGENDARY RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 3rem !important;
    padding: 4rem 0 !important;
  }
  
  .phone-wrap {
    justify-self: center !important;
  }
  
  .phone {
    width: min(380px, 85vw) !important;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) !important;
  }
  
  .hero-inner {
    max-width: 100% !important;
    padding: 2.5rem !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 !important;
  }
  
  .hero-inner {
    padding: 2rem !important;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }
  
  .hero-sub {
    font-size: 1.2rem !important;
  }
  
  .hero-ctas {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .hero-value-props {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .phone {
    width: min(320px, 90vw) !important;
  }
}

/* Pricing Section Styles */
.pricing {
  padding: 80px 0;
  margin: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.pricing.container {
  padding: 80px 24px;
  max-width: 100%;
}

.pricing .section-head {
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

.pricing-wrapper {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
  width: 100%;
  max-width: 700px;
  justify-items: center;
}

.pricing-card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.pricing-card:hover {
  transform: translateY(-12px);
}

.pricing-card.free-card {
  border: 2px solid #22c55e;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

.pricing-card.pro-card {
  border: 2px solid var(--accent-1);
  box-shadow: 0 20px 40px rgba(124, 92, 255, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.currency {
  font-size: 1.2rem;
  color: var(--muted);
}

.amount {
  font-size: 3rem;
  font-weight: 700;
}

.free-card .amount {
  color: #22c55e;
  font-size: 2.5rem;
}

.pro-card .amount {
  color: var(--accent-1);
}

.period {
  font-size: 1rem;
  color: var(--muted);
}

.free-card .period {
  color: #22c55e;
  font-weight: 600;
  font-size: 1.2rem;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li.with-note {
  color: #fbbf24;
  font-weight: 500;
}

.pricing-features li.pro-feature {
  color: var(--accent-1);
  font-weight: 600;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.pricing-features li.extra-feature {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  border: none;
  padding-left: 1rem;
}

.pricing-cta {
  width: 100%;
  margin-top: auto;
}

.pricing-note-simple {
  margin: 2rem 0 1rem;
  padding: 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  text-align: center;
  max-width: 600px;
}

.pricing-note-simple p {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.5;
}

.pricing-note-simple strong {
  color: #22c55e;
}

@media (max-width: 768px) {
  .pricing {
    padding: 60px 0;
  }
  
  .pricing.container {
    padding: 60px 20px;
  }
  
  .pricing-wrapper {
    max-width: 100%;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
    max-width: 400px;
  }
  
  .pricing-card {
    padding: 2rem 1.5rem;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .amount {
    font-size: 2.5rem;
  }
  
  .free-card .amount {
    font-size: 2rem;
  }
  
  .pricing-note-simple {
    margin: 1.5rem auto;
    padding: 1.25rem;
    max-width: 400px;
  }
  
  .pricing-note-simple p {
    font-size: 1rem;
  }
}

/* SEO and Accessibility Enhancements */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

/* FAQ Section Styling */
.faq-section {
  padding: 4rem 0;
  background: rgba(10, 14, 22, 0.5);
}

.faq-grid {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(124, 92, 255, 0.3);
  transform: translateY(-2px);
}

.faq-item h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.faq-item p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.faq-item ol,
.faq-item ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.faq-item li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.faq-item strong {
  color: #fff;
  font-weight: 600;
}

/* Enhanced Footer SEO Styles */
.footer-seo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-section h4 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seo-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(124, 92, 255, 0.1);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  transition: all 0.2s ease;
}

.seo-tag:hover {
  background: rgba(124, 92, 255, 0.2);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-stats-inline {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-keywords {
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.4;
  color: rgba(255, 255, 255, 0.4);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .faq-item {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .breadcrumb-nav,
  .footer-seo a,
  .footer-bottom {
    color: #fff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .faq-item {
    transition: none;
  }
  
  .faq-item:hover {
    transform: none;
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-navigation {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-stats {
    gap: 1rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .footer-seo {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .faq-item {
    padding: 1rem;
  }
  
  .faq-item h3 {
    font-size: 1.1rem;
  }
  
  .breadcrumb-nav {
    padding: 0.25rem 0;
    font-size: 0.8rem;
  }
}

.hero-title {
  padding-bottom: 1rem;
}
