/* ==========================================================================
   AB SCANNER — LIQUID GLASS 3D DESIGN SYSTEM & THEMES
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- THEME 1: DARK (DEFAULT OBSIDIAN GLOW) --- */
[data-theme="dark"], :root {
  --bg-base: #060911;
  --bg-gradient: radial-gradient(circle at 50% 0%, #0d1a38 0%, #060911 75%);
  --nav-bg: rgba(9, 14, 26, 0.75);
  --nav-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(15, 23, 42, 0.65);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-hover-border: rgba(56, 189, 248, 0.4);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --card-hover-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.25);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --primary: #38BDF8;
  --primary-hover: #0EA5E9;
  --primary-glow: rgba(56, 189, 248, 0.35);
  --accent: #10B981;
  --glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  --surface-blur: blur(14px);
  --btn-play-bg: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  --btn-play-border: rgba(255, 255, 255, 0.15);
  --badge-bg: rgba(56, 189, 248, 0.1);
  --badge-border: rgba(56, 189, 248, 0.25);
  --badge-text: #38BDF8;
  --laser-color: #38bdf8;
  --stat-border: rgba(255, 255, 255, 0.06);
}

/* --- THEME 2: LIGHT (AIRY CRYSTAL FROST) --- */
[data-theme="light"] {
  --bg-base: #F8FAFC;
  --bg-gradient: radial-gradient(circle at 50% 0%, #E0F2FE 0%, #F8FAFC 85%);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(226, 232, 240, 0.8);
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(226, 232, 240, 0.9);
  --card-hover-border: rgba(37, 99, 235, 0.35);
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
  --card-hover-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.12);
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #94A3B8;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --accent: #059669;
  --glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  --surface-blur: blur(12px);
  --btn-play-bg: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --btn-play-border: rgba(37, 99, 235, 0.35);
  --badge-bg: rgba(37, 99, 235, 0.08);
  --badge-border: rgba(37, 99, 235, 0.2);
  --badge-text: #2563EB;
  --laser-color: #2563eb;
  --stat-border: rgba(226, 232, 240, 0.8);
}

/* --- THEME 3: LIQUID GLASS (HIGH-END WATER REFRACTION) --- */
[data-theme="liquid"] {
  --bg-base: #040914;
  --bg-gradient: 
    radial-gradient(ellipse at 20% 10%, rgba(14, 165, 233, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.22) 0%, transparent 50%),
    linear-gradient(180deg, #040914 0%, #071329 50%, #040914 100%);
  --nav-bg: rgba(255, 255, 255, 0.08);
  --nav-border: rgba(255, 255, 255, 0.2);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.16);
  --card-hover-border: rgba(56, 189, 248, 0.55);
  --card-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.03);
  --card-hover-shadow: 0 25px 50px -10px rgba(56, 189, 248, 0.3), inset 0 0 30px rgba(56, 189, 248, 0.1);
  --text-main: #FFFFFF;
  --text-muted: #CBD5E1;
  --text-dim: #94A3B8;
  --primary: #38BDF8;
  --primary-hover: #7DD3FC;
  --primary-glow: rgba(56, 189, 248, 0.5);
  --accent: #34D399;
  --glass-specular: inset 0 1px 2px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
  --surface-blur: blur(16px);
  --btn-play-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  --btn-play-border: rgba(255, 255, 255, 0.25);
  --badge-bg: rgba(56, 189, 248, 0.15);
  --badge-border: rgba(56, 189, 248, 0.35);
  --badge-text: #7DD3FC;
  --laser-color: #38bdf8;
  --stat-border: rgba(255, 255, 255, 0.12);
}

/* Water caustics backdrop for liquid theme */
[data-theme="liquid"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  animation: liquidShift 16s ease-in-out infinite alternate;
}

@keyframes liquidShift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(20px, -20px); }
  100% { transform: scale(1) translate(-15px, 15px); }
}

/* --- BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ==========================================================================
   REUSABLE LIQUID GLASS COMPONENT SYSTEM
   ========================================================================== */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-specular), var(--card-shadow);
  border-radius: 24px;
}

.glass-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-specular), var(--card-shadow);
  border-radius: 24px;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--glass-specular), var(--card-hover-shadow);
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  box-shadow: var(--glass-specular);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.glass-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-specular);
  color: var(--text-main);
  padding: 0.75rem 1.6rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.glass-button:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--glass-specular), 0 8px 24px var(--primary-glow);
}

