/* ============================================================
   BeatCore Landing Page — Premium CSS
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-900: #060608;
  --bg-800: #0d0d12;
  --bg-700: #13131a;
  --bg-600: #1a1a24;
  --bg-light: #f8f8fc;
  --bg-light-2: #f0f0f8;

  --primary: #6366f2;
  --primary-h: #5458e6;
  --primary-light: #a9acff;
  --primary-glow: rgba(99, 102, 242, 0.35);

  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.25);

  --success: #10b981;
  --warning: #f59e0b;

  --text-100: #f9f9ff;
  --text-200: #c4c4d4;
  --text-300: #8888a8;
  --text-dark-100: #111118;
  --text-dark-200: #3a3a55;
  --text-dark-300: #606080;

  --border-dark: rgba(255,255,255,0.07);
  --border-light: rgba(0,0,0,0.09);

  --card-dark: rgba(255,255,255,0.04);
  --card-dark-hover: rgba(255,255,255,0.08);
  --card-light: rgba(255,255,255,0.85);
  --card-light-hover: rgba(255,255,255,1);

  --radius: 24px;
  --radius-sm: 999px;
  --radius-lg: 32px;
  --radius-xl: 44px;

  --shadow-card: 0 4px 32px rgba(0,0,0,0.28);
  --shadow-hover: 0 8px 48px rgba(0,0,0,0.38);
  --shadow-glow: 0 0 40px var(--primary-glow);

  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', system-ui, sans-serif;

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --gt-banner-offset: 0px;
}

html { scroll-behavior: smooth; font-size: 16px; }

section[id] { scroll-margin-top: calc(62px + var(--gt-banner-offset)); }

body {
  font-family: var(--font-sans);
  background: var(--bg-900);
  color: var(--text-100);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


/* Global ambient particles for premium depth */
body::before {
  content: '';
  position: fixed;
  inset: -20% -10%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(99,102,242,0.16) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 35%, rgba(6,182,212,0.14) 0 2px, transparent 2px),
    radial-gradient(circle at 35% 80%, rgba(255,255,255,0.1) 0 1.5px, transparent 1.5px);
  background-size: 180px 180px, 220px 220px, 140px 140px;
  animation: ambient-drift 28s linear infinite;
}
@keyframes ambient-drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-2%, -1.5%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
pre, code { font-family: 'Fira Code', 'Cascadia Code', monospace; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s cubic-bezier(0.4,0,0.2,1), transform 0.28s cubic-bezier(0.4,0,0.2,1);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { --delay: 0.05s; }
.reveal-delay-2 { --delay: 0.1s; }
.reveal-delay-3 { --delay: 0.14s; }
.reveal-delay-4 { --delay: 0.18s; }
.reveal-delay-5 { --delay: 0.22s; }

.features-grid .reveal,
.admin-grid .reveal,
.pricing-grid .reveal,
.plugins-grid .reveal,
.tech-grid .reveal,
.req-grid .reveal,
.self-hosted-grid .reveal,
.self-hosted-cards .reveal {
  transform: translateX(-10px);
  transition-delay: calc(var(--delay, 0s) + var(--card-stagger, 0) * 18ms);
}

.features-grid .reveal.visible,
.admin-grid .reveal.visible,
.pricing-grid .reveal.visible,
.plugins-grid .reveal.visible,
.tech-grid .reveal.visible,
.req-grid .reveal.visible,
.self-hosted-grid .reveal.visible,
.self-hosted-cards .reveal.visible {
  transform: translateX(0);
}

@keyframes aurora-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(0, -2.5%, 0) rotate(3deg) scale(1.04); }
}
@keyframes cinematic-rise {
  0% { opacity: 0; transform: translateY(14px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-icon { width: 1rem; height: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f2 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px var(--primary-glow);
  filter: brightness(1.1);
}
.btn-primary:active { transform: scale(0.98); }

.btn-live-demo {
  background: #06b6d4;
  color: #041218;
  border: 1px solid #22d3ee;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.btn-live-demo:hover {
  transform: translateY(-2px);
  background: #22d3ee;
  color: #031015;
  border-color: #67e8f9;
  box-shadow: none;
  filter: none;
}

.btn-admin-demo {
  background: #f59e0b;
  color: #271300;
  border: 1px solid #fbbf24;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.btn-admin-demo:hover {
  transform: translateY(-2px);
  background: #fbbf24;
  color: #1a0d00;
  border-color: #fde047;
  box-shadow: none;
  filter: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-200);
  border: 1px solid var(--border-dark);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--card-dark-hover);
  border-color: rgba(255,255,255,0.2);
  color: var(--text-100);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--primary-glow);
}


.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-full { width: 100%; justify-content: center; margin-top: auto; }

