@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-Variable.ttf") format("truetype-variations"),
       url("../fonts/Cairo-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --radius: 0.875rem;
  --background: #0d1b3e;
  --foreground: #f5f5f2;
  --card: #15244c;
  --card-foreground: #f5f5f2;
  --popover: #112040;
  --primary: #c9a84c;
  --primary-foreground: #0d1b3e;
  --primary-glow: #e0c578;
  --secondary: #1c2e58;
  --muted: #17274f;
  --muted-foreground: #aeb6c6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --whatsapp: #25d366;
  --border: rgba(42, 58, 102, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --brand-beige: #d8cbb3;
  --brand-slate: #5b6475;
  --brand-sky: #bed7f1;
  --page-black: #070d1c;
  --brand-navy: #0d1b3e;
  --glass-blur: 8px;
  --header-h: 64px;

  --page-glow: radial-gradient(1200px 600px at 20% -10%, rgba(201, 168, 76, 0.16), transparent 60%);
  --page-glow-phone: radial-gradient(700px 400px at 20% -10%, rgba(201, 168, 76, 0.16), transparent 60%);
  --gradient-hero: var(--page-glow),
                   linear-gradient(180deg, var(--brand-navy) 0, var(--brand-navy) 20rem, var(--page-black) 38rem);
  --gradient-hero-phone: var(--page-glow-phone),
                         linear-gradient(180deg, var(--brand-navy) 0, var(--brand-navy) 14rem, var(--page-black) 28rem);
  --gradient-primary: linear-gradient(135deg, #d8b85c, #c09a38);
  --gradient-card: linear-gradient(160deg, rgba(21, 36, 76, 0.85), rgba(14, 27, 62, 0.85));
  --shadow-glow: 0 10px 40px -10px rgba(201, 168, 76, 0.45);
  --shadow-card: 0 8px 30px -12px rgba(4, 8, 20, 0.6);
  --shadow-card-soft: 0 18px 40px -20px rgba(13, 27, 62, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  :root {
    --header-h: 150px;
  }
}

@media (min-width: 1280px) {
  :root {
    --header-h: 88px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background-color: var(--page-black);
  color: var(--foreground);
  font-family: "Cairo", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-variation-settings: "slnt" 0;
  font-synthesis: weight;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--gradient-hero);
  background-color: var(--page-black);
  background-repeat: no-repeat;
  color: var(--foreground);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

body.has-home-bg {
  background: var(--page-black);
}

@media (max-width: 767px) {
  body:not(.has-home-bg) {
    background: var(--gradient-hero-phone);
    background-color: var(--page-black);
    background-repeat: no-repeat;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Exact Home Page Navy -> Obsidian Fade (from .home-page-bg in styles.css) */
.home-page-bg {
  background:
    var(--page-glow),
    linear-gradient(
      180deg,
      var(--brand-navy) 0,
      var(--brand-navy) var(--fade-start, 36rem),
      var(--page-black) calc(var(--fade-start, 36rem) + 16rem)
    );
  background-repeat: no-repeat;
}

@media (max-width: 767px) {
  .home-page-bg {
    background:
      var(--page-glow-phone),
      linear-gradient(
        180deg,
        var(--brand-navy) 0,
        var(--brand-navy) var(--fade-start, 28rem),
        var(--page-black) calc(var(--fade-start, 28rem) + 12rem)
      );
    background-repeat: no-repeat;
  }
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

html[lang="ar"] [data-lang="en"],
html[lang="en"] [data-lang="ar"] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 3rem;
  }
}

/* ── Exact Liquid Glass (.lg, .glass, .lg-refract, .lg-pill, .lg-soft) ── */
.lg,
.glass {
  background-color: rgb(13 27 62 / 0.34);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%) brightness(1.06);
  backdrop-filter: blur(var(--glass-blur)) saturate(190%) brightness(1.06);
  border: 1px solid rgb(255 255 255 / 0.14);
  box-shadow:
    inset 0 1px 0.5px rgb(255 255 255 / 0.55),
    inset 0 -1px 0.5px rgb(255 255 255 / 0.12),
    inset 1px 0 0.5px rgb(255 255 255 / 0.1),
    inset -1px 0 0.5px rgb(255 255 255 / 0.1),
    0 8px 24px -10px rgb(0 0 0 / 0.55);
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
}

.lg-refract {
  -webkit-backdrop-filter: var(--lg-refract) blur(3px) saturate(190%) brightness(1.06);
  backdrop-filter: var(--lg-refract) blur(3px) saturate(190%) brightness(1.06);
}

.lg-pill {
  background-color: rgb(255 255 255 / 0.1);
  background-image: radial-gradient(closest-side, rgb(201 168 76 / 0.22), transparent);
  border: 1px solid rgb(255 255 255 / 0.18);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.3),
    0 4px 14px -6px rgb(0 0 0 / 0.5);
}

.lg .lg-pill {
  background-color: rgb(13 27 62 / 0.6);
  background-image: radial-gradient(closest-side, rgb(201 168 76 / 0.2), transparent);
  border-color: rgb(255 255 255 / 0.2);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.4);
}

.lg-soft {
  background-color: rgb(255 255 255 / 0.05);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.015));
  border: 1px solid rgb(255 255 255 / 0.13);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 6px 18px -12px rgb(0 0 0 / 0.7);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Floating Header (identical to Header.tsx) ────────────────────────── */
.floating-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  pointer-events: none;
}