/* --- GLASSMORPHIC NAVIGATION --- */
.glass-nav-header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--nav-border);
  box-shadow: var(--glass-specular), 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-smooth);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: transform var(--transition-fast);
}

.brand:hover img {
  transform: scale(1.06) rotate(3deg);
}

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

.nav-center a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-center a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Switcher Controls (Theme + Lang) */
.glass-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.glass-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.45rem 2.2rem 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  box-shadow: var(--glass-specular);
  backdrop-filter: var(--surface-blur);
  transition: all var(--transition-fast);
}

.glass-select:hover {
  border-color: var(--primary);
}

.glass-select-icon {
  position: absolute;
  right: 0.8rem;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Header CTA Button - Redesigned 2026 Glass Pill */
.btn-nav-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88) 0%, rgba(79, 70, 229, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF !important;
  padding: 0.52rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px var(--primary-glow), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

[data-theme="light"] .btn-nav-download {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-nav-download::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.btn-nav-download:hover::after {
  left: 140%;
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 26px var(--primary-glow), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .btn-nav-download:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  border-color: #1D4ED8;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.btn-nav-download:active {
  transform: translateY(0) scale(0.97);
}

/* Play Store Official Icon */
.play-store-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-download:hover .play-store-icon,
.btn-glass-primary:hover .play-store-icon,
.btn-drawer-download:hover .play-store-icon,
.btn-sticky-play:hover .play-store-icon,
.mobile-nav-play-btn:hover .play-store-icon {
  transform: scale(1.15) rotate(-3deg);
}

/* Desktop vs Mobile Controls */
.desktop-only-control {
  display: inline-flex;
}

.mobile-only-control {
  display: none;
}

.mobile-nav-play-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF !important;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--primary-glow);
  min-height: 38px;
  transition: all var(--transition-fast);
}

[data-theme="light"] .mobile-nav-play-btn {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.mobile-nav-play-btn:active {
  transform: scale(0.96);
}

/* Mobile Hamburger Menu Button (44px Touch Target) */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  box-shadow: var(--glass-specular);
  z-index: 120;
  transition: all var(--transition-fast);
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn:active {
  transform: scale(0.95);
  border-color: var(--primary);
}

.mobile-menu-btn .menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease-out;
}

.mobile-menu-btn.active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fullscreen Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[data-theme="light"] .mobile-drawer {
  background: rgba(248, 250, 252, 0.94);
}

[data-theme="liquid"] .mobile-drawer {
  background: rgba(4, 9, 20, 0.94);
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-inner {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 100%;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--card-border);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-main);
}

.mobile-drawer-brand img {
  border-radius: 8px;
}

.mobile-drawer-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-drawer-close:active {
  transform: scale(0.95);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  min-height: 48px;
  transition: all var(--transition-fast);
}

.mobile-drawer-link:active, .mobile-drawer-link:hover {
  background: var(--card-bg);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
}

.drawer-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-drawer-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--glass-specular);
}

.mobile-selector-item label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.mobile-selector-item .glass-select-wrapper {
  width: 100%;
}

.mobile-selector-item .glass-select {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.5rem 1.8rem 0.5rem 0.75rem;
}

.btn-drawer-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-drawer-download:active {
  transform: scale(0.98);
}

[data-theme="light"] .btn-drawer-download {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: 1px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.mobile-drawer-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* --- HERO SECTION --- */
.hero-wrapper {
  max-width: 1280px;
  margin: 3.5rem auto 4rem;
  padding: 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  box-shadow: var(--glass-specular);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

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

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-glass-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--btn-play-bg);
  border: 1px solid var(--btn-play-border);
  color: #FFFFFF;
  padding: 0.95rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--glass-specular), 0 12px 28px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-smooth);
}

.btn-glass-primary:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--glass-specular), 0 18px 36px var(--primary-glow);
}

[data-theme="light"] .btn-glass-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .btn-glass-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  border-color: #1D4ED8;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.95rem 1.85rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--glass-specular);
  backdrop-filter: var(--surface-blur);
  transition: all var(--transition-smooth);
}

.btn-glass-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

/* Micro badges row */
.hero-chips-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-specular);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