.pulse {
  animation: pulse-glow 2.5s infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px var(--primary-glow); }
  50% { box-shadow: 0 6px 40px rgba(99, 102, 242, 0.6); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: var(--gt-banner-offset); left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 8, 12, 0.82);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 2px 24px rgba(0,0,0,0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.install-logo-icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.install-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #a9acff, #6366f2, #3f43c8, #6366f2, #a9acff);
  padding: 1px;
  box-shadow: 0 0 10px rgba(99, 102, 242, 0.35);
}
.install-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #6366f2 0%, #3f43c8 52%, #12154a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.install-logo-bars {
  display: flex;
  gap: 1.5px;
  align-items: center;
  height: 20px;
}
.install-logo-bars i {
  display: block;
  width: 2.4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.96);
}
.install-logo-bars i:nth-child(1),
.install-logo-bars i:nth-child(8) { height: 6px; opacity: 0.5; }
.install-logo-bars i:nth-child(2),
.install-logo-bars i:nth-child(7) { height: 11px; opacity: 0.66; }
.install-logo-bars i:nth-child(3),
.install-logo-bars i:nth-child(6) { height: 16px; opacity: 0.8; }
.install-logo-bars i:nth-child(4),
.install-logo-bars i:nth-child(5) { height: 19px; opacity: 0.95; }

.navbar .logo { color: #6366f2; }
.navbar .logo-accent { color: #ffffff; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  color: var(--text-200);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.22rem;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(169,172,255,0.95) 50%, transparent 100%);
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav-links a:hover {
  color: var(--text-100);
  background: var(--card-dark-hover);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}
.nav-links a.active {
  color: #ffffff;
  background: rgba(99,102,242,0.16);
  box-shadow: inset 0 0 0 1px rgba(169,172,255,0.28), 0 6px 20px rgba(99,102,242,0.2);
}

section.section-focus .section-header,
section.section-focus .hero-content {
  animation: section-focus-premium 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes section-focus-premium {
  0% { transform: translateY(8px) scale(0.992); filter: saturate(0.9); opacity: 0.82; }
  55% { transform: translateY(-1px) scale(1.003); filter: saturate(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); filter: saturate(1); opacity: 1; }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.lang-wrap-landing {
  position: relative;
}

.lang-btn-landing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 34px;
  min-width: 62px;
  padding: 0 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.05);
  color: var(--text-200);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn-landing svg {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.85;
}

.lang-btn-landing:hover,
.lang-btn-landing[aria-expanded="true"] {
  color: var(--text-100);
  border-color: rgba(169,172,255,0.45);
  background: rgba(99,102,242,0.16);
}

.lang-menu-landing {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: rgba(14,14,20,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.36);
  padding: 0.35rem;
  display: none;
  z-index: 1200;
}

.lang-menu-landing.open {
  display: block;
}

.lang-menu-landing button {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-200);
  padding: 0.45rem 0.55rem;
  text-align: left;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.lang-menu-landing button:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-100);
}

.lang-menu-landing button.active {
  background: rgba(99,102,242,0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(169,172,255,0.35);
}

/* Google Translate: keep translation engine only, hide injected widgets/banners */
#gtel-landing { display: none; }
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-menu-frame,
.goog-te-gadget,
.goog-logo-link,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
iframe.VIpgJd-ZVi9od-ORHb,
iframe.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip,
#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
}

body > iframe.skiptranslate,
body > iframe.goog-te-banner-frame,
body > .skiptranslate,
body > .goog-te-banner-frame,
body > .goog-te-menu-frame,
body > [id^="goog-"],
body > [class*="VIpgJd-"] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
body {
  top: 0 !important;
  margin-top: 0 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-200);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(6.9rem + var(--gt-banner-offset));
  padding-bottom: 4.6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 82% 65% at 50% 0%, rgba(99,102,242,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(6,182,212,0.12) 0%, transparent 75%),
    linear-gradient(180deg, #08070f 0%, #07070c 45%, #05050a 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(99,102,242,0.24) 0%, transparent 68%);
  filter: blur(40px);
  animation: aurora-float 14s ease-in-out infinite;
}

/* Grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float-orb 10s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: rgba(99,102,242,0.18); top: -120px; left: -80px; animation-delay: 0s; }
.orb-2 { width: 380px; height: 380px; background: rgba(6,182,212,0.12); bottom: 0; right: -80px; animation-delay: -4s; }
.orb-3 { width: 320px; height: 320px; background: rgba(99,102,242,0.12); bottom: 120px; left: 30%; animation-delay: -7s; }
.orb-4 { width: 400px; height: 400px; background: rgba(99,102,242,0.2); bottom: -100px; left: 50%; transform: translateX(-50%); animation-delay: -3s; }

@keyframes float-orb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  gap: 0.25rem;
}

.hero.hero-live .hero-content {
  animation: cinematic-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero.hero-live .hero-mockup {
  animation: cinematic-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,242,0.15);
  border: 1px solid rgba(99,102,242,0.3);
  color: var(--primary-light);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  min-height: 2.1rem;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: blink 2s infinite;
}
.hero-badge-text {
  display: inline-block;
  min-width: 40ch;
  white-space: nowrap;
  text-align: left;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.hero-badge-text.is-fading {
  opacity: 0.35;
}
@keyframes blink {
  0%,100% {opacity:1;} 50% {opacity:0.3;}
}

@media (max-width: 768px) {
  .hero-badge-text {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6.2vw, 4.35rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 0.95rem;
  color: var(--text-100);
}

.hero-title-top {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.08em;
  white-space: nowrap;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-dynamic-word {
  display: inline-block;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  overflow: visible;
  transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
  filter: drop-shadow(0 0 12px rgba(99,102,242,0.28));
}
.hero-dynamic-word.is-switching {
  opacity: 0.28;
  transform: translateY(7px);
  filter: none;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-200);
  max-width: 760px;
  margin-bottom: 0.9rem;
  line-height: 1.85;
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.stars { color: #facc15; font-size: 1.2rem; letter-spacing: 2px; }
.stars-label { color: var(--text-300); font-size: 0.88rem; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.hero-actions .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-actions .btn::before {
  content: '';
  position: absolute;
  inset: -40% -120%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 68%);
  transform: translateX(-35%) rotate(-6deg);
  animation: hero-btn-wave 2.8s ease-in-out infinite;
}

.hero-actions .btn .btn-icon,
.hero-actions .btn {
  z-index: 1;
}

.hero-actions .btn:nth-child(2)::before {
  animation-delay: 0.6s;
  opacity: 0.9;
}

@keyframes hero-btn-wave {
  0% { transform: translateX(-42%) rotate(-6deg); opacity: 0; }
  20% { opacity: 0.55; }
  55% { opacity: 0.22; }
  100% { transform: translateX(42%) rotate(-6deg); opacity: 0; }
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.tech-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  color: var(--text-300);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: all var(--transition);
}
.tech-pill:hover {
  background: rgba(99,102,242,0.15);
  border-color: rgba(99,102,242,0.4);
  color: var(--primary-light);
}

/* Hero mockup */
.hero-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin-top: 1.4rem;
  filter: drop-shadow(0 32px 80px rgba(99,102,242,0.2));
}
.mockup-browser {
  background: var(--bg-700);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-600);
  border-bottom: 1px solid var(--border-dark);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca41; }
