/* ==========================================================================
   RCKeyBoard — Premium CSS Design System (2026 Redesign)
   ========================================================================== */

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

:root {
  /* Color System — Dark Mode (Default) */
  --bg-primary: #060814;
  --bg-surface: rgba(15, 22, 42, 0.75);
  --bg-surface-hover: rgba(25, 34, 60, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(255, 255, 255, 0.09);

  --text: #f1f5f9;
  --muted: #94a3b8;

  --accent: #a78bfa;
  --accent-2: #22d3ee;
  --accent-3: #fb7185;
  --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
  --accent-glow: rgba(167, 139, 250, 0.3);

  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(167, 139, 250, 0.4);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 28px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 50px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(167, 139, 250, 0.25);
  --shadow-glow-strong: 0 0 45px rgba(167, 139, 250, 0.45);

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

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Light Mode */
body.light-mode {
  --bg-primary: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(15, 23, 42, 0.03);
  --bg-glass-strong: rgba(15, 23, 42, 0.06);

  --text: #0f172a;
  --muted: #64748b;

  --accent: #7c3aed;
  --accent-2: #0891b2;
  --accent-3: #e11d48;
  --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
  --accent-glow: rgba(124, 58, 237, 0.2);

  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(124, 58, 237, 0.35);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(124, 58, 237, 0.15);
  --shadow-glow-strong: 0 0 45px rgba(124, 58, 237, 0.3);
}

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

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

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

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

body.menu-open {
  overflow: hidden;
}

/* Ambient Background Grid Overlay */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* Scrollbar */
::-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;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

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

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

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-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-subtext {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
}

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

.hero,
.features,
.demo-section,
.theme-showcase,
.gallery,
.store-preview,
.footer,
.page-header,
.page-content {
  width: min(var(--max-w), calc(100% - 2rem));
  margin: 0 auto;
}

/* ==========================================================================
   5. Background Orbs (Ambient Lights)
   ========================================================================== */

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  z-index: -2;
  pointer-events: none;
  animation: floatGlow 18s ease-in-out infinite alternate;
}

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

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -150px;
  left: -200px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: 5%;
  right: -150px;
  animation-delay: -6s;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -12s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ==========================================================================
   6. Header & Top Floating Pill Navbar
   ========================================================================== */

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

.topbar {
  pointer-events: auto;
  width: min(var(--max-w), calc(100% - 2rem));
  height: 64px;
  background: rgba(12, 16, 32, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.4rem;
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  transition: all 0.3s var(--ease);
}

body.light-mode .topbar {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 35px -8px rgba(15, 23, 42, 0.08);
}

body.scrolled .topbar {
  height: 56px;
  background: rgba(8, 11, 22, 0.92);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), var(--shadow-glow-strong);
}

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

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  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.3s var(--ease-spring);
}

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

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

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

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

/* Nav Links Center */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  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.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s 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 12px rgba(167, 139, 250, 0.3);
}

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

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

.language-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.85rem;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  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.25s 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.6rem);
  right: 0;
  width: 220px;
  background: var(--bg-surface);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transition: all 0.25s 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.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem 0.2rem;
}

.language-menu-list {
  max-height: 280px;
  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: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.15s var(--ease);
}

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

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

/* Theme Toggle Button Icon Spin */
.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.4s 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.5); }

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

/* Download CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 1.25rem;
  background: var(--accent-gradient);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.35);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

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

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

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

/* ==========================================================================
   7. Mobile Drawer Overlay
   ========================================================================== */

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

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

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-body {
  max-width: 400px;
  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.8rem;
}

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

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

/* ==========================================================================
   8. Hero Section
   ========================================================================== */

.hero {
  padding: 8.5rem 0 4rem;
  min-height: calc(100vh - 80px);
  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.6rem;
  padding: 0.45rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 211, 238, 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;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 52px;
  padding: 0 1.8rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(167, 139, 250, 0.55);
}

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

.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;
}

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

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.25s var(--ease);
}

.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.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

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

