/* ==========================================================================
   RCKeyBoard — 2026 Premium Design System & Kinetic UI/UX Architecture
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties & Design Tokens
   ========================================================================== */

:root {
  /* Color System — Deep Galactic Obsidian (Dark Mode Default) */
  --bg-primary: #060814;
  --bg-secondary: #0b0f22;
  --bg-surface: rgba(15, 23, 48, 0.72);
  --bg-surface-hover: rgba(24, 34, 68, 0.88);
  --bg-surface-card: rgba(18, 26, 54, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);
  --bg-glass-active: rgba(255, 255, 255, 0.14);

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --subtle: #64748b;

  /* Vibrant, Balanced 2026 Color Palette */
  --accent: #38bdf8;          /* Bright Sky Cyan */
  --accent-2: #818cf8;        /* Electric Indigo */
  --accent-3: #f472b6;        /* Neon Rose */
  --accent-emerald: #34d399;  /* Mint Emerald */
  --accent-amber: #fbbf24;    /* Warm Amber */

  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --accent-gradient-warm: linear-gradient(135deg, #fbbf24 0%, #f472b6 100%);
  --accent-gradient-mint: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  
  --accent-glow: rgba(56, 189, 248, 0.28);
  --accent-glow-indigo: rgba(129, 140, 248, 0.28);

  --border: rgba(255, 255, 255, 0.09);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(56, 189, 248, 0.45);
  --border-glow: rgba(129, 140, 248, 0.4);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.2);
  --shadow-glow-strong: 0 0 55px rgba(56, 189, 248, 0.4);

  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1240px;

  /* Spring Physics & Fluid Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode (Crisp Ceramic Ivory) */
body.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-hover: rgba(255, 255, 255, 0.98);
  --bg-surface-card: rgba(255, 255, 255, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.03);
  --bg-glass-strong: rgba(15, 23, 42, 0.06);
  --bg-glass-active: rgba(15, 23, 42, 0.1);

  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --subtle: #94a3b8;

  --accent: #0284c7;
  --accent-2: #6366f1;
  --accent-3: #db2777;
  --accent-emerald: #059669;
  --accent-amber: #d97706;

  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%);
  --accent-gradient-warm: linear-gradient(135deg, #d97706 0%, #db2777 100%);
  --accent-gradient-mint: linear-gradient(135deg, #059669 0%, #0284c7 100%);

  --accent-glow: rgba(2, 132, 199, 0.18);
  --accent-glow-indigo: rgba(99, 102, 241, 0.18);

  --border: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.12);
  --border-hover: rgba(2, 132, 199, 0.35);
  --border-glow: rgba(99, 102, 241, 0.35);

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.12);
  --shadow-glow-strong: 0 0 50px rgba(2, 132, 199, 0.22);
}

/* ==========================================================================
   2. Resets, Smoothing & Base Styles
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

body.menu-open {
  overflow: hidden;
}

/* Dynamic Interactive Mouse Spotlight */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.4s ease;
  will-change: transform;
}

body.light-mode .cursor-spotlight {
  opacity: 0.35;
}

/* Subtle Organic Ambient Mesh Background */
.bg-mesh-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.28;
  pointer-events: none;
  will-change: transform;
  animation: floatMeshOrb 20s ease-in-out infinite alternate;
}

body.light-mode .bg-orb {
  opacity: 0.16;
}

.orb-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--accent) 0%, rgba(56, 189, 248, 0) 70%);
  top: -180px;
  left: -200px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-2) 0%, rgba(129, 140, 248, 0) 70%);
  bottom: 8%;
  right: -150px;
  animation-delay: -7s;
  animation-duration: 24s;
}

.orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-3) 0%, rgba(244, 114, 182, 0) 70%);
  top: 42%;
  left: 28%;
  animation-delay: -14s;
  animation-duration: 22s;
}

@keyframes floatMeshOrb {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(45px, -55px) scale(1.12) rotate(180deg); }
  100% { transform: translate(-35px, 35px) scale(0.92) rotate(360deg); }
}

/* Micro Grid Ambient Texture */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: -1;
}

body.light-mode .bg-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ==========================================================================
   3. Typography & Section Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.section-subtext {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}

/* ==========================================================================
   4. Layout Containers
   ========================================================================== */