.mockup-url {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-300);
  background: var(--bg-700);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
}
.mockup-screen {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: 220px;
}
.mockup-demo-cta { text-align: center; }
.mockup-demo-label { font-size: 0.8rem; color: var(--text-300); margin-top: 0.75rem; }

/* Waveform animation */
.waveform-anim {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 48px;
}
.waveform-anim span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary-light), var(--accent));
  animation: wave 1.4s ease-in-out infinite;
}
.waveform-anim span:nth-child(1) { height: 16px; animation-delay: 0.0s; }
.waveform-anim span:nth-child(2) { height: 32px; animation-delay: 0.1s; }
.waveform-anim span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.waveform-anim span:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.waveform-anim span:nth-child(5) { height: 20px; animation-delay: 0.4s; }
.waveform-anim span:nth-child(6) { height: 44px; animation-delay: 0.5s; }
.waveform-anim span:nth-child(7) { height: 28px; animation-delay: 0.6s; }
.waveform-anim span:nth-child(8) { height: 36px; animation-delay: 0.7s; }
.waveform-anim span:nth-child(9) { height: 18px; animation-delay: 0.8s; }
.waveform-anim span:nth-child(10){ height: 48px; animation-delay: 0.9s; }
.waveform-anim span:nth-child(11){ height: 22px; animation-delay: 1.0s; }
.waveform-anim span:nth-child(12){ height: 38px; animation-delay: 1.1s; }
.waveform-anim span:nth-child(13){ height: 26px; animation-delay: 1.2s; }
.waveform-anim span:nth-child(14){ height: 44px; animation-delay: 1.3s; }
.waveform-anim span:nth-child(15){ height: 14px; animation-delay: 1.4s; }
.waveform-anim span:nth-child(16){ height: 30px; animation-delay: 0.05s; }
.waveform-anim span:nth-child(17){ height: 42px; animation-delay: 0.15s; }
.waveform-anim span:nth-child(18){ height: 18px; animation-delay: 0.25s; }
.waveform-anim span:nth-child(19){ height: 36px; animation-delay: 0.35s; }
.waveform-anim span:nth-child(20){ height: 24px; animation-delay: 0.45s; }
@keyframes wave {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.25); opacity: 1; }
}