.header-bar {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  height: 4rem;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

@media (min-width: 768px) {
  .header-bar {
    height: 5rem;
    padding-top: 1rem;
    padding-inline: 1rem;
  }
}

.header-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.header-action-pill {
  display: inline-flex;
  height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 9999px;
  padding-inline: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

@media (min-width: 640px) {
  .header-action-pill {
    font-size: 0.86rem;
    padding-inline: 0.9rem;
  }
}

.header-action-pill:active {
  transform: scale(0.95);
}

.header-mobile-hide {
  display: none;
}

@media (min-width: 640px) {
  .header-mobile-hide {
    display: inline;
  }
}

.header-mobile-only {
  display: inline;
}

@media (min-width: 640px) {
  .header-mobile-only {
    display: none;
  }
}

.header-center-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1280px) {
  .header-center-logo {
    display: none;
  }
}

.header-capsule-nav {
  display: none;
  height: 2.75rem;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.25rem;
}

@media (min-width: 1280px) {
  .header-capsule-nav {
    display: flex;
  }
}

.header-capsule-logo {
  display: flex;
  height: 100%;
  flex-shrink: 0;
  align-items: center;
  padding-inline-start: 1rem;
  padding-inline-end: 0.75rem;
}

.header-capsule-divider {
  margin-inline: 0.25rem;
  height: 1.5rem;
  width: 1px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
}

.header-nav-item {
  display: flex;
  height: 100%;
  flex-shrink: 0;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding-inline: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.header-nav-item:hover {
  color: #fff;
}

.header-nav-item.is-active {
  color: #fff;
}

.header-right-capsule {
  display: inline-flex;
  height: 2rem;
  align-items: center;
  border-radius: 9999px;
}

.lang-circle {
  display: grid;
  height: 2rem;
  width: 2rem;
  place-items: center;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.lang-circle:active {
  transform: scale(0.95);
}

/* Tablet Secondary Nav Row (768px - 1279px) */
.tablet-nav-row {
  pointer-events: none;
  position: relative;
  max-width: 80rem;
  margin-inline: auto;
  margin-top: 0.75rem;
  display: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.tablet-nav-row::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .tablet-nav-row {
    display: block;
  }
}

.tablet-nav-inner {
  pointer-events: auto;
  margin-inline: auto;
  display: flex;
  height: 2.75rem;
  width: max-content;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.25rem;
}

/* Header Logo Morph Halves (HeaderLogo.tsx) */
.logo-morph-box {
  position: relative;
  display: inline-block;
  aspect-ratio: 100.53 / 29.76;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.logo-morph-box.size-top {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 640px) {
  .logo-morph-box.size-top {
    height: 2.75rem;
  }
}

@media (min-width: 768px) {
  .logo-morph-box.size-top {
    height: 3rem;
  }
}

.logo-morph-box.size-cap {
  height: 1.5rem;
  width: auto;
}

.logo-half {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  transform-origin: top left;
}

.logo-half-play {
  clip-path: inset(0 64.8% 0 0);
}

.logo-half-podz {
  clip-path: inset(0 0 0 62.4%);
}

/* ── Exact Hero Section + Plain Pattern + Octopus (index.tsx + HeroPattern.tsx) ── */
.hero-section {
  position: relative;
  overflow-x: clip;
  padding-inline: 1.25rem;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 2.25rem;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding-inline: 3rem;
    padding-top: calc(var(--header-h) + 2.25rem);
    padding-bottom: 3rem;
  }
}

.hero-pattern-mask {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 0;
  bottom: -6rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 90px, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 90px, black 70%, transparent 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  --tile-w: 560px;
  --tile-h: 270px;
  --tile: url("../brand/pattern-tile-en.svg");
}

html[dir="rtl"] .hero-pattern {
  --tile: url("../brand/pattern-tile-ar.svg");
}

@media (min-width: 768px) {
  .hero-pattern {
    --tile-w: 750px;
    --tile-h: 361px;
  }
}

.hero-pattern__tiles {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + var(--tile-w));
  height: calc(100% + var(--tile-h));
  -webkit-mask-image: var(--tile);
  mask-image: var(--tile);
  -webkit-mask-size: var(--tile-w) var(--tile-h);
  mask-size: var(--tile-w) var(--tile-h);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  will-change: transform;
  animation: hero-pattern-drift 140s linear infinite;
}

/* Exact match to `HeroPattern plain`: soft off-white #f5f5f2 at 0.06 opacity, NO gold blotch */
.hero-pattern__base {
  background-color: #f5f5f2;
  opacity: 0.06;
}

@keyframes hero-pattern-drift {
  from { transform: translate3d(calc(var(--tile-w) * -1), calc(var(--tile-h) * -1), 0); }
  to { transform: translate3d(0, 0, 0); }
}

.hero-center-stack {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  display: flex;
  width: 100%;
  max-width: 36rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-octopus-box {
  width: 6rem;
  aspect-ratio: 1053 / 1224;
}

@media (min-width: 768px) {
  .hero-octopus-box {
    width: 8rem;
  }
}

.octo-bob {
  animation: octo-bob 3.4s ease-in-out infinite;
}

.octo-flying {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 39;
  transform-origin: top left;
  pointer-events: none;
  animation: octo-in 0.6s ease-out both;
}

@keyframes octo-bob {
  50% { transform: translateY(-6%) rotate(-3deg); }
}

@keyframes octo-in {
  from { opacity: 0; }
}

.hero-today-lead {
  margin: 1rem 0 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .hero-today-lead {
    font-size: 2.25rem;
  }
}

/* HeroGames Rotating Word */
.hero-games-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-games-window {
  position: relative;
  height: 88px;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-games-window {
    height: 120px;
  }
}

.hero-games-word {
  margin: 0;
  white-space: nowrap;
  font-size: 44px;
  font-weight: 900;
  line-height: 88px;
}

@media (min-width: 768px) {
  .hero-games-word {
    font-size: 60px;
    line-height: 120px;
  }
}

.hero-games-bar {
  display: block;
  height: 5px;
  border-radius: 9999px;
}

.hero-games-dots {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.375rem;
}

.hero-games-dot {
  display: block;
  height: 0.375rem;
  border-radius: 9999px;
  transition: width 0.4s ease, background-color 0.4s ease;
}

.hero-h1 {
  margin: 1.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-h1 {
    font-size: 1.5rem;
  }
}

.hero-tagline-en {
  margin: 0.125rem 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
}

.hero-sub-copy {
  margin: 0.625rem 0 0;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .hero-sub-copy {
    font-size: 1rem;
  }
}

.hero-sub-hl {
  white-space: nowrap;
  font-weight: 700;
  color: var(--primary);
}

.live-status-line {
  margin: 0.75rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-sky);
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 9999px;
  background: #bed7f1;
  animation: live-dot 1.6s ease-out infinite;
}

@keyframes live-dot {
  from { box-shadow: 0 0 0 0 rgb(190 215 241 / 0.6); }
  to { box-shadow: 0 0 0 9px rgb(190 215 241 / 0); }
}

.hero-cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.35rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background-image: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  filter: brightness(1.06);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ── Sections & Interactive OS Cockpit ─────────────────────────────────── */
.steps-section {
  position: relative;
  padding-block: 2.5rem 3.5rem;
}

.steps-glow {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 2.5rem;
  margin-inline: auto;
  height: 16rem;
  max-width: 56rem;
  border-radius: 9999px;
  opacity: 0.6;
  filter: blur(64px);
  background: radial-gradient(closest-side, rgba(201,168,76,0.18), rgba(190,215,241,0.08), transparent);
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.1);
  padding: 0.25rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
}

.section-heading {
  margin: 0.75rem 0 0;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
}

.section-sub {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: rgba(190, 215, 241, 0.82);
}

.steps-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-ring-card {
  height: 100%;
  border-radius: 28px;
  padding: 1px;
  transition: transform 0.3s ease;
}

.step-ring-card:hover {
  transform: translateY(-6px);
}

.step-ring-gold {
  background: linear-gradient(160deg, rgba(201,168,76,0.55), rgba(255,255,255,0.06) 45%, rgba(201,168,76,0.16));
  --glow: rgba(201,168,76,0.55);
  --soft: rgba(201,168,76,0.16);
  --hex: #C9A84C;
}

.step-ring-sky {
  background: linear-gradient(160deg, rgba(190,215,241,0.5), rgba(255,255,255,0.06) 45%, rgba(190,215,241,0.14));
  --glow: rgba(190,215,241,0.5);
  --soft: rgba(190,215,241,0.14);
  --hex: #BED7F1;
}

.step-ring-sand {
  background: linear-gradient(160deg, rgba(216,203,179,0.5), rgba(255,255,255,0.06) 45%, rgba(216,203,179,0.14));
  --glow: rgba(216,203,179,0.5);
  --soft: rgba(216,203,179,0.14);
  --hex: #D8CBB3;
}

.step-inner-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 27px;
  background: #0d1b3e;
  padding: 1.25rem;
  transition: box-shadow 0.3s ease;
}

