/* ==============================================
   GRAYTNA — Landing Page v2
   Primary: #0d92f4  |  Accent: #fccd2a
   ============================================== */

/* ── Custom Properties ── */
:root {
  --primary: #0d92f4;
  --primary-dark: #0a78d0;
  --primary-darker: #0a56c7;
  --primary-light: #e8f5fe;
  --accent: #fccd2a;
  --accent-dark: #e6b800;

  --bg: #ffffff;
  --bg-alt: #f8fafd;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --border: #e2e8f0;
  --border-2: #cbd5e1;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .12);
  --shadow-primary: 0 6px 28px rgba(13, 146, 244, .28);
  --shadow-accent: 0 6px 24px rgba(252, 205, 42, .38);

  --navbar-h: 72px;
  --pad: clamp(4.5rem, 10vw, 7rem);
  --container: 1160px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t: 0.28s;
  --t-slow: 0.5s;
}

/* Dark mode overrides */
[data-theme="dark"] {
  --bg: #0c1120;
  --bg-alt: #111827;
  --bg-card: #1a2233;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --text-4: #64748b;
  --border: #1e293b;
  --border-2: #334155;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .5);
  --primary-light: rgba(13, 146, 244, .15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  /* on html not body — avoids breaking position:fixed on iOS Safari */
}

body {
  font-family: 'inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--t), color var(--t);
}

[lang="ar"] body,
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4,
[lang="ar"] p,
[lang="ar"] a,
[lang="ar"] span,
[lang="ar"] label,
[lang="ar"] input,
[lang="ar"] textarea,
[lang="ar"] button {
  font-family: 'Noto Naskh Arabic', 'inter', sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4 {
  font-family: 'Noto Naskh Arabic', sans-serif;
  letter-spacing: 0;
}

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

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

ul {
  list-style: none;
}

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

input,
textarea,
select {
  font: inherit;
}

/* ── Utilities ── */
.section-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}

section:not(.hero) {
  padding: var(--pad) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(13, 146, 244, .2);
  padding: .3rem 1rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--text);
  margin-bottom: .85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-3);
  max-width: 540px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(13, 146, 244, .36);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: all var(--t) var(--ease);
  border: 2px solid transparent;
  min-width: 165px;
}

.store-btn:hover {
  background: #1e293b;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .store-btn {
  background: #fff;
  color: #0f172a;
}

[data-theme="dark"] .store-btn:hover {
  background: #f1f5f9;
}

.store-btn--google {
  background: #0f172a;
}

[data-theme="dark"] .store-btn--google {
  background: #f8fafc;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
}

.store-btn-sub {
  font-size: .68rem;
  opacity: .75;
  font-weight: 500;
  line-height: 1.2;
}

.store-btn-main {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.store-btn--light {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px);
}

.store-btn--light:hover {
  background: rgba(255, 255, 255, .25);
  transform: translateY(-3px);
}

/* ═════════════════════════════════════════════
   NAVBAR
═════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: transparent;
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}

.navbar.scrolled {
  background: var(--bg);
  /* fallback */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0, 0, 0, .06);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  width: 150px;
  height: 110px;
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-mark img {
  display: block;
  height: 52px;
  width: auto;
}

@media (max-width: 640px) {
  .logo-mark img {
    height: 44px;
  }
}

@media (max-width: 380px) {
  .logo-mark img {
    height: 38px;
  }
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Nav controls: no extra push on desktop (nav-links handles it with margin-left:auto) */
.nav-links a {
  padding: .45rem .8rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 8px;
  transition: color var(--t), background var(--t);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: var(--shadow-primary);
  margin-left: .5rem;
}

.nav-links .nav-cta:hover {
  background: var(--primary-dark);
  color: #fff;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: .2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .2rem .45rem;
}

.lang-btn {
  padding: .2rem .55rem;
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-3);
  transition: all var(--t);
  letter-spacing: .04em;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 146, 244, .3);
}

.lang-sep {
  color: var(--border-2);
  font-size: .7rem;
  user-select: none;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: all var(--t);
}

.theme-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(20deg) scale(1.05);
}

.sun-icon,
.moon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 17px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t);
  transform-origin: center;
}

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

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ═════════════════════════════════════════════
   HERO
═════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  padding: calc(var(--navbar-h) + 2rem) clamp(1rem, 5vw, 2.5rem) 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 0%, rgba(13, 146, 244, .12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 60%, rgba(252, 205, 42, .08) 0%, transparent 60%),
    var(--bg);
}