/* ===== FEATURES SUB-GROUP ===== */
.feature-group-label {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(99,102,242,0.16), rgba(6,182,212,0.1));
  border: 1px solid rgba(99,102,242,0.28);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.24);
}

.feature-group-label h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #efe9ff;
  margin-bottom: 0.35rem;
}

.feature-group-label p {
  font-size: 0.86rem;
  color: var(--text-200);
  line-height: 1.6;
}

.section-light .feature-group-label {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(99,102,242,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
}

.section-light .feature-group-label h3 {
  color: var(--text-dark-100);
}

.section-light .feature-group-label p {
  color: var(--text-dark-200);
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; position: relative; overflow: hidden; }
.section-dark {
  isolation: isolate;
  background:
    radial-gradient(ellipse 82% 65% at 50% 0%, rgba(99,102,242,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(6,182,212,0.12) 0%, transparent 75%),
    linear-gradient(180deg, #08070f 0%, #07070c 45%, #05050a 100%);
  background-attachment: scroll, scroll, scroll;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--border-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 40%, transparent 100%);
  opacity: 0.52;
}
.section-dark::after {
  content: '';
  position: absolute;
  inset: -14% -10%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.46;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(99,102,242,0.30) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 35%, rgba(6,182,212,0.26) 0 2px, transparent 2px),
    radial-gradient(circle at 35% 80%, rgba(255,255,255,0.22) 0 1.5px, transparent 1.5px);
  background-size: 180px 180px, 220px 220px, 140px 140px;
  animation: dark-particles-shift 28s linear infinite;
}
@keyframes dark-particles-shift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-2%, -1.5%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.section-light {
  background:
    radial-gradient(ellipse 70% 120% at 20% 10%, rgba(99,102,242,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 65% 90% at 90% 80%, rgba(6,182,212,0.08) 0%, transparent 60%),
    linear-gradient(155deg, #f8f9ff 0%, #eff2ff 45%, #f9fbff 100%);
  color: var(--text-dark-100);
}
.section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(99,102,242,0.08) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  opacity: 0.35;
}
.section-light .text-sub { color: var(--text-dark-200); }

/* Uniform dark section treatment: keep content above overlays */

.section-dark > .container,
#features .container,
#admin .container,
#gallery .container,
#pricing .container,
#plugins .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .section-dark {
    background-attachment: scroll, scroll, scroll;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-tag {
  display: inline-block;
  background: rgba(99,102,242,0.12);
  border: 1px solid rgba(99,102,242,0.25);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-light .section-tag {
  background: rgba(99,102,242,0.08);
  border-color: rgba(99,102,242,0.2);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.section-dark .section-title { color: var(--text-100); }
.section-light .section-title { color: var(--text-dark-100); }

.section-sub {
  font-size: 1.05rem;
  line-height: 1.7;
}
.section-dark .section-sub { color: var(--text-200); }
.section-light .section-sub { color: var(--text-dark-200); }

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 1.25rem;
}
.feature-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,242,0.06), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  border-color: rgba(99,102,242,0.4);
  box-shadow: 0 16px 56px rgba(99,102,242,0.18), 0 0 0 1px rgba(99,102,242,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
}
.feature-card:hover::before { opacity: 1; }

.feature-card:nth-child(3n+1) {
  background-image: linear-gradient(135deg, rgba(99,102,242,0.08), rgba(255,255,255,0.03));
}
.feature-card:nth-child(3n+2) {
  background-image: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(255,255,255,0.03));
}
.feature-card:nth-child(3n+3) {
  background-image: linear-gradient(135deg, rgba(99,102,242,0.08), rgba(255,255,255,0.03));
}

/* Ultra premium cursor sheen for cards */
.feature-card,
.admin-card,
.pricing-card,
.plugin-card,
.tech-card,
.req-card,
.gallery-item,
.sh-card {
  --mx: 50%;
  --my: 50%;
  isolation: isolate;
}

.feature-card::after,
.admin-card::after,
.pricing-card::after,
.plugin-card::after,
.tech-card::after,
.req-card::after,
.gallery-item::after,
.sh-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,0.22), transparent 42%);
  transition: opacity 220ms ease;
}

.feature-card:hover::after,
.admin-card:hover::after,
.pricing-card:hover::after,
.plugin-card:hover::after,
.tech-card:hover::after,
.req-card:hover::after,
.gallery-item:hover::after,
.sh-card:hover::after {
  opacity: 1;
}