.step-ring-card:hover .step-inner-card {
  box-shadow: 0 18px 50px -12px var(--glow);
}

.step-top-blur {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: -4rem;
  margin-inline: auto;
  height: 10rem;
  width: 14rem;
  border-radius: 9999px;
  filter: blur(48px);
  background: var(--soft);
}

.step-scene {
  position: relative;
  height: 10rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #16295a, #0f2048);
}

.step-title-row {
  position: relative;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-num-badge {
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 900;
  color: #0d1b3e;
  background: var(--hex);
}

.step-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.step-desc {
  position: relative;
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(216, 230, 245, 0.8);
}

/* Scene Animations */
.scene-dots-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: radial-gradient(rgba(190, 215, 241, 0.35) 1px, transparent 1px);
  background-size: 14px 14px;
}

.scene-pin-bounce {
  animation: mapPinBounce 1.8s ease-in-out infinite;
}

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

.scene-wa-toast {
  background: #fff;
  color: #0d1b3e;
  border-radius: 0.75rem;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  animation: waFloatCard 3.6s ease-in-out infinite;
}

@keyframes waFloatCard {
  0%, 100% { transform: translateY(8px); opacity: 0.25; }
  20%, 80% { transform: translateY(0); opacity: 1; }
}

.qr-frame {
  position: relative;
  width: 6.6rem;
  height: 6.6rem;
}