[data-theme="dark"] .hero-bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 60% 0%, rgba(13, 146, 244, .18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 60%, rgba(252, 205, 42, .08) 0%, transparent 60%),
    var(--bg);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  animation: spin-slow 20s linear infinite;
  border: 2px solid var(--primary);
}

[data-theme="dark"] .shape {
  opacity: .1;
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  animation-direction: normal;
}

.shape-2 {
  width: 300px;
  height: 300px;
  top: 40%;
  right: 5%;
  animation-direction: reverse;
  animation-duration: 30s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 5%;
  border-color: var(--accent);
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  flex: 1;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(13, 146, 244, .2);
  padding: .35rem 1rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

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

  50% {
    transform: scale(1.6);
    opacity: .6
  }
}

/* Hero headline */
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-3);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1.75rem;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .88rem;
  color: var(--text-3);
}

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

.rating-stars .half-star {
  opacity: .5;
}

.rating-text strong {
  color: var(--text-2);
  font-weight: 700;
}

/* Phone mockup */
.hero-phone-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 146, 244, .2) 0%, transparent 70%);
  filter: blur(30px);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: .6
  }

  50% {
    transform: scale(1.15);
    opacity: 1
  }
}

.phone-mockup {
  position: relative;
  z-index: 1;
}

.phone-frame {
  width: 240px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 36px;
  padding: 14px 10px;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(13, 146, 244, .06);
  position: relative;
}

.phone-notch {
  width: 60px;
  height: 22px;
  background: var(--text);
  border-radius: 20px;
  margin: 0 auto 14px;
  position: relative;
}

.phone-notch::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--text-3);
  border-radius: 50%;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  opacity: .4;
}

.phone-screen {
  padding: .25rem .25rem .5rem;
}

.screen-header {
  margin-bottom: 1rem;
}

.screen-greeting {
  display: block;
  font-size: .72rem;
  color: var(--text-3);
}

.screen-title {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}

.screen-course-card {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: .6rem .75rem;
  margin-bottom: .5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: .2rem .5rem;
  position: relative;
  overflow: hidden;
}

.course-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: var(--w);
  border-radius: 0 2px 2px 0;
}

.course-name {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-2);
}

.course-pct {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
}

.screen-stat-row {
  display: flex;
  gap: .4rem;
  margin-top: .75rem;
}

.screen-stat {
  flex: 1;
  background: var(--bg-alt);
  border-radius: 8px;
  padding: .4rem .3rem;
  text-align: center;
}

.ss-n {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  color: var(--text);
}

.ss-l {
  display: block;
  font-size: .58rem;
  color: var(--text-3);
}

/* Floating badges */
.phone-float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .5rem .9rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  color: var(--text-2);
}

.float-top {
  top: -1.5rem;
  right: -3.5rem;
  animation: float-y 3.5s ease-in-out infinite;
}

.float-bot {
  bottom: 1rem;
  left: -3.5rem;
  animation: float-y 3.5s ease-in-out infinite .5s reverse;
}

[dir="rtl"] .float-top {
  right: auto;
  left: -3.5rem;
}

[dir="rtl"] .float-bot {
  left: auto;
  right: -3.5rem;
}

@keyframes float-y {

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

  50% {
    transform: translateY(-8px)
  }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: .5;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: scroll-bounce 2s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes scroll-bounce {

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

  50% {
    transform: translateY(10px);
    opacity: .4
  }
}

/* ═════════════════════════════════════════════
   STATS
═════════════════════════════════════════════ */
.stats-section {
  padding: 4rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--t);
}

.stat-item:hover {
  background: var(--primary-light);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .1rem;
}

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

/* ═════════════════════════════════════════════
   FEATURES
═════════════════════════════════════════════ */
.features {
  background: var(--bg);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}

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

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--c);
  color: var(--ic);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--t) var(--ease);
}

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

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: .6rem;
  color: var(--text);
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-3);
  line-height: 1.7;
  flex: 1;
}

.feature-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--t);
}

.feature-card:hover .feature-link {
  gap: .6rem;
}

/* ═════════════════════════════════════════════
   SCREENSHOTS / CAROUSEL
═════════════════════════════════════════════ */
.screenshots {
  background: var(--bg-alt);
  padding-bottom: 3rem;
}

.screenshots .section-container {
  padding-bottom: 0;
}