.feature-icon { width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 2rem; height: 2rem; color: var(--primary-light); }
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-100);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-200);
  line-height: 1.6;
  flex-grow: 1;
}
.feature-link {
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 600;
  transition: color var(--transition);
}
.feature-link:hover { color: var(--accent); }

.section-light .feature-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
}

.section-light .feature-card:hover {
  border-color: rgba(99,102,242,0.3);
  box-shadow: 0 12px 40px rgba(99,102,242,0.14), inset 0 1px 0 rgba(255,255,255,0.95);
  background: rgba(255, 255, 255, 0.75);
}

.section-light .feature-card h3 {
  color: var(--text-dark-100);
}

.section-light .feature-card p {
  color: var(--text-dark-200);
}

.section-light .feature-icon svg,
.section-light .feature-link {
  color: var(--primary);
}

/* ===== ADMIN GRID ===== */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.admin-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all var(--transition);
}
.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99,102,242,0.14), inset 0 1px 0 rgba(255,255,255,0.95);
  border-color: rgba(99,102,242,0.3);
  background: rgba(255, 255, 255, 0.75);
}
.admin-icon { width: 1.75rem; height: 1.75rem; flex-shrink: 0; margin-top: 0.1rem; display: flex; align-items: center; justify-content: center; }
.admin-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.admin-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark-100); margin-bottom: 0.3rem; }
.admin-info p { font-size: 0.83rem; color: var(--text-dark-200); line-height: 1.5; }
.admin-demo-cta { text-align: center; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}
.pricing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,242,0.35);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 18px 56px rgba(99,102,242,0.2);
}
.pricing-featured {
  border-color: rgba(99,102,242,0.5);
  background: linear-gradient(135deg, rgba(99,102,242,0.2), rgba(6,182,212,0.08));
  box-shadow: 0 0 48px rgba(99,102,242,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.pricing-featured:hover { box-shadow: 0 12px 60px rgba(99,102,242,0.3); }

.pricing-ribbon {
  position: absolute;
  top: 1.1rem; right: -2rem;
  background: linear-gradient(135deg, var(--primary), #6366f2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 2.5rem;
  transform: rotate(35deg);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-300);
  margin-bottom: 0.5rem;
}
.pricing-badge-purple { color: var(--primary-light); }

.pricing-price {
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
  line-height: 1;
}
.price-currency { font-size: 1.5rem; font-weight: 700; color: var(--text-200); margin-top: 0.4rem; }
.price-amount {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-100);
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-each { font-size: 0.9rem; color: var(--text-300); align-self: flex-end; margin-bottom: 0.5rem; }
.price-period { font-size: 0.82rem; color: var(--text-300); margin-top: 0.25rem; }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}
.pricing-features li { font-size: 0.9rem; color: var(--text-200); display: flex; align-items: center; gap: 0.5rem; }
.feat-check { width: 1rem; height: 1rem; flex-shrink: 0; color: #4ade80; }
.feat-dash { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--text-300); }

.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-300);
}
.pricing-note a { color: var(--primary-light); text-decoration: underline; }

/* ===== TECH GRID ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 1.25rem;
}
.tech-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.85);
}
.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(99,102,242,0.13), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(99,102,242,0.25);
  background: rgba(255, 255, 255, 0.7);
}
.tech-card-icon { width: 2.75rem; height: 2.75rem; margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; }
.tech-card-icon svg { width: 2.25rem; height: 2.25rem; color: var(--primary); }
.tech-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark-100); margin-bottom: 0.4rem; }
.tech-card p { font-size: 0.85rem; color: var(--text-dark-200); line-height: 1.5; }

/* ===== REQUIREMENTS ===== */
.req-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 280px));
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
}
.req-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 160px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.4rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}
.req-card:hover { border-color: rgba(99,102,242,0.4); transform: translateY(-4px); background: rgba(255,255,255,0.07); box-shadow: 0 12px 40px rgba(99,102,242,0.12); }
.req-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-100); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.req-icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; color: var(--primary-light); }
.req-card p { font-size: 0.9rem; color: var(--text-200); line-height: 1.5; }
.req-ext { font-size: 0.8rem; color: var(--text-300); margin-top: 0.35rem; }
.req-card strong { color: var(--primary-light); }
.req-details {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 360px));
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.req-detail-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  height: 100%;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.req-detail-card h5 {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.45rem;
}
.req-detail-card p {
  font-size: 0.82rem;
  color: var(--text-200);
  line-height: 1.65;
}
.req-code {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.5rem;
  line-height: 1.8;
}

@media (max-width: 1200px) {
  .req-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
    max-width: none;
  }

  .req-details {
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
    max-width: none;
  }
}

