/* ═══════════════════════════════════════════════════════
   TakvApp — Professional Landing Page Styles
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #040d0a;
  --surface: #0a1f18;
  --surface-2: #102e23;
  --surface-3: #163a2d;
  --border: rgba(46, 194, 126, 0.12);
  --text: #f0f8f4;
  --text-secondary: #c8ddd5;
  --muted: #7a9e93;
  --brand: #2ec27e;
  --brand-hover: #3ada91;
  --brand-rgb: 46, 194, 126;
  --brand-2: #ffd166;
  --brand-2-rgb: 255, 209, 102;
  --accent-blue: #0077b6;
  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 32px 64px rgba(0, 0, 0, 0.4);
  --glass: rgba(10, 31, 24, 0.75);
  --radius: 20px;
  --radius-lg: 30px;
}

body[data-theme="light"] {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-2: #edf5ef;
  --surface-3: #e0ede4;
  --border: rgba(12, 154, 97, 0.12);
  --text: #111a16;
  --text-secondary: #3a5249;
  --muted: #5e736b;
  --brand: #0c9a61;
  --brand-hover: #0b8051;
  --brand-rgb: 12, 154, 97;
  --brand-2: #d89600;
  --brand-2-rgb: 216, 150, 0;
  --shadow-sm: 0 4px 12px rgba(10, 31, 23, 0.06);
  --shadow: 0 20px 40px rgba(10, 31, 23, 0.08);
  --shadow-lg: 0 32px 64px rgba(10, 31, 23, 0.1);
  --glass: rgba(255, 255, 255, 0.85);
}

/* ── RESET & BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1200px, 90vw); margin: 0 auto; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* ── BG ORBS ──────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  animation: orbFloat 20s infinite ease-in-out alternate;
}
.bg-orb-1 { width: 600px; height: 600px; background: var(--brand); top: -15%; left: -8%; }
.bg-orb-2 { width: 500px; height: 500px; background: var(--brand-2); bottom: 5%; right: -10%; animation-delay: -7s; }
.bg-orb-3 { width: 400px; height: 400px; background: var(--accent-blue); top: 45%; left: 25%; animation-delay: -14s; opacity: 0.08; }

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(30px, -10px) scale(1.02); }
}

/* ── TOPBAR ───────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.topbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: "Marhey", cursive;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.5px;
}

.desktop-nav { display: flex; gap: 2.2rem; }
.desktop-nav a {
  color: var(--muted); font-weight: 600; font-size: 0.92rem;
  position: relative; transition: color 0.3s;
}
.desktop-nav a::after {
  content: ""; position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a:hover::after { width: 100%; }

.topbar-actions { display: flex; align-items: center; gap: 0.8rem; }

.icon-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }

.lang-switch {
  display: flex; background: var(--surface);
  border: 1px solid var(--border); border-radius: 99px; overflow: hidden;
}
.lang-btn {
  color: var(--muted); font-size: 0.72rem; font-weight: 800;
  padding: 0.45rem 0.75rem; transition: all 0.25s;
}
.lang-btn.active { background: var(--brand); color: #040d0a; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
}
.hamburger span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none; flex-direction: column; padding: 1rem 5vw 1.5rem;
  background: var(--glass); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 0; color: var(--text-secondary);
  font-weight: 600; font-size: 1rem;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--brand); }

/* ── GRADIENT TEXT ─────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── HERO ──────────────────────────────────── */
.hero {
  padding: 7rem 0 2.5rem;
  position: relative;
  overflow: visible;
}
.hero-grid {
  display: flex; align-items: center; gap: 4rem;
  min-height: 62vh;
}
.hero-content { flex: 1; max-width: 560px; }
.hero-phones {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.badge-premium {
  display: inline-block;
  background: rgba(var(--brand-2-rgb), 0.08);
  color: var(--brand-2);
  padding: 0.45rem 1.2rem; border-radius: 99px;
  font-weight: 700; font-size: 0.85rem;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(var(--brand-2-rgb), 0.15);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brand-2-rgb), 0); }
  50% { box-shadow: 0 0 20px 2px rgba(var(--brand-2-rgb), 0.15); }
}