.hero,
.features,
.demo-section,
.comparison-section,
.theme-showcase,
.gallery,
.faq-section,
.store-preview,
.footer,
.page-header,
.page-content {
  width: min(var(--max-w), calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   5. Floating Pill Navigation (2026 Frosted Dock)
   ========================================================================== */

.topbar-wrapper {
  position: fixed;
  top: 1.1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.topbar {
  pointer-events: auto;
  width: min(var(--max-w), 100%);
  height: 64px;
  background: rgba(10, 15, 32, 0.76);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.4rem;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45), var(--shadow-glow);
  transition: all 0.35s var(--ease);
}

body.light-mode .topbar {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
}

body.scrolled .topbar {
  height: 58px;
  background: rgba(6, 10, 24, 0.92);
  border-color: var(--border-hover);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.65), var(--shadow-glow-strong);
}

body.light-mode.scrolled .topbar {
  background: rgba(255, 255, 255, 0.96);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}

.brand-logo-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.35s var(--ease-spring);
}

.brand-glow {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: var(--accent-gradient);
  filter: blur(8px);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}

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

.brand:hover .brand-glow {
  opacity: 0.95;
}

.brand-name {
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, var(--text) 65%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav Center Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-glass);
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.22s var(--ease);
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-glass-strong);
}

.nav-link.active {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.9rem;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}

.language-toggle:hover,
.theme-toggle:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.language-icon {
  color: var(--accent);
}

.dropdown-chevron {
  transition: transform 0.3s var(--ease);
}

.language-menu.open + .dropdown-chevron,
.language-toggle:focus .dropdown-chevron {
  transform: rotate(180deg);
}

/* Language Dropdown Menu */
.language-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 240px;
  background: var(--bg-surface);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 0.6rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.28s var(--ease-spring);
  z-index: 1100;
}

.language-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-menu-header {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem 0.3rem;
}

.language-search-wrap {
  padding: 0.2rem 0.4rem 0.5rem;
}

.language-search-input {
  width: 100%;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  padding: 0 0.6rem;
  outline: none;
}

.language-search-input:focus {
  border-color: var(--accent);
}

.language-menu-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.language-item {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.18s var(--ease);
}

.language-item .flag {
  font-size: 1.15rem;
}

.language-item:hover,
.language-item:focus {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateX(2px);
}

/* Theme Toggle Button */
.toggle-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 18px;
  height: 18px;
}

.sun-icon, .moon-icon {
  position: absolute;
  transition: all 0.45s var(--ease-spring);
}

body:not(.light-mode) .sun-icon { opacity: 1; transform: rotate(0deg) scale(1); }
body:not(.light-mode) .moon-icon { opacity: 0; transform: rotate(-90deg) scale(0.4); }

body.light-mode .sun-icon { opacity: 0; transform: rotate(90deg) scale(0.4); }
body.light-mode .moon-icon { opacity: 1; transform: rotate(0deg) scale(1); color: var(--accent); }

/* Download Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.3rem;
  background: var(--accent-gradient);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: all 0.28s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(30deg);
  transition: all 0.6s ease;
}

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

.nav-cta:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px) scale(1.03);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  cursor: pointer;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

body.menu-open .mobile-menu-toggle .bar-1 {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .mobile-menu-toggle .bar-2 {
  opacity: 0;
}
body.menu-open .mobile-menu-toggle .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   6. Mobile Drawer Overlay
   ========================================================================== */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(6, 8, 20, 0.95);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: all 0.35s var(--ease);
}

body.light-mode .mobile-menu-overlay {
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-body {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-nav-link {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  padding: 0.75rem;
  border-radius: 16px;
  transition: all 0.2s var(--ease);
}

.mobile-nav-link:hover {
  color: var(--accent);
  background: var(--bg-glass-strong);
}

/* ==========================================================================
   7. Hero Section (Kinetic 3D & Modern Visuals)
   ========================================================================== */

.hero {
  padding: 8.5rem 0 4.5rem;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
}

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
  backdrop-filter: blur(16px);
}

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

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero-badges span {
  padding: 0.45rem 0.95rem;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: all 0.2s var(--ease);
}

.hero-badges span:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-copy h1 {
  margin-bottom: 1.25rem;
}

.hero-copy p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 54px;
  padding: 0 1.9rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.28s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px var(--shadow-glow-strong);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  height: 42px;
  padding: 0 1.25rem;
  font-size: 0.88rem;
}

