/* ================================================
   BBM Official Website - styles.css
   Premium Dark Theme + Multi-Layer Parallax
   ================================================ */

/* ---- 1. Variables & Reset ---- */
:root {
  --bg-deep: #050a0e;
  --bg-dark: #0a1218;
  --bg-surface: #0f171e;
  --bg-card: #16212a;
  --primary: #00C896;
  --primary-dim: rgba(0, 200, 150, 0.15);
  --primary-glow: rgba(0, 200, 150, 0.35);
  --accent: #00e6ad;
  --text-main: #f0f5f3;
  --text-muted: #8696a0;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(10, 18, 24, 0.7);
  --font: 'Inter', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root.light-mode {
  --bg-deep: #f0f2f5;
  --bg-dark: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #f9f9f9;
  --text-main: #111b21;
  --text-muted: #54656f;
  --border: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.05);
}

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

/* ====== PRELOADER ====== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
}

.preloader-logo {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(0, 200, 150, 0.5));
  z-index: 2;
  position: relative;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.25), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 2s infinite ease-in-out;
  z-index: 1;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.bar-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #a0ffea);
  box-shadow: 0 0 12px var(--primary);
  border-radius: 2px;
}

.preloader-text {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

/* ====== INTERACTIVE UTILS ====== */
.magnetic {
  display: inline-block;
  will-change: transform;
}

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

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ---- 2. Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s;
  will-change: transform;
}

.navbar.scrolled {
  padding: .9rem 0;
  background: rgba(9, 14, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  z-index: 101;
}

.logo-img {
  height: 34px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.03em;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  color: var(--text-main);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: all 0.3s var(--ease);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.light-mode .theme-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sun-icon {
  display: none;
  width: 22px;
}

.moon-icon {
  display: block;
  width: 20px;
}

.light-mode .sun-icon {
  display: block;
}

.light-mode .moon-icon {
  display: none;
}

.nav-links a:not(.btn-nav) {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .3s;
  position: relative;
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .35s var(--ease);
  border-radius: 2px;
}

.nav-links a:not(.btn-nav):hover {
  color: var(--text-main);
}

.nav-links a:not(.btn-nav):hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--primary);
  color: #fff;
  padding: .55rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s var(--ease);
  box-shadow: 0 4px 16px var(--primary-dim);
}

.btn-nav:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 101;
  padding: .4rem;
}

.hamburger .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  border-radius: 2px;
  transition: .4s;
}

/* ---- 3. HERO (Multi-layer parallax) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
}

/* Parallax layers */
.parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  pointer-events: none;
  transform-style: preserve-3d;
}

.layer-bg {
  background: radial-gradient(ellipse 80% 60% at 70% 40%, #0d2920 0%, var(--bg-deep) 70%);
}

.layer-svg {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  opacity: .18;
  mix-blend-mode: screen;
  /* extend upward so parallax doesn't reveal bottom edge */
  top: -20%;
  bottom: -20%;
}

.bg-svg {
  height: 140%;
  width: auto;
  flex-shrink: 0;
  filter: hue-rotate(160deg) saturate(0.4) brightness(1.2);
}

.layer-glow {
  background:
    radial-gradient(circle 600px at 75% 50%, rgba(0, 168, 132, .08) 0%, transparent 70%),
    radial-gradient(circle 300px at 20% 80%, rgba(0, 168, 132, .05) 0%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    opacity: .7;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Removed empty ruleset */

/* Hero content */
.hero-content-wrap {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0, 168, 132, .12);
  border: 1px solid rgba(0, 168, 132, .25);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 50px;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
  animation: heroFade .8s var(--ease) both;
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.highlight-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #a0ffea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.line {
  display: block;
}

.line-1 {
  animation: heroFade .8s .1s var(--ease) both;
}

.line-2 {
  animation: heroFade .8s .25s var(--ease) both;
}

.highlight-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #7affda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: heroFade .8s .4s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: heroFade .8s .55s var(--ease) both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--primary);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .4s var(--ease);
  box-shadow: 0 8px 32px var(--primary-dim);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px var(--primary-glow);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transform: translateX(-100%);
  transition: transform .6s;
}

.btn-glow:hover::before {
  transform: translateX(100%);
}

.btn-ghost {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: .9rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all .3s;
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .04);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: heroFade .8s .7s var(--ease) both;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero mockup / phone */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: heroFade .9s .3s var(--ease) both;
  perspective: 2000px;
  transform-style: preserve-3d;
}