.carousel-track-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0 1.5rem;
  cursor: grab;
  user-select: none;
}

.carousel-track-wrapper:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 calc(50vw - min(580px, 50vw));
  transition: transform .5s var(--ease-out);
  will-change: transform;
}

.carousel-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.carousel-phone {
  width: 160px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 10px 8px;
  box-shadow: var(--shadow-md);
  transition: transform var(--t) var(--ease), box-shadow var(--t);
}

.carousel-item.active .carousel-phone {
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(13, 146, 244, .2);
}

.cp-notch {
  width: 40px;
  height: 16px;
  background: var(--text);
  border-radius: 10px;
  margin: 0 auto 8px;
}

.cp-screen {
  position: relative;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.cp-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.cp-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
}

.cp-icon {
  font-size: 2.5rem;
}

.carousel-caption {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
  text-align: center;
}

.carousel-item.active .carousel-caption {
  color: var(--primary);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .5rem 0 2rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: .5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--border-2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .3s var(--ease);
}

.carousel-dot.active {
  width: 24px;
  background: var(--primary);
}

/* ═════════════════════════════════════════════
   FACEBOOK VIDEO SECTION
═════════════════════════════════════════════ */
.video-section {
  background: var(--bg);
  padding: 3rem 0 4rem;
}

.video-form {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin: 0 auto 1.5rem;
  max-width: 720px;
}

.video-form input {
  flex: 1 1 320px;
  min-width: 260px;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
}

.video-preview {
  display: grid;
  place-content: center;
  width: min(100%, 840px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-preview p {
  color: var(--text-3);
  padding: 1rem;
}

/* ═════════════════════════════════════════════
   HOW IT WORKS
═════════════════════════════════════════════ */
.how-it-works {
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--t);
  position: relative;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(13, 146, 244, .04), transparent);
  opacity: 0;
  transition: opacity var(--t);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 146, 244, .25);
}

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

.step-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: .2rem .65rem;
  border-radius: 20px;
  letter-spacing: .04em;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform var(--t);
}

.step-card:hover .step-icon {
  transform: scale(1.12);
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--text);
}

.step-card p {
  font-size: .88rem;
  color: var(--text-3);
  line-height: 1.65;
}

.step-arrow {
  color: var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[dir="rtl"] .step-arrow {
  transform: scaleX(-1);
}

/* ═════════════════════════════════════════════
   TESTIMONIALS
═════════════════════════════════════════════ */
.testimonials {
  background: var(--bg-alt);
}

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

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.testi-header {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testi-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
}

.testi-role {
  font-size: .78rem;
  color: var(--text-3);
}

.testi-stars {
  color: var(--accent);
  font-size: .95rem;
  letter-spacing: .1em;
}

.testi-text {
  font-size: .9rem;
  color: var(--text-3);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

/* ═════════════════════════════════════════════
   DOWNLOAD
═════════════════════════════════════════════ */
.download-section {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 50%, #1a9ef5 100%);
  position: relative;
  overflow: hidden;
  padding: var(--pad) 0;
  color: #fff;
}

.download-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dl-blob {
  position: absolute;
  border-radius: 50%;
  animation: float-blob 8s ease-in-out infinite;
}

.dl-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(252, 205, 42, .15), transparent 70%);
  top: -100px;
  right: -100px;
}

.dl-blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%);
  bottom: -50px;
  left: -50px;
  animation-delay: -4s;
}

@keyframes float-blob {

  0%,
  100% {
    transform: scale(1) translate(0, 0)
  }

  50% {
    transform: scale(1.1) translate(20px, -20px)
  }
}

.download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.download-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
}

.download-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2rem;
  max-width: 440px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1.5rem;
}

.download-rating {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}

.dl-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: .05em;
}