/* Live Stats Counter Cards */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.28s var(--ease);
  backdrop-filter: blur(16px);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-content strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.stat-content span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* 3D Tilt Phone Mockup Frame */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  perspective: 1200px;
}

.phone-card-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.phone-glow-aura {
  position: absolute;
  inset: -25px;
  background: var(--accent-gradient);
  filter: blur(45px);
  opacity: 0.38;
  border-radius: 44px;
  z-index: 1;
  animation: pulseGlowAura 4s ease-in-out infinite alternate;
}

@keyframes pulseGlowAura {
  0% { opacity: 0.25; filter: blur(35px); }
  100% { opacity: 0.45; filter: blur(50px); }
}

.phone-card {
  position: relative;
  z-index: 2;
  background: #090d1c;
  border: 8px solid #1e293b;
  border-radius: 42px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: floatPhoneSoft 7s ease-in-out infinite;
}

body.light-mode .phone-card {
  background: #fff;
  border-color: #cbd5e1;
}

.phone-notch {
  width: 110px;
  height: 18px;
  background: #1e293b;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 5;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

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

/* Floating Interactive Badges around Phone */
.floating-badge {
  position: absolute;
  z-index: 5;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  white-space: nowrap;
  animation: floatBadgeLag 5.5s ease-in-out infinite alternate;
  cursor: default;
}

.badge-1 { top: 14%; left: -40px; animation-delay: 0s; }
.badge-2 { top: 52%; right: -40px; animation-delay: -1.8s; }
.badge-3 { bottom: 10%; left: -30px; animation-delay: -3.5s; }

@keyframes floatBadgeLag {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Quick Hero Theme Selector Pills */
.hero-theme-swatches {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 6;
  position: relative;
}

.hero-theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.hero-theme-swatch:hover,
.hero-theme-swatch.active {
  transform: scale(1.25);
  border-color: #fff;
  box-shadow: 0 0 14px var(--accent);
}

/* ==========================================================================
   8. Next-Gen Interactive Live Keyboard Studio & Simulator
   ========================================================================== */

.demo-section {
  padding: 5rem 0 3.5rem;
}

.section-heading {
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1.4rem;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 4px;
  background: var(--accent-gradient);
  border-radius: 4px;
}

.simulator-wrapper {
  background: var(--bg-surface);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  margin-top: 2rem;
  transition: all 0.35s var(--ease);
}

.simulator-header {
  background: rgba(8, 12, 26, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

body.light-mode .simulator-header {
  background: rgba(241, 245, 249, 0.9);
}

.simulator-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.sim-dot.red { background: #ff5f56; }
.sim-dot.yellow { background: #ffbd2e; }
.sim-dot.green { background: #27c93f; }

.simulator-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Sound & Studio Options */
.sim-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sound-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.sound-toggle-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
}

.sound-toggle-btn.muted {
  opacity: 0.6;
}

.theme-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sim-theme-btn {
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
}

.sim-theme-btn:hover {
  color: var(--text);
  background: var(--bg-glass-strong);
}

.sim-theme-btn.active {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.simulator-screen {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transition: background 0.4s var(--ease);
  position: relative;
}

/* Simulator Themes */
.theme-amoled { background: #04060c; color: #fff; }
.theme-avocado { background: #0e1c12; color: #ecfdf5; }
.theme-pink { background: #240d1a; color: #fce7f3; }
.theme-minecraft { background: #161413; color: #f5f5f4; }
.theme-cute { background: #171424; color: #f3e8ff; }
.theme-light { background: #f8fafc; color: #0f172a; }

/* Real-Time Speedometer & Analytics Bar */
.sim-telemetry-bar {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.theme-light .sim-telemetry-bar {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.sim-telemetry-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.sim-telemetry-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.sim-telemetry-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.sim-input-box {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.sim-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.sim-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sim-input-wrapper input {
  width: 100%;
  height: 52px;
  padding: 0 3rem 0 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid var(--border);
  color: inherit;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  transition: all 0.25s var(--ease);
}

.theme-light .sim-input-wrapper input {
  background: #fff;
  border-color: #cbd5e1;
}

.sim-input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.sim-clear-btn {
  position: absolute;
  right: 1rem;
  color: var(--muted);
  font-size: 1.15rem;
  padding: 0.25rem;
  border-radius: 6px;
  transition: color 0.2s;
}

.sim-clear-btn:hover {
  color: var(--accent-3);
}

/* Simulated Keyboard Frame */
.sim-keyboard-frame {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
  border-radius: 26px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
}

.theme-light .sim-keyboard-frame {
  background: #e2e8f0;
  border-color: #cbd5e1;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.sim-suggestions {
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}

.sim-suggestion {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}

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

.sim-suggestion.active-suggestion {
  color: var(--accent);
  font-weight: 800;
  background: rgba(56, 189, 248, 0.14);
}

.sim-keys-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-row {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.key {
  height: 46px;
  flex: 1;
  max-width: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.08s var(--ease);
  box-shadow: 0 4px 0 rgba(0,0,0,0.45);
  user-select: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.theme-light .key {
  background: #fff;
  box-shadow: 0 4px 0 #cbd5e1;
}

.theme-avocado .key { background: #1f4e27; color: #ecfdf5; box-shadow: 0 4px 0 #123018; }
.theme-pink .key { background: #581c3b; color: #fce7f3; box-shadow: 0 4px 0 #370f23; }
.theme-minecraft .key { background: #3a5c10; color: #fff; border-radius: 4px; box-shadow: 0 4px 0 #1c2e07; font-family: monospace; }
.theme-cute .key { background: #431b87; color: #f3e8ff; box-shadow: 0 4px 0 #280e55; }

.key:active, .key.pressed {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.45);
  background: var(--accent);
  color: #fff;
}

.key-shift, .key-backspace, .key-special {
  flex: 1.45;
  max-width: 68px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
}

.key-space {
  flex: 4;
  max-width: 230px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.key-enter {
  flex: 1.5;
  max-width: 72px;
  background: var(--accent-gradient);
  color: #fff;
}

/* Spacebar Drag/Slide Cursor Gesture Visual */
.spacebar-trackpad-hint {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   9. Features Bento Grid Section
   ========================================================================== */

.features {
  padding: 5rem 0 3.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 26px;
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: transform 0.3s var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(4deg);
}

.glow-cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.glow-purple { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.glow-rose { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.glow-emerald { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.glow-amber { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.glow-blue { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }

.feature-card h3 {
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ==========================================================================
   10. Interactive Comparison Matrix Section ("Why RCKeyBoard?")
   ========================================================================== */

.comparison-section {
  padding: 5rem 0 3.5rem;
}

.comparison-table-wrap {
  background: var(--bg-surface-card);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

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

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

.comparison-table th {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  background: rgba(10, 14, 28, 0.7);
}

body.light-mode .comparison-table th {
  background: rgba(241, 245, 249, 0.8);
}

.comparison-table th.col-highlight {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.15));
  color: var(--accent);
  font-size: 1.1rem;
}

.comparison-table td.col-highlight {
  background: rgba(56, 189, 248, 0.04);
  font-weight: 700;
  color: var(--text);
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: 800;
  margin-right: 0.4rem;
}

.cross-icon {
  color: var(--accent-3);
  font-weight: 800;
  margin-right: 0.4rem;
}

/* ==========================================================================
   11. Identity & Experience Section
   ========================================================================== */

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.identity-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 2.2rem;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(20px);
}

.identity-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.identity-icon {
  font-size: 2.3rem;
  margin-bottom: 1.1rem;
}

.identity-card h3 {
  margin-bottom: 0.65rem;
}

/* ==========================================================================
   12. Theme Library & Enhanced Interactive Cards
   ========================================================================== */

.theme-showcase {
  padding: 5rem 0 3.5rem;
}

.theme-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.theme-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.theme-filter-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}

.theme-filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.theme-filter-btn.active {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.theme-search-box {
  position: relative;
  width: 240px;
}

.theme-search-box input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.4rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.25s var(--ease);
}

.theme-search-box input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  width: 270px;
}

.theme-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.theme-card {
  background: linear-gradient(165deg, var(--bg-surface-card) 0%, rgba(8, 12, 28, 0.9) 100%);
  border-radius: 30px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  position: relative;
}

body.light-mode .theme-card {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
}

.theme-card:hover {
  transform: translateY(-10px) scale(1.018);
  border-color: var(--border-hover);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.65), var(--shadow-glow-strong);
}

.theme-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border-radius: 28px 28px 0 0;
}

.theme-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.theme-card:hover .theme-media img {
  transform: scale(1.08);
}

/* Floating Top Badges on Theme Card */
.theme-top-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(8, 12, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.rating-pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(8, 12, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fbbf24;
  box-shadow: var(--shadow-sm);
}

/* Hover Overlay Action Bar */
.theme-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 6;
  padding: 1rem;
}

.theme-card:hover .theme-preview-overlay {
  opacity: 1;
}

.theme-action-icon {
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.theme-action-icon:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 22px var(--accent-glow);
}

/* Theme Card Information */
.theme-info {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.theme-tags span {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  color: var(--muted);
}

.tag-amoled { color: #38bdf8 !important; border-color: rgba(56, 189, 248, 0.35) !important; background: rgba(56, 189, 248, 0.1) !important; }
.tag-fresh { color: #34d399 !important; border-color: rgba(52, 211, 153, 0.35) !important; background: rgba(52, 211, 153, 0.1) !important; }
.tag-cute { color: #f472b6 !important; border-color: rgba(244, 114, 182, 0.35) !important; background: rgba(244, 114, 182, 0.1) !important; }
.tag-gaming { color: #818cf8 !important; border-color: rgba(129, 140, 248, 0.35) !important; background: rgba(129, 140, 248, 0.1) !important; }
.tag-premium { color: #fbbf24 !important; border-color: rgba(251, 191, 36, 0.35) !important; background: rgba(251, 191, 36, 0.1) !important; }

.theme-info h3 {
  font-size: 1.22rem;
  font-weight: 800;
}

.theme-info p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.theme-card-footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.btn-theme-action {
  height: 40px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.btn-theme-action.try-sim-btn {
  flex: 1.2;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-light);
  color: var(--text);
}

.btn-theme-action.try-sim-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-theme-action.get-play-btn {
  flex: 0.8;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-theme-action.get-play-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

/* ==========================================================================
   13. Gallery Section
   ========================================================================== */

.gallery {
  padding: 4rem 0 3.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all 0.35s var(--ease);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(4, 6, 16, 0.9), transparent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   14. Interactive FAQ Accordion Section
   ========================================================================== */

.faq-section {
  padding: 5rem 0 3.5rem;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
  margin: 2rem auto 0;
}

.faq-item {
  background: var(--bg-surface-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

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

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  gap: 1rem;
}

.faq-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-glass-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  padding: 0 1.8rem;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding-bottom: 1.4rem;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.75;
}

/* ==========================================================================
   15. Store Preview Section
   ========================================================================== */

.store-preview {
  padding: 4.5rem 0 4.5rem;
}

.preview-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  padding: 3.8rem;
  border-radius: 36px;
  background: linear-gradient(145deg, var(--bg-surface-card), rgba(15, 23, 50, 0.45));
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  align-items: center;
}

.preview-copy h2 {
  margin-bottom: 1rem;
}

.preview-copy p {
  margin-bottom: 2rem;
  font-size: 1.12rem;
  line-height: 1.8;
}

.preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-primary);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

.store-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.store-top img {
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.store-top h3 {
  font-size: 1.2rem;
}

.store-top p {
  font-size: 0.88rem;
  margin: 0;
}

.store-rating {
  color: #fbbf24;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.store-rating span {
  color: var(--text);
  font-size: 1.05rem;
}

.store-stats {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

/* ==========================================================================
   16. Lightbox Modal
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 16, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 30px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.lightbox-close:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-image-wrap img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 20px;
}

.lightbox-caption h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.lightbox-caption p {
  font-size: 0.96rem;
  margin-bottom: 1.1rem;
}

/* Back To Top Button with Circular Progress */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
  color: #fff;
  background: var(--accent-gradient);
}

/* ==========================================================================
   17. Subpages Styling (About, Privacy, Terms)
   ========================================================================== */

.page-header {
  padding: 8.5rem 0 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breadcrumb-wrap {
  margin-bottom: 1.25rem;
}

.breadcrumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.breadcrumb-btn:hover {
  transform: translateX(-3px);
  border-color: var(--accent);
  background: var(--bg-surface-hover);
}

.page-subtitle {
  font-size: 1.18rem;
  max-width: 700px;
  margin-top: 0.85rem;
  line-height: 1.75;
}

.page-content {
  padding-bottom: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.subpage-hero-card {
  background: var(--bg-surface-card);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  padding: 2.8rem;
  box-shadow: var(--shadow-lg);
}

.subpage-badge {
  display: inline-block;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.subpage-hero-card h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  margin-bottom: 1.1rem;
}

.subpage-hero-card p {
  font-size: 1.12rem;
  line-height: 1.85;
}

.effective-date {
  font-size: 0.9rem !important;
  color: var(--accent) !important;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.bento-subpage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.subpage-card {
  background: var(--bg-surface-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 2.2rem;
  transition: all 0.3s var(--ease);
}

.subpage-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.subpage-section-card {
  background: var(--bg-surface-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 2.4rem;
}

.subpage-section-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.tech-tag {
  padding: 0.48rem 1.1rem;
  border-radius: 999px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.subpage-cta-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(129, 140, 248, 0.16));
  border: 1px solid var(--border-light);
  border-radius: 32px;
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.policy-sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.policy-card {
  background: var(--bg-surface-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.2rem;
  transition: all 0.3s var(--ease);
}

.policy-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.policy-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.policy-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--bg-glass-strong);
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-hover);
}

/* ==========================================================================
   18. Unified 2026 Footer
   ========================================================================== */

.footer {
  padding: 4.5rem 0 3.5rem;
}

.footer-shell {
  background: var(--bg-surface-card);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 2.5rem 2.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: var(--shadow-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.footer-logo img {
  border-radius: 10px;
}

.footer-brand strong {
  font-size: 1.15rem;
}

.footer-brand span {
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.footer-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  color: var(--subtle);
  margin-top: 2rem;
}

/* ==========================================================================
   19. Scroll Animation Utilities (Intersection Observer)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   20. Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy { align-items: center; }
  .pill { align-self: center; }
  .hero-badges, .hero-actions, .stats { justify-content: center; }
  
  .feature-grid, .theme-grid, .bento-subpage { grid-template-columns: repeat(2, 1fr); }
  .preview-card { grid-template-columns: 1fr; text-align: center; }
  .preview-copy { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }

  .topbar-wrapper { top: 0.75rem; }
  .topbar { padding: 0.4rem 0.95rem; height: 56px; }
  .brand-logo-wrap img { width: 34px; height: 34px; }
  .brand-name { font-size: 1.05rem; }
  .nav-cta { display: none; }
  
  .hero { padding: 6.5rem 0 3rem; }
  .feature-grid, .identity-grid, .theme-grid, .gallery-grid, .bento-subpage { grid-template-columns: 1fr; }

  .simulator-screen { padding: 1.4rem 1rem; }
  .sim-keyboard-frame { padding: 0.65rem; }

  .floating-badge { display: none; }
  .preview-card { padding: 2.2rem 1.6rem; }
  .footer-shell { flex-direction: column; text-align: center; }

  .page-header { padding: 6.5rem 0 2rem; }
  .subpage-hero-card, .subpage-section-card, .subpage-cta-card, .policy-card { padding: 1.6rem; border-radius: 22px; }

  .comparison-table th, .comparison-table td { padding: 0.9rem 1rem; font-size: 0.88rem; }
}

@media (max-width: 640px) {
  .hero-copy h1 { font-size: 2.15rem; }
  .hero-copy p { font-size: 1rem; }

  .theme-toolbar { flex-direction: column; align-items: stretch; }
  .theme-search-box { width: 100%; }
  .theme-search-box input:focus { width: 100%; }

  .theme-selector-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }

  .sim-theme-btn { font-size: 0.76rem; padding: 0.32rem 0.75rem; flex-shrink: 0; }

  .key { height: 40px; font-size: 0.9rem; }
  .sim-row { gap: 3px; }
  .key-space { max-width: 140px; font-size: 0.75rem; }
  .key-shift, .key-backspace, .key-special { max-width: 52px; font-size: 0.82rem; }

  .stats { flex-direction: column; width: 100%; }
  .stat-card { width: 100%; justify-content: center; }
  .phone-card-wrap { max-width: 280px; }
}

@media (max-width: 480px) {
  .topbar { padding: 0.4rem 0.75rem; }
  .brand-name { font-size: 0.96rem; }
  .language-toggle, .theme-toggle { padding: 0 0.55rem; height: 36px; font-size: 0.82rem; }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .preview-card { padding: 1.6rem 1.1rem; border-radius: 22px; }
  .store-card { padding: 1.3rem; }
  .footer-shell { padding: 1.6rem 1.2rem; }
}
