/* Self-hosted fonts (latin + latin-ext variable subsets) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/JetBrainsMono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/JetBrainsMono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   EmojiCodex — Official Landing Page Stylesheet
   Design Language: Modern Dark Cosmic Alchemy · Playful yet Studio-Grade
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Color Palette */
  --bg-dark: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #161d31;
  --bg-glass: rgba(18, 24, 41, 0.75);
  --bg-glass-hover: rgba(30, 41, 69, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(168, 85, 247, 0.4);

  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #a855f7;
  --secondary-light: #c084fc;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --gradient-cosmic: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Background Atmosphere */
.cosmic-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cosmic-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  will-change: transform;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.cosmic-orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
}

.cosmic-orb-2 {
  width: 500px;
  height: 500px;
  top: 35%;
  left: -150px;
  background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.cosmic-orb-3 {
  width: 550px;
  height: 550px;
  bottom: 5%;
  right: -50px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  animation-delay: -12s;
  animation-duration: 20s;
}

.cosmic-grid {
  position: absolute;
  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: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glass Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand picture,
.footer-brand-title picture,
.mobile-cta-info picture {
  display: flex;
  align-items: center;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transition: transform var(--transition-bounce);
}

.brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.08);
}

.brand-name {
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  transition: all var(--transition-normal);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title-highlight {
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

/* Call to Action Buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.google-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.6rem;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
}

.google-play-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
}

.google-play-btn:hover::before {
  left: 150%;
}

.google-play-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--primary-light);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4), 0 0 45px rgba(168, 85, 247, 0.3);
}

.google-play-btn svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.google-play-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.google-play-label {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.google-play-store {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.1;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-normal);
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Stats Ribbon */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Hero Visual / 3D Device Showcase
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame-3d {
  position: relative;
  width: 320px;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(99, 102, 241, 0.3) 100%);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(99, 102, 241, 0.35);
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.device-frame-3d:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
}

.device-screen-container {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.8);
}

.device-screen-container picture {
  display: block;
  width: 100%;
}

.device-screen-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.device-camera-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #000;
  border-radius: 10px;
  z-index: 10;
}

/* Floating Overlays around Device */
.floating-card-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(14, 19, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.25);
  z-index: 20;
  animation: floatCard 6s ease-in-out infinite alternate;
}

.pill-1 {
  top: 15%;
  left: -15%;
}

.pill-2 {
  bottom: 12%;
  right: -10%;
  animation-delay: -3s;
}

.pill-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
}

.pill-content {
  display: flex;
  flex-direction: column;
}

.pill-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.pill-desc {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ==========================================================================
   Section Header Styling
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Interactive Emoji Merge Lab (Conversion Hook)
   ========================================================================== */
.lab-section {
  padding: 5rem 0;
  position: relative;
}

.lab-card {
  background: linear-gradient(135deg, rgba(22, 29, 49, 0.8) 0%, rgba(14, 19, 31, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
}

.lab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-cosmic);
}

.lab-workbench {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.lab-slot {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lab-slot.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
  transform: scale(1.05);
}

.lab-operator {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dim);
}

.lab-result-slot {
  width: 105px;
  height: 105px;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.25) 0%, rgba(0, 0, 0, 0.6) 70%);
  border: 2px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.3);
  transition: all var(--transition-bounce);
}

.lab-result-slot.celebrate {
  animation: celebrateResult 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lab-result-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-top: -2px;
}

/* Palette of craftable base elements */
.lab-palette {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.lab-element-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-main);
  user-select: none;
}

.lab-element-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.lab-element-btn.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.lab-element-btn .elem-icon {
  font-size: 1.8rem;
}

.lab-element-btn .elem-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lab-action-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.lab-merge-btn {
  padding: 0.9rem 2.5rem;
  background: var(--gradient-cosmic);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  transition: all var(--transition-normal);
}

.lab-merge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.6);
}

.lab-clear-btn {
  padding: 0.9rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lab-clear-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.lab-feedback {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  min-height: 28px;
  font-weight: 600;
}

.lab-feedback.success {
  color: var(--accent-emerald);
}

.lab-feedback.info {
  color: var(--primary-light);
}

.lab-feedback.error {
  color: var(--accent-amber);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-card);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md), 0 0 30px rgba(99, 102, 241, 0.2);
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-highlight {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-light);
}

/* ==========================================================================
   Trailer (click-to-load YouTube facade)
   ========================================================================== */
.trailer-section {
  padding: 5rem 0;
  position: relative;
}

.video-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  background: var(--bg-surface);
  overflow: hidden;
}

.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.video-facade:hover img {
  transform: scale(1.02);
}

.video-facade:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: -3px;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gradient-cosmic);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-bounce);
}

.video-facade:hover .video-play-icon {
  transform: scale(1.12);
}

.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ==========================================================================
   Sneak Peek / Gallery Showcase
   ========================================================================== */
.gallery-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 19, 31, 0.6) 50%, transparent 100%);
  position: relative;
}

.gallery-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.gallery-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.gallery-track::-webkit-scrollbar {
  height: 8px;
}

.gallery-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.gallery-item {
  flex: 0 0 290px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.phone-mockup {
  position: relative;
  border-radius: 38px;
  padding: 8px;
  background: linear-gradient(145deg, #2a3148 0%, #101524 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(99, 102, 241, 0.2);
  transition: all var(--transition-normal);
}

.gallery-item:hover .phone-mockup {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px -10px rgba(0, 0, 0, 0.9),
    0 0 45px rgba(168, 85, 247, 0.4);
  border-color: var(--primary-light);
}

.phone-inner {
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.phone-inner picture {
  display: block;
  width: 100%;
}

.phone-inner img,
.phone-inner picture img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  margin-top: 1.25rem;
  text-align: center;
}

.gallery-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.gallery-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Final Conversion Call To Action (Bottom CTA)
   ========================================================================== */
.final-cta-section {
  padding: 6rem 0 7rem;
  position: relative;
}

.cta-box {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.25) 0%, rgba(14, 19, 31, 0.98) 80%);
  border: 1px solid var(--border-glow);
  border-radius: 32px;
  padding: 4.5rem 3rem;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 70px rgba(168, 85, 247, 0.25);
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), transparent, rgba(236, 72, 153, 0.4));
  z-index: -1;
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.cta-action-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-icon {
  color: var(--accent-emerald);
  font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-desc {
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* FAQ */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  transition: border-color var(--transition-normal);
}

.faq-item[open] {
  border-color: var(--border-glow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--secondary-light);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  margin-top: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Mobile Sticky Download Pill */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 999;
  padding: 0.85rem 1.25rem;
  background: rgba(14, 19, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.4);
  align-items: center;
  justify-content: space-between;
  animation: slideUp 0.4s ease-out;
}

.mobile-cta-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.mobile-cta-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.1;
}

.mobile-cta-genre {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.mobile-cta-btn {
  padding: 0.55rem 1.1rem;
  background: var(--gradient-cosmic);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes celebrateResult {
  0% { transform: scale(0.5); opacity: 0; filter: brightness(2); }
  50% { transform: scale(1.25); filter: drop-shadow(0 0 25px #a855f7); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-group {
    justify-content: center;
  }
  .hero-stats {
    max-width: 600px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .device-frame-3d {
    width: 270px;
    transform: none !important;
  }
  .pill-1, .pill-2 {
    display: none;
  }
  .mobile-sticky-cta {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