/* ===== PLUGINS ===== */
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  justify-content: center;
  gap: 1.75rem;
  max-width: 1280px;
  margin: 0 auto;
}
.plugin-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all var(--transition);
}
.plugin-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 60px rgba(99,102,242,0.18), inset 0 1px 0 rgba(255,255,255,0.95);
  border-color: rgba(99,102,242,0.3);
  background: rgba(255, 255, 255, 0.75);
}
.plugin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.plugin-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(99,102,242,0.15), rgba(6,182,212,0.1));
  border: 1px solid rgba(99,102,242,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plugin-icon svg { width: 24px; height: 24px; color: var(--primary); }
.plugin-name { font-size: 1.2rem; font-weight: 800; color: var(--text-dark-100); font-family: var(--font-display); }
.plugin-version { font-size: 0.75rem; color: var(--text-dark-200); font-weight: 500; }
.plugin-desc { font-size: 0.9rem; color: var(--text-dark-200); line-height: 1.65; }
.plugin-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}
.plugin-features li { font-size: 0.88rem; color: var(--text-dark-100); display: flex; align-items: center; gap: 0.5rem; }
.pfeat-icon { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--primary); }
.plugin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.plugin-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.plugin-price-note { font-size: 0.75rem; font-weight: 400; color: var(--text-dark-200); }

/* ===== GALLERY ===== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.gallery-filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(99,102,242,0.3);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  color: var(--text-200);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(99,102,242,0.4);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all var(--transition);
}
.gallery-item[data-hidden="true"] { display: none; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(99,102,242,0.2); border-color: rgba(99,102,242,0.35); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,10,28,0.9) 0%, rgba(8,10,28,0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.gallery-zoom-icon {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: rgba(99,102,242,0.8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.gallery-zoom-icon svg { width: 16px; height: 16px; color: #fff; }
.gallery-item:hover .gallery-zoom-icon { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
}
.lightbox-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  display: block;
}
.lightbox-caption {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-200);
  font-size: 0.9rem;
  font-weight: 600;
}
.lightbox-close {
  position: absolute;
  top: -1.5rem; right: -1.5rem;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: #fff;
}
.lightbox-close:hover { background: var(--primary); border-color: var(--primary); }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: #fff;
}
.lightbox-nav:hover { background: var(--primary); border-color: var(--primary); }
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }

/* ===== SELF-HOSTED BANNER ===== */
.self-hosted-compare {
  position: relative;
  padding: 4.5rem 0 4rem;
  border-top: none;
  border-bottom: none;
}
.self-hosted-compare .section-title { color: #f8fafc; }
.self-hosted-compare .section-sub {
  color: #94a3b8;
  max-width: 900px;
  margin-inline: auto;
}
.self-hosted-compare .section-tag {
  color: #cbd5e1;
  background: rgba(148,163,184,0.12);
  border-color: rgba(148,163,184,0.24);
}
.compare-lead {
  margin-top: 0.75rem;
  max-width: 840px;
  margin-inline: auto;
  color: #a7b3c6;
  font-size: 0.97rem;
  line-height: 1.58;
}

.self-hosted-compare .vs-table-wrap {
  margin-top: 1.2rem;
  overflow-x: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.compare-table-title {
  text-align: center;
  color: #e2e8f0;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  margin-bottom: 0.3rem;
}
.compare-table-subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.self-hosted-compare .vs-table {
  width: 100%;
  max-width: 1020px;
  min-width: 780px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.89rem;
  background: transparent;
}
.self-hosted-compare .vs-table th {
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
}
.self-hosted-compare .vs-table th:first-child {
  text-align: left;
  color: #c7d2fe;
}
.self-hosted-compare .vs-table th.th-beatcore {
  color: #dff9ff;
  border-bottom-color: rgba(103, 232, 249, 0.52);
}
.self-hosted-compare .vs-table th.th-saas {
  color: #ffe9be;
  border-bottom-color: rgba(251, 191, 36, 0.5);
}
.self-hosted-compare .vs-table th:nth-child(2),
.self-hosted-compare .vs-table td:nth-child(2) {
  border-left: 1px solid rgba(34, 211, 238, 0.35);
}
.self-hosted-compare .vs-table th:nth-child(3),
.self-hosted-compare .vs-table td:nth-child(3) {
  border-left: 1px solid rgba(245, 158, 11, 0.35);
}
.self-hosted-compare .vs-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  text-align: center;
  background: transparent;
  font-weight: 400;
}
.self-hosted-compare .vs-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #c8d4ef;
  width: 28%;
  min-width: 180px;
}
.self-hosted-compare .vs-table tbody td:nth-child(2) {
  color: #86efac;
}
.self-hosted-compare .vs-table tbody td:nth-child(3) {
  color: #a0aec0;
}
.self-hosted-compare .vs-table tr:last-child td { border-bottom: none; }
.compare-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  font-weight: 400;
  color: inherit;
}
.compare-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.compare-value.is-good .compare-icon { color: #4ade80; }
.compare-value.is-limited .compare-icon { color: #f06060; opacity: 0.75; }

.self-hosted-cards {
  padding: 4rem 0 4.5rem;
  border-top: none;
}
.self-hosted-cards .section-tag {
  color: #cbd5e1;
  background: rgba(148,163,184,0.12);
  border-color: rgba(148,163,184,0.22);
}
.self-hosted-cards .section-title { color: #f8fafc; }
.self-hosted-cards .section-sub {
  color: #94a3b8;
  max-width: 860px;
  margin-inline: auto;
}
.self-hosted-cards .self-hosted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.self-hosted-cards .sh-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  text-align: center;
  box-shadow: 0 4px 22px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all var(--transition);
}
.self-hosted-cards .sh-card:hover {
  border-color: rgba(99,102,242,0.34);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(99,102,242,0.18), inset 0 1px 0 rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.08);
}
.self-hosted-cards .sh-card-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(99,102,242,0.22), rgba(6,182,212,0.16));
  border: 1px solid rgba(99,102,242,0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.self-hosted-cards .sh-card-icon svg { width: 18px; height: 18px; color: #e2e8f0; }
.self-hosted-cards .sh-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}
.self-hosted-cards .sh-card p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .self-hosted-cards .self-hosted-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .self-hosted-compare {
    padding: 4rem 0 3.5rem;
  }
  .compare-lead {
    font-size: 0.9rem;
    line-height: 1.56;
  }
  .self-hosted-compare .vs-table {
    min-width: 690px;
    font-size: 0.82rem;
  }
  .self-hosted-compare .vs-table th,
  .self-hosted-compare .vs-table td {
    padding: 0.72rem 0.8rem;
  }
  .self-hosted-cards {
    padding: 3.5rem 0 4rem;
  }
  .self-hosted-cards .self-hosted-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .self-hosted-cards .sh-card {
    padding: 1rem 0.9rem;
  }
}