/* 3D Viewport Right Column */
.hero-3d-container {
  position: relative;
  width: 100%;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-3d-viewport {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#hero-3d-viewport:active {
  cursor: grabbing;
}

/* Floating interactive HUD chips over 3D viewport */
.hud-tag {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-specular), var(--card-shadow);
  border-radius: 14px;
  padding: 0.65rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  pointer-events: none;
  animation: floatHud 4s ease-in-out infinite alternate;
  z-index: 10;
}

.hud-top-right {
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.hud-bottom-left {
  bottom: 12%;
  left: 5%;
  animation-delay: 1.8s;
}

@keyframes floatHud {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* WebGL Fallback Viewport */
.hero-3d-fallback {
  width: 320px;
  height: 480px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.fallback-scanner-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #38BDF8;
  box-shadow: 0 0 15px #38BDF8, 0 0 30px #38BDF8;
  animation: fallbackBeam 2.5s ease-in-out infinite alternate;
}

@keyframes fallbackBeam {
  0% { top: 15%; }
  100% { top: 85%; }
}

/* --- STATS SECTION --- */
.stats-section {
  max-width: 1240px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
}

.stats-glass-bar {
  background: var(--card-bg);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--stat-border);
  box-shadow: var(--glass-specular), var(--card-shadow);
  border-radius: 28px;
  padding: 2.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- FEATURES SECTION --- */
.features-section {
  max-width: 1240px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.75px;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

.feature-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-specular), var(--card-shadow);
  border-radius: 24px;
  padding: 2.5rem;
  transition: transform 0.15s ease-out, border-color var(--transition-fast), box-shadow var(--transition-fast);
  transform-style: preserve-3d;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--glass-specular), var(--card-hover-shadow);
}

/* Moving Specular Glare Effect */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.feature-card:hover .card-glare {
  opacity: 1;
}

.icon-box-3d {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.75rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateZ(20px);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  transform: translateZ(15px);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  transform: translateZ(10px);
}

/* ==========================================================================
   EXPANDED SECTIONS: TOOLS SUITE, WORKFLOW, COMPARISON, FAQ
   ========================================================================== */

/* 1. Tools Suite Showcase */
.tools-suite-section {
  max-width: 1240px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.tools-suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.tool-suite-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: var(--glass-specular), var(--card-shadow);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-suite-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: var(--glass-specular), var(--card-hover-shadow);
}