/* Download phones */
.download-phones {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-phone {
  width: 140px;
  background: rgba(255, 255, 255, .15);
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 28px;
  padding: 10px 8px;
  position: absolute;
}

.dl-phone-screen {
  height: 220px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dl-phone-back {
  transform: rotate(-8deg) translateX(-40px);
  opacity: .7;
  z-index: 0;
}

.dl-phone-front {
  transform: rotate(4deg) translateX(20px);
  z-index: 1;
  background: rgba(255, 255, 255, .25);
  box-shadow: var(--shadow-lg);
}

/* ═════════════════════════════════════════════
   CONTACT
═════════════════════════════════════════════ */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-group input,
.form-group textarea {
  padding: .85rem 1.1rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(13, 146, 244, .12);
}

.contact-form .btn {
  align-self: flex-start;
  position: relative;
}

[dir="rtl"] .contact-form .btn {
  align-self: flex-start;
}

.btn-loading {
  display: flex;
  align-items: center;
}

.spinner {
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-feedback {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
}

.form-feedback.success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #15803d;
}

.form-feedback.error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #dc2626;
}

[data-theme="dark"] .form-feedback.success {
  color: #4ade80;
}

[data-theme="dark"] .form-feedback.error {
  color: #f87171;
}

/* Map */
.contact-map {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.map-embed {
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .9rem;
  color: var(--text-3);
}

.contact-info-item a {
  color: var(--primary);
  font-weight: 600;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-info-item svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* ═════════════════════════════════════════════
   FOOTER
═════════════════════════════════════════════ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: .88rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 270px;
}

.footer-social {
  display: flex;
  gap: .6rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all var(--t);
}

.social-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
  transform: translateY(-2px);
}

.social-yt:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
  transform: translateY(-2px);
}

.social-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

[lang="ar"] .footer-col h4 {
  letter-spacing: 0;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.footer-col a {
  font-size: .88rem;
  color: var(--text-3);
  transition: color var(--t);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-4);
}

.footer-made {
  font-weight: 600;
  color: var(--primary);
}

/* ═════════════════════════════════════════════
   SCROLL TOP
═════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--t);
  z-index: 999;
}

[dir="rtl"] .scroll-top {
  right: auto;
  left: 1.75rem;
}

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

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ═════════════════════════════════════════════
   AOS (Animate on scroll)
═════════════════════════════════════════════ */
.aos-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .65s var(--ease-out),
    transform .65s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.aos-fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
}

.aos-fade-up.visible,
.aos-fade-left.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ═════════════════════════════════════════════
   RTL
═════════════════════════════════════════════ */
[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
  /* desktop only — on mobile nav-links is display:none */
}