/* Premium Phone Mockup Utility */
.phone-mockup {
  position: relative;
  width: 280px;
  height: auto;
  background: #000;
  border-radius: 34px;
  padding: 8px;
  box-shadow:
    calc(var(--rot-y, 0) * -1.5px) calc(var(--rot-x, 0) * 1.5px) 40px rgba(0, 0, 0, 0.7),
    0 0 0 4px #1a1a1a,
    0 0 0 6px #333;
  overflow: hidden;
  z-index: 1;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(calc(var(--rot-x, 0) * 1deg)) rotateY(calc(var(--rot-y, 0) * 1deg)) translateZ(var(--trans-z, 0px));
  will-change: transform, box-shadow;
  transition: box-shadow 0.15s ease-out;
}



.phone-screen {
  width: 100%;
  height: auto;
  display: flex;
  border-radius: 26px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  will-change: background;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 320px;
  border-radius: 40px;
  border: 4px solid #1a1a1a;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  animation: floatPhone 7s ease-in-out infinite;
}

/* Chat Demo UI */
/* ---- 2.1 Language Switcher (Premium Capsule) ---- */
.lang-switcher {
  position: relative;
  z-index: 102;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.5rem 1.1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  text-transform: uppercase;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.chevron-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.3s;
}

.lang-switcher.active .chevron-icon {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(20, 25, 28, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 0.6rem;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lang-switcher.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  background: none;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.lang-option.active {
  color: var(--primary);
  background: var(--primary-dim);
}

.light-mode .lang-btn {
  background: rgba(0, 0, 0, 0.03);
}

.light-mode .lang-option:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* ---- 3. HERO (Multi-layer parallax) ---- */

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
}

.chat-user {
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.chat-status {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 500;
}

.chat-body {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background-image: url("background.svg");
  background-size: 150px;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.95;
}

.light-mode .chat-body {
  background-color: #ededed;
}

.chat-msg {
  max-width: 80%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  animation: msgPop 0.4s var(--ease-bounce) both;
}

@keyframes msgPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.msg-received {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

.msg-sent {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-footer {
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.chat-input-sim {
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

.phone-screen-img {
  width: 100%;
  display: block;
}

@keyframes floatPhone {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-18px) rotate(1deg);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  animation: heroFade 1s 1.2s var(--ease) both;
  z-index: 10;
}

.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-dot {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(8px);
    opacity: .3;
  }
}

/* ---- 4. Feature Sections ---- */
.feature-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  z-index: 10;
}

.feature-alt {
  background: var(--bg-deep);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature-grid.reverse .feature-text {
  order: 2;
}

.feature-grid.reverse .feature-image {
  order: 1;
}

.feature-image {
  perspective: 2000px;
  transform-style: preserve-3d;
}

.feature-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--text-muted);
  font-size: .95rem;
  padding: .4rem 0;
}

.feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a884' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.learn-more-link:hover {
  opacity: 0.8;
  transform: translateX(4px);
}

/* Image Cards with Glass */
.img-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04);
  background: var(--bg-card);
}

.img-card img {
  width: 100%;
  display: block;
}

.img-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(0, 168, 132, .12) 0%, transparent 60%);
}

.glow-blue {
  background: radial-gradient(circle at 50% 0%, rgba(0, 120, 200, .15) 0%, transparent 60%);
}

.glow-purple {
  background: radial-gradient(circle at 50% 0%, rgba(120, 50, 200, .15) 0%, transparent 60%);
}

.glow-green {
  background: radial-gradient(circle at 50% 0%, rgba(0, 200, 120, .18) 0%, transparent 60%);
}

/* Floating badges */
.floating-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(16, 27, 33, .85);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

.badge-icon {
  font-size: 1.1rem;
}

.badge-top-right {
  top: -1rem;
  right: -1.5rem;
}

.badge-bottom-left {
  bottom: -1rem;
  left: -1.5rem;
}

/* Image stack improvements */
.img-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2000px;
  transform-style: preserve-3d;
}

/* Background Mockups (Atmospheric) */
.bg-mockups-left {
  position: absolute;
  left: -150px;
  top: 10%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  filter: blur(2px) brightness(0.6);
}

.gallery-phone-bg-1 {
  transform: scale(0.7) rotate(-10deg);
}

.gallery-phone-bg-2 {
  transform: scale(0.6) rotate(-15deg) translateY(200px) translateX(80px);
}