/* ===== DEMO BANNER ===== */
.demo-banner {
  position: relative;
  background: transparent;
  border-top: none;
  border-bottom: none;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}
.demo-banner-inner {
  position: relative;
  z-index: 1;
}
.demo-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.demo-banner p { font-size: 1.1rem; color: var(--text-200); margin-bottom: 2rem; }
.demo-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.faq-item[open] { border-color: rgba(99,102,242,0.4); background: rgba(255,255,255,0.06); }
.faq-item summary {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-100);
  transition: all var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: rgba(99,102,242,0.06); }
.faq-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-200);
  line-height: 1.7;
}
.faq-body a { color: var(--primary-light); text-decoration: underline; }

.section-light .faq-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.92);
}
.section-light .faq-item[open] {
  border-color: rgba(99,102,242,0.28);
  background: rgba(255, 255, 255, 0.88);
}
.section-light .faq-item summary {
  color: var(--text-dark-100);
}
.section-light .faq-item summary::after {
  color: var(--primary);
}
.section-light .faq-item summary:hover {
  background: rgba(99,102,242,0.08);
}
.section-light .faq-body {
  color: var(--text-dark-200);
}
.section-light .faq-body a {
  color: var(--primary-h);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-900);
  border-top: 1px solid var(--border-dark);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; color: var(--text-300); line-height: 1.6; margin-bottom: 1rem; }
.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-300);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-200);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-300);
}
.footer-bottom a { color: var(--text-300); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--primary-light); }

.developer-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(169,172,255,0.35);
  background: rgba(99,102,242,0.12);
  color: var(--text-100) !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.developer-tag:hover {
  background: rgba(99,102,242,0.2);
  border-color: rgba(169,172,255,0.55);
  color: #fff !important;
}

/* ===== NEW LANDING FOOTER (ISOLATED) ===== */
.landing-footer-new {
  background: #06070c;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.1rem 0 0;
}

.lfn-wrap {
  display: grid;
  gap: 0.85rem;
}

.lfn-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
}

.lfn-brand {
  display: grid;
  gap: 0.2rem;
}