/* Hero Visual & Phone Frame */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-card-wrap {
  position: relative;
  width: 100%;
  max-width: 330px;
}

.phone-glow-aura {
  position: absolute;
  inset: -20px;
  background: var(--accent-gradient);
  filter: blur(40px);
  opacity: 0.35;
  border-radius: 40px;
  z-index: 1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

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

.phone-card {
  position: relative;
  z-index: 2;
  background: #090d1a;
  border: 8px solid #1e293b;
  border-radius: 40px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: floatPhone 6s 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 img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  display: block;
}

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

/* Floating Badges on Phone */
.floating-badge {
  position: absolute;
  z-index: 4;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hover);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  white-space: nowrap;
  animation: floatBadge 5s ease-in-out infinite alternate;
}

.badge-1 { top: 15%; left: -35px; animation-delay: 0s; }
.badge-2 { top: 50%; right: -35px; animation-delay: -1.5s; }
.badge-3 { bottom: 12%; left: -25px; animation-delay: -3s; }

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   9. Interactive Live Simulator Section
   ========================================================================== */

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

.simulator-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.simulator-header {
  background: rgba(10, 14, 28, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.simulator-controls {
  display: flex;
  gap: 0.45rem;
}

.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.88rem;
  font-weight: 700;
  color: var(--muted);
}

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

.sim-theme-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  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 10px rgba(167, 139, 250, 0.3);
}

.simulator-screen {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background 0.4s var(--ease);
}