.tool-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.tool-badge-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.tool-suite-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.tool-suite-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tool-specs-list {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tool-spec-pill {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tool-spec-pill strong {
  color: var(--text-main);
}

.tool-action-link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.tool-action-link:hover {
  gap: 0.75rem;
}

/* 2. 3D Workflow Section */
.workflow-section {
  max-width: 1240px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

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

.workflow-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  box-shadow: var(--glass-specular), var(--card-shadow);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.workflow-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.workflow-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.workflow-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.workflow-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 3. Comparison Section */
.comparison-section {
  max-width: 1240px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.comparison-table-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 1.5rem;
  overflow-x: auto;
  box-shadow: var(--glass-specular), var(--card-shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.comparison-table th {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.comparison-table td {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.highlight-col {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-main) !important;
  font-weight: 700;
}

/* 4. FAQ Section */
.faq-section {
  max-width: 960px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem 1.85rem;
  box-shadow: var(--glass-specular);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-card:hover {
  border-color: var(--card-hover-border);
}

.faq-question-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.faq-toggle-icon {
  font-size: 1.35rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-answer {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
}

.faq-card.open .faq-answer {
  display: block;
}

.faq-card.open .faq-toggle-icon {
  transform: rotate(45deg);
}

/* --- PRIVACY SHIELD SECTION --- */
.privacy-shield-section {
  max-width: 1240px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.privacy-shield-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(56, 189, 248, 0.05) 100%), var(--card-bg);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: var(--glass-specular), 0 20px 50px -15px rgba(16, 185, 129, 0.15);
  border-radius: 32px;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.privacy-shield-content h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.privacy-shield-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.privacy-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillar-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-specular);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pillar-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.pillar-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.pillar-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- USE CASES SECTION --- */
.usecases-section {
  max-width: 1240px;
  margin: 0 auto 7rem;
  padding: 0 1.5rem;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.usecase-card {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  border-radius: 24px;
}

.usecase-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.usecase-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.usecase-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}

.usecase-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.usecase-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- TECHNICAL ARCHITECTURE & SPECS SECTION --- */
.specs-section {
  max-width: 1240px;
  margin: 0 auto 7rem;
  padding: 0 1.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.spec-card {
  padding: 1.75rem;
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.spec-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.spec-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.spec-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- 3D CTA BANNER --- */
.cta-banner-wrapper {
  max-width: 1240px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.cta-banner-card {
  position: relative;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%), var(--card-bg);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--card-hover-border);
  box-shadow: var(--glass-specular), 0 30px 60px -15px var(--primary-glow);
  border-radius: 36px;
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
}

.cta-banner-card h2 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.cta-banner-card p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.75rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- ABOUT DEVELOPER & BRAND SECTION --- */
.developer-section {
  max-width: 1240px;
  margin: 0 auto 7rem;
  padding: 0 1.5rem;
}

.developer-card {
  padding: 3.5rem;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.developer-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.developer-content h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.75px;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.developer-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.developer-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.developer-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.developer-meta-item strong {
  color: var(--primary);
}

.developer-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.developer-brand-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.developer-avatar-box {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.developer-brand-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.developer-brand-card .dev-title {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.developer-brand-card .dev-origin {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- CONTACT PAGE STYLES --- */
.contact-section-wrapper {
  max-width: 1240px;
  margin: 3.5rem auto 7rem;
  padding: 0 1.5rem;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info-panel {
  padding: 3rem;
  border-radius: 28px;
}

.contact-info-panel h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.contact-info-panel p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact-items-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

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

.contact-stack-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.contact-stack-body .contact-stack-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-stack-body .contact-stack-val {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 700;
}

.contact-stack-body a {
  color: var(--primary);
  text-decoration: none;
}

.contact-form-panel {
  padding: 3rem;
  border-radius: 28px;
}

.contact-form-panel h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.contact-form-panel p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  background: rgba(255, 255, 255, 0.08);
}

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

/* --- REDESIGNED MULTI-COLUMN FOOTER --- */
footer {
  border-top: 1px solid var(--stat-border);
  background: var(--nav-bg);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  padding: 5rem 1.5rem 2.5rem;
  color: var(--text-muted);
}

.footer-container-rich {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-col-brand h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-col-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-item a:hover {
  text-decoration: underline;
}

.footer-bottom-bar {
  border-top: 1px solid var(--stat-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-bottom-credits strong {
  color: var(--text-main);
}

.footer-bottom-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-pill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
}

/* --- RTL (URDU & ARABIC) STYLES --- */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .hero-grid {
  grid-template-columns: 0.95fr 1.15fr;
}

[dir="rtl"] .glass-select {
  padding: 0.45rem 0.9rem 0.45rem 2.2rem;
}

[dir="rtl"] .glass-select-icon {
  right: auto;
  left: 0.8rem;
}

[dir="rtl"] .pillar-item {
  flex-direction: row;
}

[dir="rtl"] .comparison-table {
  text-align: right;
}

[dir="rtl"] .arrow-icon {
  transform: scaleX(-1);
  display: inline-block;
}

/* ==========================================================================
   MOBILE-FIRST DEDICATED RESPONSIVE ARCHITECTURE & MEDIA QUERIES
   ========================================================================== */

/* Prevent page scrolling when mobile menu drawer is open */
html.drawer-open,
body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* --- MOBILE FLOATING STICKY CTA COMPONENT --- */
.mobile-sticky-cta {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1rem;
  right: 1rem;
  z-index: 90;
  display: none;
  justify-content: center;
  pointer-events: none;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem 0.6rem 0.75rem;
  border-radius: 9999px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-hover-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), var(--glass-specular);
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}

.sticky-cta-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.sticky-cta-info img {
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sticky-cta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-cta-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-sticky-play {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--primary-glow);
  min-height: 36px;
  transition: all var(--transition-fast);
}

.btn-sticky-play:active {
  transform: scale(0.96);
}

[data-theme="light"] .btn-sticky-play {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.sticky-cta-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.35rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  min-width: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.sticky-cta-close:active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   BREAKPOINT 1: TABLET (1024px and below)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-chips-row {
    justify-content: center;
  }
  .hero-3d-container {
    height: 480px;
  }
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-shield-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 2rem;
  }
  .stats-glass-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .developer-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   BREAKPOINT 2: MOBILE VIEWPORTS (768px and below)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Header & Navigation */
  .glass-nav-header {
    top: max(0.5rem, env(safe-area-inset-top));
    padding: 0 0.75rem;
    width: 100%;
  }

  .glass-nav {
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
  }

  .brand {
    font-size: 1.15rem;
    gap: 0.6rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-center {
    display: none !important;
  }

  .desktop-only-control {
    display: none !important;
  }

  .mobile-only-control {
    display: inline-flex !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  /* 2. Hero Section */
  .hero-wrapper {
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .hero-badge-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
    line-height: 1.16;
    letter-spacing: -0.75px;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.6;
    margin: 0 auto 1.75rem;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.5rem;
    gap: 0.85rem;
  }

  .btn-glass-primary,
  .btn-glass-secondary {
    width: 100%;
    height: 52px;
    min-height: 52px;
    justify-content: center;
    font-size: 1rem;
    border-radius: 14px;
    padding: 0 1.5rem;
  }

  .btn-glass-primary:active,
  .btn-glass-secondary:active {
    transform: scale(0.98);
  }

  .hero-chips-row {
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
  }

  .chip-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }

  .hero-3d-container {
    height: clamp(320px, 85vw, 400px);
    max-width: 100%;
    overflow: hidden;
    margin-top: 0.5rem;
  }

  .hud-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    gap: 0.4rem;
  }

  .hud-top-right {
    top: 4%;
    right: 3%;
  }

  .hud-bottom-left {
    bottom: 4%;
    left: 3%;
  }

  /* 3. 2-Column Compact Statistics (Section 15 Specification) */
  .stats-section {
    margin: 1.5rem auto 3.5rem;
    padding: 0 1rem;
  }

  .stats-glass-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem;
    padding: 1.35rem 0.85rem;
    border-radius: 20px;
  }

  .stat-item h3 {
    font-size: clamp(1.8rem, 6.5vw, 2.2rem);
    margin-bottom: 0.2rem;
  }

  .stat-item p {
    font-size: clamp(0.78rem, 2.8vw, 0.85rem);
    line-height: 1.35;
  }

  /* 4. Section Spacing & Common Grid Layouts */
  .features-section,
  .tools-suite-section,
  .workflow-section,
  .comparison-section,
  .privacy-shield-section,
  .usecases-section,
  .faq-section,
  .specs-section,
  .developer-section,
  .cta-banner-wrapper,
  .contact-section-wrapper {
    margin: 0 auto 3.5rem;
    padding: 0 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem);
    margin-bottom: 0.65rem;
  }

  .section-header p {
    font-size: clamp(0.92rem, 3.5vw, 1rem);
    line-height: 1.55;
  }

  /* 1-Column Cards on Mobile */
  .features-grid,
  .tools-suite-grid,
  .workflow-grid,
  .usecases-grid,
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card,
  .tool-suite-card,
  .usecase-card,
  .spec-card,
  .workflow-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }

  .feature-card:active,
  .tool-suite-card:active,
  .usecase-card:active,
  .spec-card:active {
    transform: scale(0.985);
  }

  .icon-box-3d {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    border-radius: 14px;
  }

  .feature-card h3,
  .tool-suite-card h3,
  .usecase-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .feature-card p,
  .tool-suite-card p,
  .usecase-card p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* 5. Comparison Table */
  .comparison-table-wrapper {
    padding: 1rem 0.5rem;
    border-radius: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.85rem;
  }

  /* 6. Privacy Shield & Developer Card */
  .privacy-shield-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
    gap: 2rem;
    border-radius: 24px;
  }

  .privacy-shield-content h2 {
    font-size: clamp(1.6rem, 5.5vw, 2rem);
  }

  .privacy-pillars {
    gap: 0.85rem;
  }

  .pillar-item {
    padding: 1rem 1.15rem;
    gap: 0.75rem;
    border-radius: 16px;
  }

  .developer-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
    gap: 2rem;
    border-radius: 24px;
  }

  .developer-content h2 {
    font-size: clamp(1.6rem, 5.5vw, 2rem);
  }

  .developer-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 0.75rem;
  }

  .developer-actions .btn-glass-primary,
  .developer-actions .btn-glass-secondary {
    width: 100%;
    height: 50px;
    justify-content: center;
  }

  .developer-brand-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }

  /* 7. FAQ Accordion (Minimum 48px touch area) */
  .faq-card {
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
  }

  .faq-question-row {
    font-size: 1rem;
    min-height: 48px;
  }

  .faq-toggle-icon {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .faq-answer {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* 8. CTA Banner */
  .cta-banner-card {
    padding: 3rem 1.25rem;
    border-radius: 24px;
  }

  .cta-banner-card h2 {
    font-size: clamp(1.75rem, 6vw, 2.2rem);
    margin-bottom: 0.85rem;
  }

  .cta-banner-card p {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    gap: 0.85rem;
  }

  /* 9. Contact Page Form & Details */
  .contact-info-panel,
  .contact-form-panel {
    padding: 2rem 1.25rem;
    border-radius: 24px;
  }

  /* 10. Stacked Clean Mobile Footer */
  footer {
    padding: 3.5rem 1.25rem max(2rem, env(safe-area-inset-bottom));
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-col ul li a {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .footer-contact-item {
    gap: 0.75rem;
    font-size: 0.92rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-badges {
    justify-content: center;
    gap: 0.5rem;
  }

  /* Enable Sticky CTA on mobile */
  .mobile-sticky-cta {
    display: flex;
  }
}

/* ==========================================================================
   BREAKPOINT 3: COMPACT PHONES (480px and below)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(1.85rem, 7vw, 2.25rem);
  }

  .hero-cta-group {
    max-width: 100%;
  }

  .btn-glass-primary,
  .btn-glass-secondary {
    font-size: 0.95rem;
  }

  .hud-tag {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }

  .stats-glass-bar {
    padding: 1.15rem 0.65rem;
  }

  .stat-item h3 {
    font-size: 1.8rem;
  }

  .stat-item p {
    font-size: 0.75rem;
  }

  .developer-actions {
    max-width: 100%;
  }

  .mobile-drawer-selectors {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BREAKPOINT 4: ULTRA-COMPACT PHONES (360px and below - e.g. iPhone SE 1st gen)
   ========================================================================== */
@media (max-width: 360px) {
  .brand span {
    font-size: 1.05rem;
  }

  .mobile-nav-play-btn span {
    display: none;
  }

  .mobile-nav-play-btn {
    padding: 0.45rem;
    border-radius: 50%;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-3d-container {
    height: 300px;
  }

  .btn-glass-primary,
  .btn-glass-secondary {
    font-size: 0.9rem;
    padding: 0 1rem;
    height: 48px;
    min-height: 48px;
  }

  .sticky-cta-sub {
    display: none;
  }
}

/* ==========================================================================
   MOBILE LANDSCAPE ORIENTATION (e.g. 640x360, 667x375, 844x390)
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .glass-nav-header {
    top: 0.25rem;
  }

  .glass-nav {
    padding: 0.35rem 1rem;
  }

  .hero-wrapper {
    margin: 1rem auto 2rem;
  }

  .hero-3d-container {
    height: 260px;
  }

  .mobile-drawer {
    padding: 1rem;
  }

  .mobile-drawer-inner {
    gap: 0.85rem;
  }

  .mobile-drawer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mobile-drawer-link {
    flex: 1 1 calc(50% - 0.5rem);
    min-height: 42px;
    font-size: 0.95rem;
  }

  .mobile-sticky-cta {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE RTL (URDU & ARABIC) REFINEMENTS
   ========================================================================== */
[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

[dir="rtl"] .mobile-drawer-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .mobile-drawer-brand {
  flex-direction: row-reverse;
}

[dir="rtl"] .mobile-drawer-link {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .mobile-drawer-selectors {
  text-align: right;
}

[dir="rtl"] .sticky-cta-card {
  flex-direction: row-reverse;
}

[dir="rtl"] .sticky-cta-info {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .faq-question-row {
  flex-direction: row-reverse;
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .pulse-dot,
  .fallback-scanner-beam,
  .hud-tag {
    animation: none !important;
  }
}

/* ==========================================================================
   REFERRAL INVITATION BANNER (?ref=...)
   ========================================================================== */
.referral-invite-banner {
  max-width: 1240px;
  margin: 0.75rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 105;
  animation: slideDownFade 0.4s ease forwards;
}

.referral-invite-content {
  background: var(--card-bg);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15), var(--glass-specular);
  border-radius: 18px;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.referral-invite-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.referral-invite-text {
  flex: 1 1 300px;
}

.referral-invite-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.referral-invite-text p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.4;
}

.ref-code-tag {
  display: inline-block;
  font-family: monospace;
  font-weight: 800;
  font-size: 1rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px dashed rgba(16, 185, 129, 0.4);
}

.referral-invite-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ref-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

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

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .referral-invite-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1rem;
  }
  .referral-invite-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