.lfn-logo {
  display: inline-flex;
  width: fit-content;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.lfn-copy {
  font-size: 0.84rem;
  color: var(--text-300);
}

.lfn-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.lfn-links a {
  font-size: 0.81rem;
  color: var(--text-200);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  transition: all var(--transition);
}

.lfn-links a:hover {
  color: #ffffff;
  border-color: rgba(169,172,255,0.45);
  background: rgba(99,102,242,0.14);
}

.lfn-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  min-height: 44px;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lfn-bottom p {
  margin: 0;
  color: var(--text-300);
  font-size: 0.8rem;
}

.lfn-dev {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(169,172,255,0.35);
  background: rgba(99,102,242,0.12);
  color: var(--text-100) !important;
  font-size: 0.77rem;
  font-weight: 600;
  white-space: nowrap;
}

.lfn-dev:hover {
  background: rgba(99,102,242,0.2);
  border-color: rgba(169,172,255,0.58);
}

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
#scrollTop.show { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px) scale(1.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .features-grid .reveal,
  .admin-grid .reveal,
  .pricing-grid .reveal,
  .plugins-grid .reveal,
  .tech-grid .reveal,
  .req-grid .reveal,
  .self-hosted-grid .reveal,
  .self-hosted-cards .reveal {
    transform: translateY(10px);
    transition-delay: var(--delay, 0s);
  }

  .features-grid .reveal.visible,
  .admin-grid .reveal.visible,
  .pricing-grid .reveal.visible,
  .plugins-grid .reveal.visible,
  .tech-grid .reveal.visible,
  .req-grid .reveal.visible,
  .self-hosted-grid .reveal.visible,
  .self-hosted-cards .reveal.visible {
    transform: translateY(0);
  }

  .hero-dynamic-word {
    min-width: 0;
    text-align: center;
  }

  .hero-title-top {
    gap: 0.06em;
  }

  html, body {
    width: 100%;
    overflow-x: hidden;
  }
  .container {
    padding: 0 1rem;
  }
  section[id] { scroll-margin-top: calc(60px + var(--gt-banner-offset)); }
  .features-grid { grid-template-columns: 1fr; }
  .admin-grid,
  .tech-grid,
  .req-grid,
  .req-details,
  .plugins-grid,
  .gallery-grid,
  .self-hosted-cards .self-hosted-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .admin-card,
  .feature-card,
  .pricing-card,
  .plugin-card,
  .tech-card,
  .req-card,
  .req-detail-card,
  .gallery-item,
  .self-hosted-cards .sh-card {
    width: 100%;
    max-width: 100%;
  }

  .self-hosted-compare .vs-table-wrap {
    overflow-x: visible;
  }
  .self-hosted-compare .vs-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    font-size: 0.8rem;
  }
  .self-hosted-compare .vs-table th,
  .self-hosted-compare .vs-table td {
    min-width: 0;
    width: auto;
    padding: 0.65rem 0.55rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .self-hosted-compare .vs-table td:first-child {
    min-width: 0;
    width: auto;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(6,6,8,0.97);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--border-dark);
    gap: 0.25rem;
  }
  .nav-links.open a { padding: 0.7rem 1rem; font-size: 1rem; }
  .lang-btn-landing { height: 32px; }
  .nav-cta .nav-live-btn { display: none; }
  .hamburger { display: flex; }
  .navbar { position: fixed; }

  .hero {
    min-height: auto;
    padding-top: calc(5.4rem + var(--gt-banner-offset));
    padding-bottom: 5rem;
  }
  .hero-mockup { margin-top: 1rem; }

  /* Allow long title to wrap instead of overflowing under overflow:hidden */
  .hero-title-top {
    white-space: normal;
    flex-wrap: wrap;
    gap: 0.12em;
  }

  /* Reduce reveal offset so bottom elements don't clip behind hero overflow:hidden */
  .hero .reveal {
    transform: translateY(8px);
  }
  .hero .reveal.visible {
    transform: translateY(0);
  }

  .hero-title { margin-bottom: 0.75rem; }
  .hero-sub {
    max-width: 95%;
    line-height: 1.72;
    margin-bottom: 0.7rem;
  }
  .hero-stars { margin-bottom: 0.85rem; }
  .hero-actions { margin-bottom: 0.9rem; }

  #features::before,
  #admin::before,
  #gallery::before,
  #pricing::before,
  #plugins::before {
    opacity: 0.38;
  }

  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .plugins-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .developer-tag { width: auto; }

  .lfn-main { flex-direction: column; align-items: flex-start; }
  .lfn-links { justify-content: flex-start; }
  .lfn-bottom { flex-direction: column; align-items: flex-start; }

  .demo-banner-actions { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }

  .feature-group-label { padding: 1rem 1.1rem; }
  .feature-group-label p { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  #features::before,
  #admin::before,
  #gallery::before,
  #pricing::before,
  #plugins::before,
  body::before {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }

  /* On very small phones ensure hero title doesn't clip */
  .hero-title {
    font-size: clamp(1.85rem, 8.5vw, 2.3rem);
    letter-spacing: -0.02em;
  }
  .hero-title-top {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    padding-bottom: 4.5rem;
  }
}