.hero h1 {
  font-family: "Marhey", cursive;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.15; margin: 0 0 1.5rem;
  letter-spacing: -1px;
}
.hero .lead {
  font-size: 1.12rem; color: var(--muted);
  margin-bottom: 2.5rem; max-width: 480px; line-height: 1.7;
}
.user-count { font-size: 0.9rem; color: var(--muted); margin-top: 1.8rem; }
.user-count strong { color: var(--brand); }

/* Store Buttons */
.store-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.store-btn {
  display: flex; align-items: center;
  background-color: var(--text); color: var(--bg);
  padding: 0.65rem 1.5rem; border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.store-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}
.store-btn svg { width: 28px; height: 28px; margin-right: 12px; flex-shrink: 0; }
.store-btn .text { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn .text span { font-size: 0.68rem; font-weight: 500; }
.store-btn .text strong { font-size: 1.05rem; font-weight: 800; }

/* Hero Phone Stack */
.phone-stack {
  position: relative;
  width: clamp(280px, 34vw, 380px);
  height: clamp(400px, 46vw, 520px);
  max-width: 100%;
  perspective: 1200px;
}

.phone-stack .mockup-frame {
  position: absolute;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

/* Phone Back (Left) */
.phone-back {
  width: 200px;
  left: 0; top: 40px;
  transform: rotate(-12deg) translateZ(-30px);
  z-index: 1;
  opacity: 0.65;
  filter: blur(1.5px);
}

@media (hover: hover) {
  .phone-back:hover {
    transform: rotate(-8deg) translateX(-20px) translateY(-12px) scale(1.06) translateZ(0px) !important;
    z-index: 10 !important;
    opacity: 1 !important;
    filter: blur(0) !important;
    box-shadow:
      0 4px 12px rgba(0,0,0,0.25),
      0 24px 48px rgba(var(--brand-rgb), 0.25),
      0 48px 80px rgba(0,0,0,0.3),
      inset 0 0 0 1.5px rgba(255,255,255,0.12) !important;
  }
}

.phone-back:focus-visible {
  transform: rotate(-8deg) translateX(-20px) translateY(-12px) scale(1.06) translateZ(0px) !important;
  z-index: 10 !important;
  opacity: 1 !important;
  filter: blur(0) !important;
}

.phone-back.is-active {
  transform: rotate(-8deg) translateX(-20px) translateY(-12px) scale(1.12) translateZ(0px) !important;
  z-index: 20 !important;
  opacity: 1 !important;
  filter: blur(0) !important;
}

/* Phone Mid (Center) */
.phone-mid {
  width: 230px;
  left: 0; right: 0; margin-left: auto; margin-right: auto;
  top: 10px;
  transform: translateY(0) translateZ(0);
  z-index: 3;
  animation: heroFloat 6s ease-in-out infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

@media (hover: hover) {
  .phone-mid:hover {
    transform: translateY(-20px) scale(1.08) translateZ(0) !important;
    z-index: 11 !important;
    animation: none;
    box-shadow:
      0 6px 16px rgba(0,0,0,0.3),
      0 28px 56px rgba(var(--brand-rgb), 0.3),
      0 56px 96px rgba(0,0,0,0.35),
      inset 0 0 0 1.5px rgba(255,255,255,0.15) !important;
  }
}

.phone-mid:focus-visible {
  transform: translateY(-20px) scale(1.08) translateZ(0) !important;
  z-index: 11 !important;
  animation: none;
}

.phone-mid.is-active {
  transform: translateY(-25px) scale(1.18) translateZ(0) !important;
  z-index: 25 !important;
  animation: none;
}

/* Phone Front (Right) */
.phone-front {
  width: 200px;
  right: 0; top: 40px;
  transform: rotate(12deg) translateZ(-30px);
  z-index: 2;
  opacity: 0.65;
  filter: blur(1.5px);
}

@media (hover: hover) {
  .phone-front:hover {
    transform: rotate(8deg) translateX(20px) translateY(-12px) scale(1.06) translateZ(0px) !important;
    z-index: 10 !important;
    opacity: 1 !important;
    filter: blur(0) !important;
    box-shadow:
      0 4px 12px rgba(0,0,0,0.25),
      0 24px 48px rgba(var(--brand-rgb), 0.2),
      0 48px 80px rgba(0,0,0,0.3),
      inset 0 0 0 1.5px rgba(255,255,255,0.12) !important;
  }
}

.phone-front:focus-visible {
  transform: rotate(8deg) translateX(20px) translateY(-12px) scale(1.06) translateZ(0px) !important;
  z-index: 10 !important;
  opacity: 1 !important;
  filter: blur(0) !important;
}

.phone-front.is-active {
  transform: rotate(8deg) translateX(20px) translateY(-12px) scale(1.12) translateZ(0px) !important;
  z-index: 20 !important;
  opacity: 1 !important;
  filter: blur(0) !important;
}

/* Floating animation for hero center phone */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-12px) translateZ(0); }
}