.qr-corner {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-color: #d8cbb3;
  border-style: solid;
  border-width: 0;
}

.qr-corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 0.5rem; }
.qr-corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 0.5rem; }
.qr-corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 0.5rem; }
.qr-corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 0.5rem; }

.qr-img {
  position: absolute;
  inset: 0.55rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.4rem;
  background: #f5f5f2;
  padding: 0.25rem;
}

.qr-laser {
  position: absolute;
  inset-inline: 0.25rem;
  height: 2px;
  border-radius: 9999px;
  background: #d8cbb3;
  box-shadow: 0 0 12px 2px rgba(216, 203, 179, 0.75);
  animation: qrScanBeam 2.4s ease-in-out infinite;
}

@keyframes qrScanBeam {
  0%, 100% { top: 12%; }
  50% { top: 86%; }
}

.float-badge-anim {
  animation: pointsBadgeFloat 2.4s ease-in-out infinite;
}

@keyframes pointsBadgeFloat {
  0%, 100% { transform: translateY(4px); opacity: 0.65; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* ── LoungeCard / CoverPlaceholder / CardPhotoFade Family Cards ──────── */
.cover-placeholder {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #22376b, #101c3f);
}

.cover-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f5f5f2;
  opacity: 0.045;
  -webkit-mask: url("../brand/pattern-tile-en.svg") 0 0 / 480px auto repeat;
  mask: url("../brand/pattern-tile-en.svg") 0 0 / 480px auto repeat;
}

html[dir="rtl"] .cover-placeholder::before {
  -webkit-mask-image: url("../brand/pattern-tile-ar.svg");
  mask-image: url("../brand/pattern-tile-ar.svg");
}

.card-photo-fade {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(7, 13, 28, 0) 0%,
    rgba(7, 13, 28, 0.03) 14%,
    rgba(7, 13, 28, 0.1) 28%,
    rgba(7, 13, 28, 0.22) 42%,
    rgba(7, 13, 28, 0.4) 56%,
    rgba(7, 13, 28, 0.6) 69%,
    rgba(7, 13, 28, 0.78) 80%,
    rgba(7, 13, 28, 0.91) 89%,
    rgba(7, 13, 28, 0.98) 96%,
    #070d1c 100%
  );
}