/* Simulator Themes */
.theme-amoled { background: #04060c; color: #fff; }
.theme-avocado { background: #142416; color: #ecfdf5; }
.theme-pink { background: #29121c; color: #fce7f3; }
.theme-minecraft { background: #1c1917; color: #f5f5f4; }
.theme-cute { background: #1e1b2e; color: #f3e8ff; }
.theme-light { background: #f1f5f9; color: #0f172a; }

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

.sim-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

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

.sim-input-wrapper input {
  width: 100%;
  height: 50px;
  padding: 0 2.8rem 0 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid var(--border);
  color: inherit;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  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.1rem;
  padding: 0.2rem;
}

/* Simulated Keyboard Frame */
.sim-keyboard-frame {
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 22px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.theme-light .sim-keyboard-frame {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

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

.sim-suggestion {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.sim-suggestion.active-suggestion {
  color: var(--accent);
  font-weight: 800;
}

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

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

.key {
  height: 44px;
  flex: 1;
  max-width: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s var(--ease);
  box-shadow: 0 3px 0 rgba(0,0,0,0.4);
  user-select: none;
}

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

.theme-avocado .key { background: #22542a; color: #ecfdf5; box-shadow: 0 3px 0 #14351a; }
.theme-pink .key { background: #5c1d3c; color: #fce7f3; box-shadow: 0 3px 0 #3b1025; }
.theme-minecraft .key { background: #3f6212; color: #fff; border-radius: 3px; box-shadow: 0 3px 0 #1a2e05; }
.theme-cute .key { background: #4c1d95; color: #f3e8ff; box-shadow: 0 3px 0 #2e1065; }

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

.key-shift, .key-backspace, .key-special {
  flex: 1.4;
  max-width: 65px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
}

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

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

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

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

.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;
}

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

.feature-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 1.8rem;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.glow-cyan { background: rgba(34, 211, 238, 0.12); color: #22d3ee; }
.glow-purple { background: rgba(167, 139, 250, 0.12); color: #a78bfa; }
.glow-rose { background: rgba(251, 113, 133, 0.12); color: #fb7185; }
.glow-emerald { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.glow-amber { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.glow-blue { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }

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

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

/* ==========================================================================
   11. Identity Section
   ========================================================================== */

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

.identity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.3s var(--ease);
}

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

.identity-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   12. Themes Showcase & Enhanced Cards Design
   ========================================================================== */

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

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

.theme-filter-btn {
  padding: 0.55rem 1.25rem;
  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 15px rgba(167, 139, 250, 0.35);
}

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

.theme-card {
  background: linear-gradient(165deg, var(--bg-surface) 0%, rgba(10, 14, 28, 0.85) 100%);
  border-radius: 28px;
  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;
}

.theme-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: var(--border-hover);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), var(--shadow-glow-strong);
}

.theme-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 26px 26px 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.8rem;
  border-radius: 999px;
  background: rgba(10, 14, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hover);
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.rating-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 14, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.76rem;
  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.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  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.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  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 20px rgba(167, 139, 250, 0.45);
}

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

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

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

.tag-amoled { color: #22d3ee !important; border-color: rgba(34, 211, 238, 0.35) !important; background: rgba(34, 211, 238, 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: #fb7185 !important; border-color: rgba(251, 113, 133, 0.35) !important; background: rgba(251, 113, 133, 0.1) !important; }
.tag-gaming { color: #a78bfa !important; border-color: rgba(167, 139, 250, 0.35) !important; background: rgba(167, 139, 250, 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.2rem;
  font-weight: 800;
}

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

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

.btn-theme-action {
  height: 38px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  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-hover);
  color: var(--text);
}

.btn-theme-action.try-sim-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
  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 3rem;
}

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

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 0.9rem;
  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.05);
}

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

/* ==========================================================================
   14. Store Preview Section
   ========================================================================== */

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

.preview-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding: 3.5rem;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--bg-surface), rgba(15, 22, 42, 0.4));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  align-items: center;
}

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

.preview-copy p {
  margin-bottom: 2rem;
  font-size: 1.08rem;
}

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

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

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

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

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

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

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

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

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

/* ==========================================================================
   15. 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, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

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

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lightbox-caption h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.lightbox-caption p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  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.08);
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

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

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

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

.breadcrumb-btn {
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

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

.page-subtitle {
  font-size: 1.15rem;
  max-width: 680px;
  margin-top: 0.75rem;
}

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

.subpage-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.subpage-badge {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  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.2rem;
}

.subpage-hero-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.subpage-hero-card p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.effective-date {
  font-size: 0.88rem !important;
  color: var(--accent-2) !important;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.subpage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 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: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.subpage-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.2rem;
}

.subpage-section-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

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

.subpage-cta-card {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(34, 211, 238, 0.15));
  border: 1px solid var(--border-hover);
  border-radius: 28px;
  padding: 2.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

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

.policy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 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.8rem;
}

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

/* ==========================================================================
   17. Footer
   ========================================================================== */

.footer {
  padding: 4rem 0 3rem;
}

.footer-shell {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.2rem 2.5rem;
  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.75rem;
  margin-bottom: 0.4rem;
}

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

.footer-brand span {
  font-size: 0.9rem;
}

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

.footer-links a {
  font-size: 0.92rem;
  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.88rem;
  margin-top: 1.8rem;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ==========================================================================
   18. Comprehensive 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.85rem; height: 54px; }
  .brand-logo-wrap img { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; }
  .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.2rem 0.8rem; }
  .sim-keyboard-frame { padding: 0.6rem; }

  .floating-badge { display: none; }
  .preview-card { padding: 2rem 1.5rem; }
  .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.5rem; border-radius: 20px; }
}

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

  .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.75rem; padding: 0.3rem 0.7rem; flex-shrink: 0; }

  .key { height: 38px; font-size: 0.85rem; }
  .sim-row { gap: 2px; }
  .key-space { max-width: 130px; font-size: 0.75rem; }
  .key-shift, .key-backspace, .key-special { max-width: 50px; font-size: 0.8rem; }

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

@media (max-width: 480px) {
  .topbar { padding: 0.4rem 0.65rem; }
  .brand-name { font-size: 0.92rem; }
  .language-toggle, .theme-toggle { padding: 0 0.5rem; height: 34px; font-size: 0.8rem; }

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

  .preview-card { padding: 1.5rem 1rem; border-radius: 20px; }
  .store-card { padding: 1.2rem; }
  .footer-shell { padding: 1.5rem; }
}