/* Alternative hover state for stacking effect (desktop only) */
@media (hover: hover) {
  .phone-stack:hover .phone-back {
    opacity: 0.75;
    filter: blur(0.8px);
  }

  .phone-stack:hover .phone-front {
    opacity: 0.75;
    filter: blur(0.8px);
  }
}

/* Wave Divider */
.wave-divider {
  position: relative; margin-top: -2px;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: auto; display: block; }

/* ── STATS BAR ────────────────────────────── */
.stats-bar {
  background: var(--surface);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.stat-number {
  font-family: "Marhey", cursive;
  font-size: 2.8rem; font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.stat-plus {
  font-family: "Marhey", cursive;
  font-size: 2rem; font-weight: 700;
  color: var(--brand);
}
.stat-label {
  font-size: 0.9rem; font-weight: 600;
  color: var(--muted); letter-spacing: 0.02em;
}

/* ── SECTION HEADERS ──────────────────────── */
.section-header { margin-bottom: 4rem; }
.section-badge {
  display: inline-block;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand); padding: 0.35rem 1rem;
  border-radius: 99px; font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  border: 1px solid rgba(var(--brand-rgb), 0.15);
}
.section-header h2 {
  font-family: "Marhey", cursive;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0 0 1rem; line-height: 1.2;
}
.section-desc {
  font-size: 1.1rem; color: var(--muted);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ── FEATURES SECTION ─────────────────────── */
.features-section { padding: 6rem 0; }

/* Feature Showcase */
.feature-showcase {
  display: flex; align-items: center; gap: 5rem;
  padding: 4rem 0;
}
.feature-showcase.reverse { flex-direction: row-reverse; }
.feature-showcase + .feature-showcase { border-top: 1px solid var(--border); }

.feature-content { flex: 1; }
.feature-icon {
  font-size: 2.5rem; margin-bottom: 1rem;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 18px;
  border: 1px solid var(--border);
}
.feature-content h3 {
  font-family: "Marhey", cursive;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 1rem; color: var(--text);
  line-height: 1.25;
}
.feature-content > p {
  font-size: 1.05rem; color: var(--muted);
  margin-bottom: 1.8rem; line-height: 1.7;
}

.feature-list {
  list-style: none; display: flex;
  flex-direction: column; gap: 0.8rem;
}
.feature-list li {
  color: var(--text-secondary); font-size: 0.98rem;
  line-height: 1.55; display: flex; align-items: flex-start; gap: 0.6rem;
}
.feature-list li strong { color: var(--text); }
.feature-list .check {
  color: var(--brand); font-weight: 700;
  font-size: 1.1rem; flex-shrink: 0; margin-top: 1px;
}

/* Feature Mockup Area */
.feature-mockup {
  flex: 1;
  display: flex; justify-content: center; align-items: center;
  position: relative;
}

.mockup-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.2) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite;
}
.mockup-glow.glow-blue { background: radial-gradient(circle, rgba(0, 119, 182, 0.2) 0%, transparent 70%); }
.mockup-glow.glow-gold { background: radial-gradient(circle, rgba(var(--brand-2-rgb), 0.2) 0%, transparent 70%); }
.mockup-glow.glow-purple { background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%); }
.mockup-glow.glow-cyan { background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%); }