[dir="rtl"] .hero-buttons {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-rating {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-sub {
  margin-left: 0;
  margin-right: 0;
}

[dir="rtl"] .feature-card::after {
  transform-origin: right;
}

[dir="rtl"] .feature-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-link svg {
  transform: scaleX(-1);
}

[dir="rtl"] .contact-form .btn {
  align-self: flex-start;
}

[dir="rtl"] .carousel-track {
  direction: rtl;
}

[dir="rtl"] .aos-fade-left {
  transform: translateX(-40px);
}

/* ═════════════════════════════════════════════
   RESPONSIVE
═════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .download-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-phones {
    display: none;
  }

  .download-text p {
    max-width: 100%;
  }

  .download-buttons {
    justify-content: center;
  }

  .download-rating {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  [dir="rtl"] .hero-inner {
    text-align: center;
  }

  /* Ensure hero-content is a flex column so inline-flex children center */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  [dir="rtl"] .hero-content {
    align-items: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-phone-wrapper {
    order: -1;
    padding: 2.5rem 1rem;
  }

  /* Float badges: centered above/below the phone, no horizontal overflow */
  .float-top {
    top: -1.25rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .float-bot {
    bottom: -1.25rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  [dir="rtl"] .float-top,
  [dir="rtl"] .float-bot {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* RTL: hero-sub must stay centered on mobile */
  [dir="rtl"] .hero-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 420px;
    margin: 0 auto;
  }

  .step-arrow {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --navbar-h: 60px;
  }

  /* ── Navbar layout ── */
  .nav-container {
    padding: 0 1rem;
    gap: 0;
    justify-content: space-between;
  }

  .nav-controls {
    gap: .35rem;
    margin-left: auto;
    /* LTR: push to right */
  }

  [dir="rtl"] .nav-controls {
    margin-left: 0;
    margin-right: auto;
    /* RTL: push to left */
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .lang-toggle {
    padding: .15rem .35rem;
  }

  .lang-btn {
    padding: .15rem .45rem;
    font-size: .72rem;
  }

  .hamburger {
    display: flex;
  }

  /* ── Mobile nav menu dropdown ── */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    margin-left: 0;
    background: var(--bg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
    border-radius: 0 0 20px 20px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  /* Regular links — left aligned, full width */
  .nav-links a {
    padding: .9rem .5rem;
    text-align: left;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-of-type:not(.nav-cta) {
    border-bottom: none;
  }

  .nav-links a:active,
  .nav-links a:hover {
    background: none;
    color: var(--primary);
  }

  /* CTA button — full width, dark pill at bottom like screenshot */
  .nav-links .nav-cta {
    display: block;
    margin: 1.1rem 0 0;
    padding: .9rem 1rem;
    border-radius: 12px;
    text-align: center;
    background: var(--text);
    color: var(--bg);
    font-size: 1rem;
    font-weight: 700;
    border-bottom: none;
    box-shadow: none;
    letter-spacing: .01em;
  }

  [data-theme="dark"] .nav-links .nav-cta {
    background: #fff;
    color: #0f172a;
  }

  .nav-links .nav-cta:hover {
    background: var(--primary);
    color: #fff;
  }

  /* RTL: dropdown direction + links align right */
  [dir="rtl"] .nav-links {
    margin-right: 0;
    /* cancel desktop margin-right:auto inside mobile dropdown */
  }

  [dir="rtl"] .nav-links a {
    text-align: right;
  }

  [dir="rtl"] .nav-links .nav-cta {
    text-align: center;
  }

  /* ── Hero ── */
  .hero {
    padding-top: calc(var(--navbar-h) + 1.25rem);
    padding-bottom: 2.5rem;
  }

  .hero-inner {
    gap: 1.75rem;
  }

  .hero-phone-wrapper {
    padding: 1.5rem .5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: .65rem;
  }

  [dir="rtl"] .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .store-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .phone-float-badge {
    display: none;
  }

  /* ── Other sections ── */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .download-buttons .store-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .scroll-top {
    bottom: 1rem;
    right: 1rem;
  }

  [dir="rtl"] .scroll-top {
    right: auto;
    left: 1rem;
  }
}

/* ═════════════════════════════════════════════
   NEWSLETTER POPUP
═════════════════════════════════════════════ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.popup-overlay:not([hidden]) {
  opacity: 1;
}

.popup-overlay[hidden] {
  display: none;
}

.popup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(.88) translateY(16px);
  transition: transform .4s var(--ease-out);
}

.popup-overlay:not([hidden]) .popup-card {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}

[dir="rtl"] .popup-close {
  right: auto;
  left: 1rem;
}

.popup-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.popup-icon {
  font-size: 2.8rem;
  margin-bottom: .75rem;
}

.popup-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .6rem;
}

.popup-card p {
  font-size: .9rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.popup-form {
  display: flex;
  gap: .6rem;
  margin-bottom: .85rem;
}

.popup-form input {
  flex: 1;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font-size: .9rem;
  transition: border-color var(--t), box-shadow var(--t);
}

.popup-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 146, 244, .12);
}

.popup-submit {
  padding: .75rem 1.25rem;
  flex-shrink: 0;
  font-size: .88rem;
}

.popup-feedback {
  padding: .7rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .6rem;
}

.popup-feedback.success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #15803d;
}

.popup-feedback.error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #dc2626;
}

[data-theme="dark"] .popup-feedback.success {
  color: #4ade80;
}

[data-theme="dark"] .popup-feedback.error {
  color: #f87171;
}

.popup-note {
  font-size: .76rem;
  color: var(--text-4);
}

@media (max-width: 480px) {

  /* ── Hero ── */
  .hero {
    padding-top: calc(var(--navbar-h) + 1rem);
    padding-bottom: 2rem;
  }

  .hero-inner {
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.2rem);
  }

  .hero-sub {
    font-size: .92rem;
    line-height: 1.65;
  }

  .hero-badge {
    font-size: .74rem;
    padding: .28rem .75rem;
  }

  .hero-phone-wrapper {
    padding: 1rem .25rem;
  }

  /* ── Phone mockup ── */
  .phone-frame {
    width: 195px;
  }

  .phone-glow {
    width: 210px;
    height: 210px;
  }

  /* ── Store buttons ── */
  .hero-buttons .store-btn {
    max-width: 230px;
    padding: .7rem 1.25rem;
    gap: .6rem;
  }

  .store-btn-sub {
    font-size: .62rem;
  }

  .store-btn-main {
    font-size: .9rem;
  }

  /* ── Popup ── */
  .popup-form {
    flex-direction: column;
  }

  .popup-submit {
    width: 100%;
  }

  .popup-card {
    padding: 1.75rem 1.1rem 1.25rem;
    max-width: calc(100vw - 2rem);
  }
}

@media (max-width: 380px) {
  :root {
    --navbar-h: 56px;
  }

  .nav-container {
    padding: 0 .75rem;
  }

  .lang-sep {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 1.9rem);
  }

  .phone-frame {
    width: 170px;
  }

  .phone-glow {
    width: 185px;
    height: 185px;
  }

  .hero-buttons .store-btn {
    max-width: 200px;
  }
}

/* ═════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
═════════════════════════════════════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
  transition: transform var(--t) var(--ease), box-shadow var(--t);
  text-decoration: none;
}

[dir="rtl"] .whatsapp-btn {
  right: auto;
  left: 1.75rem;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .55);
}

.whatsapp-btn svg {
  flex-shrink: 0;
}

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, .4);
  animation: wa-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

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

  70% {
    transform: scale(1.7);
    opacity: 0;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* Adjust scroll-top when WhatsApp is present */
.scroll-top {
  bottom: 1.75rem;
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Videos ── */
.videos {
  padding: var(--pad) 0;
  background: var(--bg);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease);
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.video-thumb {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  text-decoration: none;
}

.video-thumb-bg {
  position: absolute;
  inset: 0;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-slow) var(--ease);
}

.video-thumb:hover .video-thumb-bg {
  transform: scale(1.04);
}

.video-thumb-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: .85;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .25));
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
}

.video-play-btn>svg {
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, .45);
  border-radius: 50%;
  padding: 16px;
  backdrop-filter: blur(4px);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.video-thumb:hover .video-play-btn>svg {
  background: rgba(0, 0, 0, .65);
  transform: scale(1.1);
}

.video-fb-badge {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  background: #1877f2;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .6rem;
  border-radius: 20px;
  letter-spacing: .02em;
  z-index: 2;
}

[dir="rtl"] .video-fb-badge {
  right: auto;
  left: .75rem;
}

.video-info {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.video-desc {
  font-size: .875rem;
  color: var(--text-3);
  line-height: 1.6;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t) var(--ease), gap var(--t) var(--ease);
}

.video-link:hover {
  color: var(--primary-dark);
  gap: .6rem;
}

/* ── FAQ ── */
.faq {
  padding: var(--pad) 0;
  background: var(--bg-alt);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.faq-item:hover,
.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--t) var(--ease);
}