.feature-image {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-gallery {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.parallax-gallery .phone-mockup {
  position: absolute;
  width: 240px;
  will-change: transform, opacity;
  transition: box-shadow 0.4s var(--ease);
}

.gallery-phone-1 {
  z-index: 5;
  left: 0;
  top: 50px;
  transform: rotate(-4deg);
}

.gallery-phone-2 {
  z-index: 6;
  right: 0;
  top: 150px;
  transform: rotate(3deg);
}

.gallery-phone-3 {
  z-index: 4;
  left: 15%;
  top: 300px;
  transform: rotate(-2deg) scale(0.9);
  opacity: 0.7;
}

.parallax-gallery:hover .phone-mockup {
  opacity: 1;
}

.parallax-gallery:hover .gallery-phone-1 {
  transform: rotate(-6deg) translateX(-20px) translateY(-10px);
}

.parallax-gallery:hover .gallery-phone-2 {
  transform: rotate(5deg) translateX(20px) translateY(10px);
}

.parallax-gallery:hover .gallery-phone-3 {
  transform: rotate(0deg) translateY(30px) scale(0.95);
}

@media (max-width: 992px) {
  .feature-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .feature-image {
    min-height: 400px;
    order: 2;
  }
  
  .feature-grid.reverse .feature-text {
    order: 1;
  }
  
  .parallax-gallery {
    height: 400px;
    transform: scale(0.8);
    margin-top: 2rem;
  }
  
  .parallax-gallery .phone-mockup {
    position: relative;
    width: 220px;
    margin: 0 -30px;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
}

/* Security badges */
.security-card {
  max-width: 100%;
}

.security-badges {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.5rem;
}

.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0, 168, 132, .08);
  border: 1px solid rgba(0, 168, 132, .2);
  color: var(--accent);
  border-radius: 10px;
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 600;
}

/* Full Width Feature Image */
.full-width-image-container {
  margin-top: 4rem;
  position: relative;
  z-index: 5;
  will-change: transform;
}

.full-img-card {
  position: relative;
  overflow: visible;
  background: transparent;
}

.full-img-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Float animations */
.float-anim {
  animation: floatImg 7s ease-in-out infinite;
}

.float-anim-delay-1 {
  animation: floatImg 8s 1s ease-in-out infinite;
}

.float-anim-delay-2 {
  animation: floatImg 9s 2s ease-in-out infinite;
}

.float-anim-delay-3 {
  animation: floatImg 7.5s 1.5s ease-in-out infinite;
}

@keyframes floatImg {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Section decorative blobs */
.section-decor {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.decor-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 168, 132, .08) 0%, transparent 70%);
}

.decor-2 {
  width: 400px;
  height: 400px;
  bottom: -50px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 80, 200, .08) 0%, transparent 70%);
}

.decor-3 {
  width: 600px;
  height: 600px;
  top: 50%;
  right: -150px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(80, 0, 200, .06) 0%, transparent 70%);
}

/* ---- 5. Parallax Strips ---- */
.parallax-strip {
  position: relative;
  height: 55vh;
  min-height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.strip-bg {
  background: linear-gradient(135deg, #0a1f18 0%, var(--bg-deep) 100%);
  /* extend beyond edges so parallax motion doesn't show gaps */
  top: -20%;
  bottom: -20%;
}

.strip-bg-2 {
  background: linear-gradient(135deg, #08101a 0%, var(--bg-deep) 100%);
  top: -20%;
  bottom: -20%;
}

.strip-svg-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  top: -30%;
  bottom: -30%;
  /* extra height for parallax range */
  overflow: hidden;
  opacity: .22;
  mix-blend-mode: screen;
}

.strip-svg {
  height: 200%;
  width: auto;
  filter: hue-rotate(160deg) saturate(0.5) brightness(1.3);
}

.strip-svg-flip {
  transform: scaleX(-1);
}

.strip-content {
  position: relative;
  z-index: 5;
  text-align: center;
}

.strip-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.strip-text h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text-main);
}

.strip-text h2 em {
  font-style: normal;
  color: var(--primary);
}

/* ---- Bento Grid Section ---- */
.bento-section {
  padding: 8rem 0;
  background: var(--bg-dark);
  position: relative;
  z-index: 15;
}

.bento-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bento-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

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

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

.bento-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.bento-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.bento-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 500;
}

.bento-content strong {
  color: var(--text-main);
  font-weight: 700;
}

.bento-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 200, 150, 0.3);
}