@keyframes glowPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ── PHONE MOCKUP FRAME ──────────────────── */
.mockup-frame {
  position: relative;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  border: 6px solid #1a1a1a;
  background: linear-gradient(160deg, #0b1813, #09120f);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.2),
    0 16px 32px rgba(0,0,0,0.3),
    0 32px 64px rgba(0,0,0,0.2),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
  overflow: hidden;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

body[data-theme="light"] .mockup-frame {
  border-color: #e8e8e8;
  background: linear-gradient(160deg, #f8fbf9, #edf5ef);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.05),
    0 16px 32px rgba(10,31,23,0.08),
    0 32px 64px rgba(10,31,23,0.06),
    inset 0 0 0 1.5px rgba(0,0,0,0.04);
}

/* Shine overlay */
.mockup-frame::after {
  content: "";
  position: absolute;
  top: -30%; left: -60%;
  width: 50%; height: 170%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transform: rotate(15deg);
  pointer-events: none; z-index: 3;
  opacity: 0;
  transition: opacity 0.6s, left 1s ease;
}
.mockup-frame:hover::after { opacity: 1; left: 120%; }

.mockup-frame:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.3),
    0 28px 56px rgba(0,0,0,0.4),
    0 56px 96px rgba(0,0,0,0.3),
    inset 0 0 0 1.5px rgba(var(--brand-rgb), 0.3);
}

.mockup-frame:focus-visible {
  transform: translateY(-12px) scale(1.05);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.3),
    0 28px 56px rgba(0,0,0,0.4),
    0 56px 96px rgba(0,0,0,0.3),
    inset 0 0 0 1.5px rgba(var(--brand-rgb), 0.35);
  outline: 2px solid rgba(var(--brand-rgb), 0.65);
  outline-offset: 4px;
}

.mockup-frame.is-active {
  transform: translateY(-12px) scale(1.05);
  z-index: 15;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.3),
    0 28px 56px rgba(0,0,0,0.4),
    0 56px 96px rgba(0,0,0,0.3),
    inset 0 0 0 1.5px rgba(var(--brand-rgb), 0.35);
  outline: 2px solid rgba(var(--brand-rgb), 0.65);
  outline-offset: 4px;
}

.mockup-notch {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(80px, 35%, 120px); height: 26px;
  background: #1a1a1a;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}
body[data-theme="light"] .mockup-notch { background: #050505; }

.mockup-frame img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}
.mockup-frame:hover img,
.mockup-frame:focus-visible img { transform: scale(1.03); }

/* Tilt variants for feature sections */
.tilt-left { transform: rotate(-4deg); }
.tilt-left:hover { transform: rotate(-2deg) translateY(-8px) scale(1.02); }
.tilt-right { transform: rotate(4deg); }
.tilt-right:hover { transform: rotate(2deg) translateY(-8px) scale(1.02); }

/* Dual mockup layout */
.dual-mockup { gap: 0; }
.dual-mockup .mockup-frame { width: 220px; }
.mockup-overlap {
  margin-left: -50px;
  margin-top: 40px;
  z-index: 2;
}

/* Feature-specific sizing */
.feature-showcase .mockup-frame { width: clamp(200px, 20vw, 260px); }
.feature-showcase .dual-mockup .mockup-frame { width: clamp(180px, 17vw, 220px); }

/* ── GALLERY ──────────────────────────────── */
.gallery-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg), var(--surface-2), var(--bg));
}