[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-item.open .faq-question {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.faq-icon::before {
  width: 10px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 10px;
}

.faq-item.open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item.open .faq-icon {
  background: var(--primary);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
  background: #fff;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-2);
  line-height: 1.7;
  font-size: .95rem;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
}

/* ═════════════════════════════════════════════
   GAMIFICATION SECTION
═════════════════════════════════════════════ */
.gamification {
  padding: var(--pad) 0;
  background: var(--bg-alt);
}

.gamif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

/* ── Base card ── */
.gamif-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.gamif-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gamif-card-bg {
  position: absolute;
  inset: 0;
  opacity: .05;
  pointer-events: none;
  border-radius: inherit;
}

.gamif-emoji {
  font-size: 2rem;
  display: block;
  line-height: 1;
  animation: emoji-bounce 2.5s ease-in-out infinite;
}

@keyframes emoji-bounce {

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

  40% {
    transform: translateY(-6px) rotate(-6deg);
  }

  60% {
    transform: translateY(-4px) rotate(4deg);
  }
}

/* ── Streak ── */
.gamif-streak .gamif-card-bg {
  background: linear-gradient(135deg, #ff9a00, #ff4500);
}

.gamif-streak {
  border-color: rgba(255, 154, 0, .25);
}

.gamif-icon-wrap {
  margin-bottom: .75rem;
}

.streak-counter {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.streak-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff9a00, #ff4500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  animation: pulse-number 2s ease-in-out infinite;
}

@keyframes pulse-number {

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

  50% {
    transform: scale(1.06);
  }
}

.streak-label {
  font-size: .82rem;
  color: var(--text-3);
  font-weight: 500;
}

.streak-bar-row {
  display: flex;
  gap: .35rem;
}

.streak-day {
  flex: 1;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  padding: .4rem 0;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-4);
  transition: all .2s;
}

.streak-day.active {
  background: linear-gradient(135deg, #ff9a00, #ff4500);
  color: #fff;
  animation: streak-pop .4s var(--ease) both;
}

.streak-day.today {
  box-shadow: 0 0 0 2px #ff9a00, 0 0 12px rgba(255, 154, 0, .4);
}

@keyframes streak-pop {
  from {
    transform: scale(.8);
    opacity: .5;
  }

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

/* ── XP ── */
.gamif-xp .gamif-card-bg {
  background: linear-gradient(135deg, #a259ff, #4e7aff);
}

.gamif-xp {
  border-color: rgba(162, 89, 255, .2);
}

.xp-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}

.xp-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-3);
}

.xp-amount {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a259ff, #4e7aff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.xp-amount span {
  font-size: 1rem;
  font-weight: 600;
}

.xp-bar-wrap {
  margin-bottom: .75rem;
}

.xp-bar {
  height: 10px;
  background: var(--bg-alt);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .3rem;
}

.xp-fill {
  height: 100%;
  width: var(--xp);
  background: linear-gradient(90deg, #a259ff, #4e7aff);
  border-radius: 10px;
  animation: xp-grow 1.4s var(--ease-out) both;
}

@keyframes xp-grow {
  from {
    width: 0;
  }

  to {
    width: var(--xp);
  }
}

.xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--text-4);
}

.xp-badge {
  display: inline-block;
  background: linear-gradient(135deg, #a259ff22, #4e7aff22);
  border: 1px solid #a259ff44;
  color: #a259ff;
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 20px;
}

/* ── Hearts ── */
.gamif-hearts .gamif-card-bg {
  background: linear-gradient(135deg, #ff4b77, #ff0040);
}

.gamif-hearts {
  border-color: rgba(255, 75, 119, .2);
}

.hearts-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.hearts-row {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.heart {
  font-size: 1.8rem;
  animation: heart-beat 1.8s ease-in-out infinite;
}

.heart:nth-child(2) {
  animation-delay: .15s;
}

.heart:nth-child(3) {
  animation-delay: .30s;
}

.heart:nth-child(4) {
  animation-delay: .45s;
}

.heart.empty {
  opacity: .25;
  animation: none;
  filter: grayscale(1);
}

@keyframes heart-beat {

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

  15% {
    transform: scale(1.2);
  }

  30% {
    transform: scale(1);
  }
}

.hearts-regen {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-3);
  background: var(--bg-alt);
  padding: .45rem .75rem;
  border-radius: 10px;
}

.regen-icon {
  font-size: 1rem;
}

/* ── League ── */
.gamif-league .gamif-card-bg {
  background: linear-gradient(135deg, #fccd2a, #ff9a00);
}

.gamif-league {
  border-color: rgba(252, 205, 42, .3);
}

.league-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.league-trophy {
  font-size: 2.2rem;
  animation: trophy-spin 3s ease-in-out infinite;
}

@keyframes trophy-spin {

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

  50% {
    transform: rotate(8deg) scale(1.1);
  }
}

.league-name {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fccd2a, #ff9a00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.league-sub {
  font-size: .75rem;
  color: var(--text-3);
}

.league-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: .5rem;
  height: 110px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  flex: 1;
}

.podium-crown {
  font-size: 1.1rem;
  animation: crown-bounce 1.5s ease-in-out infinite;
}

@keyframes crown-bounce {

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

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

.podium-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  color: var(--text-2);
}

.podium-avatar.gold {
  background: linear-gradient(135deg, #fccd2a, #ff9a00);
  border-color: #fccd2a;
  color: #fff;
  width: 46px;
  height: 46px;
  font-size: .8rem;
  box-shadow: 0 0 0 3px rgba(252, 205, 42, .3), 0 4px 16px rgba(252, 205, 42, .4);
}

.podium-score {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-2);
}

.podium-rank {
  width: 100%;
  text-align: center;
  font-size: .65rem;
  font-weight: 800;
  padding: .3rem 0;
  border-radius: 8px 8px 0 0;
  color: #fff;
}

.podium-1 .podium-rank {
  background: linear-gradient(135deg, #fccd2a, #ff9a00);
  height: 52px;
}

.podium-2 .podium-rank {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  height: 36px;
}

.podium-3 .podium-rank {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  height: 24px;
}

/* ── Badges ── */
.gamif-badges .gamif-card-bg {
  background: linear-gradient(135deg, #00d4aa, #0d92f4);
}

.gamif-badges {
  border-color: rgba(0, 212, 170, .2);
}

.badges-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 1rem;
}

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

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  background: var(--bg-alt);
  border-radius: 12px;
  padding: .65rem .3rem;
  font-size: 1.4rem;
  transition: transform .25s var(--ease);
  border: 1px solid transparent;
}

.badge-item.unlocked {
  border-color: rgba(0, 212, 170, .2);
  animation: badge-glow 3s ease-in-out infinite;
}

.badge-item.unlocked:hover {
  transform: scale(1.1) rotate(-3deg);
}

.badge-item.locked {
  opacity: .35;
  filter: grayscale(1);
}

@keyframes badge-glow {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(0, 212, 170, 0);
  }

  50% {
    box-shadow: 0 0 12px rgba(0, 212, 170, .25);
  }
}

.badge-item:nth-child(1) {
  animation-delay: 0s;
}

.badge-item:nth-child(2) {
  animation-delay: .5s;
}

.badge-item:nth-child(3) {
  animation-delay: 1s;
}

.badge-item:nth-child(4) {
  animation-delay: 1.5s;
}

.badge-name {
  font-size: .6rem;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
}

/* ── Daily challenge ── */
.gamif-challenge .gamif-card-bg {
  background: linear-gradient(135deg, #0d92f4, #0a56c7);
}

.gamif-challenge {
  border-color: rgba(13, 146, 244, .2);
}

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

.challenge-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.challenge-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.1rem;
}

.challenge-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  color: var(--text-3);
  padding: .4rem .6rem;
  border-radius: 10px;
  background: var(--bg-alt);
}

.challenge-item.done {
  color: var(--text-2);
}

.challenge-item.done span:not(.challenge-check):not(.challenge-xp) {
  text-decoration: line-through;
  opacity: .6;
}

.challenge-check {
  font-size: .85rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #22c55e;
  color: #fff;
  font-size: .65rem;
}

.challenge-check.pending {
  background: var(--border);
  color: var(--text-4);
}

.challenge-xp {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.challenge-progress-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.challenge-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
}

.challenge-progress-fill {
  height: 100%;
  width: var(--p);
  background: linear-gradient(90deg, #0d92f4, #0a56c7);
  border-radius: 8px;
  animation: xp-grow 1.4s var(--ease-out) both;
}

.challenge-pct {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
}

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

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

  .gamif-card {
    padding: 1.25rem;
  }
}

/* ═════════════════════════════════════════════
   ILLUSTRATION SECTION
═════════════════════════════════════════════ */
.illus-section {
  padding: var(--pad) 0;
  background: var(--bg);
  overflow: clip;
}

/* ── Illustration scene ── */
.illus-scene {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0 2rem;
}

.illus-main {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .08));
}