.family-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: #070d1c;
  box-shadow: var(--shadow-card-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.family-card-cover {
  position: relative;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.family-card-top-pills {
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 0.85rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.dark-status-chip {
  display: inline-flex;
  height: 1.75rem;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  background: rgba(7, 13, 28, 0.82);
  padding-inline: 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
}

.family-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.25rem 1.25rem 1.25rem;
}

.availability-shell {
  margin-top: 1rem;
  display: flex;
  height: 46px;
  align-items: center;
  gap: 0.65rem;
  border-radius: 1rem;
  background: rgba(19, 34, 74, 0.9);
  padding-inline: 0.85rem;
}

.availability-badge {
  display: grid;
  height: 34px;
  min-width: 34px;
  place-items: center;
  border-radius: 11px;
  padding-inline: 0.5rem;
  font-size: 0.95rem;
  font-weight: 900;
  background: rgba(201, 168, 76, 0.2);
  color: var(--primary);
}

.availability-badge.green {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.availability-badge.sky {
  background: rgba(190, 215, 241, 0.16);
  color: var(--brand-sky);
}

/* ── Chip Rail & Interactive OS Showcase ─────────────────────────────── */
.chip-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.chip-btn {
  display: inline-flex;
  height: 2.25rem;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: var(--card);
  padding-inline: 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  color: #fff;
}

.chip-btn.is-active {
  background-color: rgba(255, 255, 255, 0.1);
  background-image: radial-gradient(closest-side, rgba(201, 168, 76, 0.24), transparent);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.os-cockpit-shell {
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(201, 168, 76, 0.5), rgba(255, 255, 255, 0.06) 45%, rgba(190, 215, 241, 0.22));
  box-shadow: var(--shadow-card-soft);
}

.os-cockpit-inner {
  border-radius: 27px;
  background: linear-gradient(165deg, #13234a, #091229);
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .os-cockpit-inner {
    padding: 1.75rem;
  }
}

.os-panel {
  display: none;
}

.os-panel.is-active {
  display: block;
  animation: fadeSlide 0.25s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

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

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.kpi-tile {
  border-radius: 1.15rem;
  background: rgba(7, 13, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.kpi-tile-label {
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

.kpi-tile-val {
  margin-top: 0.25rem;
  font-size: 1.45rem;
  font-weight: 900;
}

.peak-chart-box {
  margin-top: 1rem;
  border-radius: 1.15rem;
  background: rgba(7, 13, 28, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 1.15rem;
}

.peak-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 4.5rem;
  margin-top: 0.65rem;
}

.peak-bar {
  flex: 1;
  border-radius: 0.35rem 0.35rem 0 0;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.9), rgba(201, 168, 76, 0.25));
}

.peak-bar.is-peak {
  background: linear-gradient(180deg, #f3dc98, #c9a84c);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.35);
}

/* Before / After Comparison */
.compare-box {
  border-radius: 26px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.compare-before {
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.07), rgba(7, 13, 28, 0.92));
  border-color: rgba(239, 68, 68, 0.25);
}

.compare-after {
  background: linear-gradient(165deg, rgba(201, 168, 76, 0.11), rgba(13, 27, 62, 0.92));
  border-color: rgba(201, 168, 76, 0.42);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.compare-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(245, 245, 242, 0.92);
}

/* Forms & Configurator */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-beige);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(7, 13, 28, 0.78);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.55rem;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(7, 13, 28, 0.55);
  font-size: 0.84rem;
  cursor: pointer;
}

.check-pill input {
  width: auto;
  accent-color: var(--primary);
}

.is-hidden {
  display: none !important;
}

/* ── Footer (matching Footer.tsx) ────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 3rem;
}

.footer-contact-band {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(21, 36, 76, 0.5);
  padding: 1.35rem 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-contact-band {
    flex-direction: row;
    text-align: start;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  padding-block: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col-wide {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-col-wide {
    grid-column: span 1;
  }
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}

.footer-list li a {
  display: inline-flex;
  min-height: 2.3rem;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s ease;
}

.footer-list li a:hover {
  color: var(--foreground);
}

.social-box {
  display: grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(21, 36, 76, 0.6);
  color: var(--muted-foreground);
  transition: all 0.15s ease;
}

.social-box:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-block: 1rem;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

/* ── Phone GlassTabBar (identical to GlassTabBar.tsx) ────────────────── */
.phone-tab-bar-wrap {
  pointer-events: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
  padding-inline: 0.75rem;
  transition: padding 0.3s ease-out;
}

.phone-tab-bar-wrap.is-compact {
  padding-inline: 2rem;
}

@media (min-width: 768px) {
  .phone-tab-bar-wrap {
    display: none;
  }
}

.phone-tab-bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  width: 100%;
  max-width: 28rem;
  height: 4rem;
  border-radius: 9999px;
  padding: 0.25rem;
  transition: height 0.3s ease-out;
}

.phone-tab-bar-wrap.is-compact .phone-tab-bar {
  height: 3rem;
}

.phone-tab-lens {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  border-radius: 9999px;
  transition: inset-inline-start 0.5s cubic-bezier(0.34, 1.4, 0.5, 1);
}

.phone-tab-link {
  position: relative;
  z-index: 10;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease;
}

.phone-tab-link.is-active {
  color: var(--primary);
}

.phone-tab-icon {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.phone-tab-link.is-active .phone-tab-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.5));
}

.phone-tab-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline: 0.15rem;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 14px;
  margin-top: 2px;
  max-height: 14px;
  opacity: 1;
  transition: all 0.3s ease-out;
}

.phone-tab-bar-wrap.is-compact .phone-tab-label {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-pattern *, .octo-bob, .octo-flying, .live-dot, .qr-laser, .scene-wa-toast, .scene-pin-bounce {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Hide top-right Quote pill on narrow phones so center PLAY PODZ logo never overlaps */
.header-desktop-quote {
  display: none !important;
}
@media (min-width: 768px) {
  .header-desktop-quote {
    display: inline-flex !important;
  }
}
@media (max-width: 399px) {
  .logo-morph-box.size-top {
    height: 2.15rem;
  }
}
.phone-tab-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