.gallery-filters {
  display: flex; justify-content: center;
  gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 99px;
  font-weight: 700; font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.filter-btn:hover { color: var(--text); border-color: var(--brand); }
.filter-btn.active {
  background: var(--brand); color: #040d0a;
  border-color: var(--brand);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.gallery-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.8rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}
.gallery-item:hover { transform: translateY(-10px); }

/* Gallery item entrance animation */
.gallery-item.hidden {
  opacity: 0; transform: scale(0.85) translateY(20px);
  pointer-events: none; position: absolute; visibility: hidden;
}
.gallery-item.visible {
  opacity: 1; transform: scale(1) translateY(0);
  position: relative; visibility: visible;
}

.gallery-frame {
  width: clamp(170px, 16vw, 210px);
  border-radius: 30px;
  border-width: 5px;
}

.gallery-label {
  font-size: 0.88rem; font-weight: 700;
  color: var(--text); text-align: center;
}

/* ── CTA SECTION ──────────────────────────── */
.cta-section { padding: 5rem 0 6rem; }

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-bg-pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(var(--brand-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(var(--brand-2-rgb), 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-family: "Marhey", cursive;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 1rem;
}
.cta-content p {
  color: var(--muted); font-size: 1.1rem;
  max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.7;
}

/* ── FOOTER ───────────────────────────────── */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--surface);
}

.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
  font-size: 1.8rem; color: var(--brand);
  font-family: "Marhey", cursive; margin-bottom: 0.5rem;
  display: block;
}
.footer-brand p { color: var(--muted); font-size: 0.95rem; }

.footer-links-grid { display: flex; gap: 4rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 {
  font-size: 0.85rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text); margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--muted); font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  padding-top: 2rem; text-align: center;
}
.footer-bottom p { color: var(--muted); font-size: 0.85rem; }

/* ── SCROLL REVEAL ANIMATIONS ─────────────── */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.fade-up { transform: translateY(60px); }
.reveal.fade-left { transform: translateX(-60px); }
.reveal.fade-right { transform: translateX(60px); }
.reveal.active { opacity: 1; transform: translate(0, 0); }

/* Staggered delays */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ── RTL SUPPORT ──────────────────────────── */
html[dir="rtl"] { text-align: right; }
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .feature-showcase { flex-direction: row-reverse; }
html[dir="rtl"] .feature-showcase.reverse { flex-direction: row; }
html[dir="rtl"] .store-btn svg { margin-right: 0; margin-left: 12px; }
html[dir="rtl"] .feature-list li { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .mockup-overlap { margin-left: 0; margin-right: -50px; }
html[dir="rtl"] .footer-inner { flex-direction: row-reverse; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .feature-showcase { gap: 3rem; }
  .feature-showcase .mockup-frame { width: clamp(180px, 22vw, 240px); }
  .feature-showcase .dual-mockup .mockup-frame { width: clamp(160px, 19vw, 200px); }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 8rem 0 0; }
  .hero-grid { flex-direction: column; text-align: center; gap: 3rem; min-height: auto; }
  .hero-content { max-width: 100%; }
  .hero .lead { margin: 0 auto 2.5rem; }
  .store-buttons { justify-content: center; }
  .user-count { text-align: center; }

  .phone-stack {
    width: 300px; height: 400px;
  }
  .phone-back { width: 150px; }
  .phone-mid { width: 180px; }
  .phone-front { width: 150px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .feature-showcase,
  .feature-showcase.reverse {
    flex-direction: column; text-align: center; gap: 2.5rem;
    padding: 3rem 0;
  }
  .feature-mockup { order: -1; }
  .feature-icon { margin: 0 auto 1rem; }
  .feature-list li { justify-content: center; text-align: left; }

  .dual-mockup .mockup-frame { width: clamp(160px, 38vw, 200px) !important; }
  .mockup-overlap { margin-left: -30px; margin-top: 30px; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.5rem; }
  .gallery-frame { width: clamp(140px, 36vw, 180px); }

  .cta-card { padding: 3.5rem 1.5rem; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links-grid { gap: 2.5rem; }

  /* RTL mobile overrides */
  html[dir="rtl"] .hero-grid,
  html[dir="rtl"] .feature-showcase,
  html[dir="rtl"] .feature-showcase.reverse { flex-direction: column; }
  html[dir="rtl"] .mockup-overlap { margin-right: -30px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .phone-stack { width: 250px; height: 350px; }
  .phone-back { width: 130px; }
  .phone-mid { width: 155px; }
  .phone-front { width: 130px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .gallery-frame { width: clamp(130px, 40vw, 160px); }
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 260px; justify-content: center; }
  .section-header h2 { font-size: 1.8rem; }
  .feature-content h3 { font-size: 1.5rem; }
  .tilt-left, .tilt-right { transform: none !important; }
  .tilt-left:hover, .tilt-right:hover { transform: translateY(-6px) scale(1.01) !important; }
}