/* Character bob animation */
.illus-char {
  animation: illus-bob 3.2s ease-in-out infinite;
  transform-origin: 348px 190px;
}

@keyframes illus-bob {

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

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

/* Speech bubble pulse */
.illus-bubble {
  animation: illus-bubble-in .8s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes illus-bubble-in {
  from {
    opacity: 0;
    transform: scale(.6) translateY(8px);
  }

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

/* Floating decorative elements */
.illus-float {
  position: absolute;
  pointer-events: none;
  opacity: .85;
}

.illus-f1 {
  top: 8%;
  left: 6%;
  animation: illus-float 3.4s ease-in-out infinite;
}

.illus-f2 {
  top: 12%;
  right: 8%;
  animation: illus-float 4s ease-in-out infinite .6s;
}

.illus-f3 {
  bottom: 18%;
  left: 4%;
  animation: illus-float 3.8s ease-in-out infinite 1.1s;
}

.illus-f4 {
  bottom: 22%;
  right: 5%;
  animation: illus-float 3.2s ease-in-out infinite 1.7s;
}

@keyframes illus-float {

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

  50% {
    transform: translateY(-14px) rotate(6deg);
  }
}

/* ── Activity cards ── */
.lw-activities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 1rem;
}

.lw-activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  cursor: default;
}

.lw-activity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.lw-act-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform .3s var(--ease);
}

.lw-activity-card:hover .lw-act-icon {
  transform: scale(1.15) rotate(-5deg);
}

.lw-act-body h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
}

.lw-act-body p {
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .lw-activities {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .illus-float {
    display: none;
  }

  .lw-activities {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }
}

@media (max-width: 480px) {
  .lw-activities {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .aos-fade-up,
  .aos-fade-left {
    opacity: 1;
    transform: none;
  }
}

.btn-loading {
  display: none;
}