/* Efecto de luz interno sutil */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Asignación de espacios Grid */
.bento-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card-medium {
  grid-column: span 2;
  grid-row: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card-small {
  grid-column: span 1;
  grid-row: span 1;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card-large {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card-large,
  .bento-card-medium,
  .bento-card-small {
    grid-column: span 1;
  }
}

/* ---- 3D Showcase Section ---- */
.showcase-3d {
  padding-top: 10rem;
  padding-bottom: 2rem;
  background: var(--bg-deep);
  overflow: visible;
  position: relative;
  z-index: 20;
}

.showcase-header {
  text-align: center;
  margin-bottom: 8rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 50; /* Ensure header stays above initial phone state */
}

.showcase-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.showcase-sticky-wrap {
  position: relative;
  height: 140vh; /* Faster scroll duration, less empty space */
}

.showcase-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
  overflow: visible;
}

.sc-phone {
  position: absolute;
  width: 260px;
  will-change: transform, opacity;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

.sc-phone-1 { transform: translate3d(-380px, -120px, -300px) rotateY(30deg); z-index: 5; }
.sc-phone-2 { transform: translate3d(380px, -120px, -300px) rotateY(-30deg); z-index: 4; }
.sc-phone-3 { transform: translate3d(-200px, 120px, -100px) rotateY(15deg); z-index: 8; }
.sc-phone-4 { transform: translate3d(200px, 120px, -100px) rotateY(-15deg); z-index: 7; }
.sc-phone-5 { transform: translate3d(0, 0, 150px); z-index: 10; width: 290px; }
.sc-phone-6 { transform: translate3d(0, -250px, -500px); z-index: 3; opacity: 0.6; }

.floating-element {
  position: absolute;
  font-size: 3rem;
  filter: drop-shadow(0 0 20px var(--primary-glow));
  pointer-events: none;
  z-index: 15;
}

.fe-1 { top: 15%; left: 15%; }
.fe-2 { bottom: 20%; right: 15%; }
.fe-3 { top: 30%; right: 25%; }

@media (max-width: 992px) {
  .sc-phone { width: 180px; }
  .sc-phone-1 { transform: translate3d(-150px, -80px, -100px); }
  .sc-phone-2 { transform: translate3d(150px, 80px, -150px); }
  .sc-phone-5 { width: 220px; }
}

/* ---- 6. Download CTA ---- */
.cta-section {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
}

.cta-parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.cta-bg {
  background: radial-gradient(ellipse 100% 80% at 50% 60%, #081210 0%, var(--bg-deep) 80%);
  top: -20%;
  bottom: -20%;
}

.cta-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: .2;
  mix-blend-mode: screen;
  top: -30%;
  bottom: -30%;
}

.cta-svg-img {
  height: 220%;
  width: auto;
  filter: hue-rotate(160deg) saturate(.6) brightness(1.4);
}

.cta-glow-layer {
  background: radial-gradient(circle 500px at 50% 50%, rgba(0, 200, 150, 0.1) 0%, transparent 70%);
  animation: glowPulse 6s ease-in-out infinite alternate;
}

.cta-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.cta-logo img {
  height: 85px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 20px var(--primary-glow));
}

.cta-content h2 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.8rem;
  border-radius: 16px;
  font-weight: 600;
  transition: all .35s var(--ease);
  min-width: 180px;
}

.cta-btn-android {
  background: #fff;
  color: #111;
  box-shadow: 0 8px 30px rgba(255, 255, 255, .15);
}

.cta-btn-android:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(255, 255, 255, .2);
}

.cta-btn-ios {
  background: rgba(255, 255, 255, .08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}

.cta-btn-ios:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .25);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.cta-btn div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-sub {
  font-size: .72rem;
  font-weight: 500;
  opacity: .7;
}

.btn-main {
  font-size: 1.05rem;
  font-weight: 700;
}

.qr-hint {
  color: var(--text-muted);
  font-size: .85rem;
}

/* ---- 7. Footer ---- */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

/* Removed empty ruleset */
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s var(--ease);
}

.social-links a svg {
  width: 18px;
  height: 18px;
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.footer-logo-img {
  height: 24px;
}

.footer-logo-text {
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  letter-spacing: .05em;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: .7rem;
  transition: color .3s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
}

/* ---- 8. Scroll Animations (JS-driven) ---- */
.fade-slide-right,
.fade-slide-left,
.fade-up-on-scroll {
  will-change: opacity, transform;
}

.is-visible {
  opacity: 1 !important;
  transform: translate(0) !important;
}

/* ---- 9. Responsive ---- */
@media (max-width: 992px) {
  .hero-content-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .subtitle {
    margin: 0 auto 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-mockup {
    display: flex;
    margin-top: 3rem;
  }

  .phone-mockup {
    width: 240px;
  }

  .layer-svg {
    opacity: 0.04;
    justify-content: center;
  }

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

  .feature-grid.reverse .feature-text {
    order: 1;
  }

  .feature-grid.reverse .feature-image {
    order: 2;
  }

  .feature-list li {
    justify-content: center;
  }

  .badge-top-right,
  .badge-bottom-left {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    height: 100vh;
    background: rgba(9, 14, 18, .97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
  }

  .hamburger.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .parallax-strip {
    height: 40vh;
    min-height: 250px;
  }
}

@media (max-width:540px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }
}