/* ═══════════════════════════════════════════════════
   Lamma (لمّة) Website – Majlis Design System
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* palette */
  --bg: #fff8ef;
  --surface: #ffffff;
  --surface-low: #fbf3e1;
  --surface-mid: #f6edda;
  --surface-high: #ece2ca;
  --text: #373222;
  --muted: #8c846f;
  --outline: #e9dcc4;

  /* accents */
  --primary: #82515b;
  --primary-soft: #fdbec9;
  --secondary: #0e6781;
  --secondary-soft: #baeaff;
  --tertiary: #63603e;
  --tertiary-soft: #fdf8cb;
  --success: #20824d;
  --success-soft: #dff2e5;
  --danger: #d84b2a;
  --danger-soft: #ffd8cf;
  --neutral: #9f998b;
  --neutral-soft: #f3efe5;

  /* typography */
  --font-ar: 'Marhey', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', sans-serif;

  /* radii */
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-full: 9999px;

  /* shadows */
  --shadow-soft: 0 10px 30px rgba(130, 81, 91, 0.06);
  --shadow-medium: 0 16px 40px rgba(130, 81, 91, 0.12);
  --shadow-glow: 0 0 60px rgba(130, 81, 91, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  letter-spacing: -0.01em;
}

html[lang="en"] body {
  font-family: var(--font-en);
  letter-spacing: -0.015em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s, opacity 0.2s;
}

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

/* ── Ambient Backdrop ── */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: #edf7ff;
  opacity: 0.5;
  top: 80px;
  right: -60px;
  animation: float-slow 18s ease-in-out infinite;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: #ffe6ef;
  opacity: 0.45;
  top: 300px;
  left: 120px;
  animation: float-slow 22s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #fff6cf;
  opacity: 0.55;
  bottom: 200px;
  right: 260px;
  animation: float-slow 20s ease-in-out infinite 4s;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: #f4ebd8;
  opacity: 0.7;
  bottom: 100px;
  left: -80px;
  animation: float-slow 24s ease-in-out infinite 2s;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-30px) translateX(15px);
  }
  50% {
    transform: translateY(10px) translateX(-20px);
  }
  75% {
    transform: translateY(-15px) translateX(10px);
  }
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 248, 239, 0.7);
  border-bottom: 1px solid rgba(233, 220, 196, 0.5);
  box-shadow: 0 4px 24px rgba(130, 81, 91, 0.03);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-text-small {
  font-size: 26px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: background 0.25s, color 0.25s;
}

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

.lang-toggle {
  font-size: 13px !important;
  font-weight: 800 !important;
  border: 1px solid rgba(130, 81, 91, 0.25);
  color: var(--primary) !important;
  padding: 6px 12px !important;
  letter-spacing: 0.3px;
}

.lang-toggle:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary);
}

/* ── Mobile nav toggle (hamburger) ── */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  border-radius: 12px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(130, 81, 91, 0.08);
}

.nav-toggle-bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
  transform-origin: center;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ── Sections shared ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.primary-chip {
  background: var(--primary-soft);
  color: var(--primary);
}

.secondary-chip {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.tertiary-chip {
  background: var(--tertiary-soft);
  color: var(--tertiary);
}

.neutral-chip {
  background: var(--neutral-soft);
  color: var(--muted);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  margin-top: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ar);
  font-weight: 800;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, opacity 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

html[lang="en"] .btn {
  font-family: var(--font-en);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-lg {
  font-size: 17px;
  padding: 16px 32px;
  min-height: 56px;
}

.btn-full {
  width: 100%;
  font-size: 16px;
  padding: 14px 24px;
  min-height: 52px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #a66a77);
  color: #fff7f7;
  box-shadow: 0 8px 24px rgba(130, 81, 91, 0.25), inset 0 2px 4px rgba(255,255,255,0.15);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(130, 81, 91, 0.35), inset 0 2px 4px rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #1791b5);
  color: #f0faff;
  box-shadow: 0 8px 24px rgba(14, 103, 129, 0.2), inset 0 2px 4px rgba(255,255,255,0.15);
}

.btn-secondary:hover {
  box-shadow: 0 12px 32px rgba(14, 103, 129, 0.3), inset 0 2px 4px rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.btn-tertiary {
  background: linear-gradient(135deg, var(--tertiary), #827e4e);
  color: #fffef5;
  box-shadow: 0 8px 24px rgba(99, 96, 62, 0.2), inset 0 2px 4px rgba(255,255,255,0.15);
}

.btn-tertiary:hover {
  box-shadow: 0 12px 32px rgba(99, 96, 62, 0.3), inset 0 2px 4px rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.btn-disabled,
.btn-disabled:hover {
  background: linear-gradient(135deg, #b9b2a4, #9a9387) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(130, 81, 91, 0.12) !important;
  cursor: not-allowed !important;
  opacity: 0.85;
  transform: none !important;
  pointer-events: none;
}

.btn-disabled .btn-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-inline-start: 4px;
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 28px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 70vh;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-badge-icon {
  font-size: 18px;
}

.hero-title {
  font-size: clamp(60px, 9vw, 96px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #a66a77);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
  filter: drop-shadow(0 4px 20px rgba(130, 81, 91, 0.15));
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 800;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-meta-sep {
  color: rgba(140, 132, 111, 0.6);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* hero visual */
.hero-visual {
  flex: 0 0 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 320px;
  height: 380px;
}

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(233, 220, 196, 0.6);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  box-shadow: var(--shadow-medium);
  animation: card-float 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.hero-float-card:hover {
  transform: scale(1.1) translateY(-5px) !important;
  box-shadow: var(--shadow-glow);
  z-index: 10;
  border-color: var(--primary-soft);
}

.hero-card-emoji {
  font-size: 32px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.hero-card-label {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.card-1 {
  top: 0;
  right: 20px;
  animation-delay: 0s;
}
.card-2 {
  top: 72px;
  left: 0;
  animation-delay: 1s;
}
.card-3 {
  top: 155px;
  right: 40px;
  animation-delay: 0.5s;
}
.card-4 {
  top: 235px;
  left: 10px;
  animation-delay: 1.5s;
}
.card-5 {
  top: 310px;
  right: 10px;
  animation-delay: 0.8s;
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.about,
.screens,
.faq {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 28px 80px;
}

.about-panel,
.faq-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(233, 220, 196, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  padding: 36px;
}

.about-copy h3 {
  color: var(--text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.about-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.about-copy p + p {
  margin-top: 14px;
}

.about-rail {
  display: grid;
  gap: 0;
  align-self: stretch;
}

.about-row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(233, 220, 196, 0.8);
}

.about-row:first-child {
  padding-top: 0;
}

.about-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.about-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.about-row p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}

.faq-panel {
  padding: 10px 28px;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(233, 220, 196, 0.8);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 12px;
  padding-inline-end: 40px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* ── Screenshots ── */
.screens {
  padding-top: 32px;
  padding-bottom: 80px;
}

.screens-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}

.screens-copy {
  position: sticky;
  top: 96px;
}

.screens-copy-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(233, 220, 196, 0.65);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}

.screens-copy-panel h3 {
  color: var(--text);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.screens-copy-panel > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.screens-highlights {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.screens-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid rgba(233, 220, 196, 0.8);
}

.screens-highlight:first-child {
  padding-top: 0;
  border-top: none;
}

.screens-highlight-index,
.screen-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: rgba(130, 81, 91, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.screens-highlight strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.screens-highlight p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.screens-gallery {
  min-width: 0;
}

.screen-feature {
  grid-column: 1 / -1;
}

.screen-frame {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(233, 220, 196, 0.8);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.screen-frame:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(130, 81, 91, 0.22);
}

.screen-frame img {
  width: 100%;
  height: auto;
  transition: transform 0.8s ease;
}

.screen-frame:hover img {
  transform: scale(1.018);
}

.screen-frame figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 18px 20px;
}

.screen-frame strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.screen-frame p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

html[lang="en"] .screen-frame strong,
html[lang="en"] .screens-highlight strong {
  letter-spacing: -0.02em;
}

.screens-swipe-hint {
  display: none;
}

/* ── Features ── */
.features {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 28px;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(233, 220, 196, 0.5);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s, border-color 0.4s;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-medium);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-soft);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.icon-primary {
  background: var(--primary-soft);
}
.icon-secondary {
  background: var(--secondary-soft);
}
.icon-tertiary {
  background: var(--tertiary-soft);
}
.icon-success {
  background: var(--success-soft);
}
.icon-danger {
  background: var(--danger-soft);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* ── Categories Library ── */
.categories {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 28px;
}

/* ── GAME CATEGORY CARDS GRID ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 124px);
  justify-content: center;
  gap: 16px;
}

.game-category-card {
  width: 124px;
  height: 164px;
  border-radius: 26px;
  border: 1.5px solid #ecd7ad;
  background-color: #fff9ef;
  box-shadow: 0 6px 12px rgba(188, 163, 108, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.game-category-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 12px 20px rgba(188, 163, 108, 0.45);
}

.gcc-media {
  height: 120px;
  background-color: #fdebb6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gcc-shadow-rect {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  height: 20px;
  border-radius: 20px;
  background-color: rgba(175, 141, 82, 0.18);
}

.gcc-shadow-circle {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 44px;
  background-color: rgba(255,255,255,0.24);
}

.gcc-thumb {
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 1;
}

.gcc-lock-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(216, 75, 42, 0.95);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(216, 75, 42, 0.3);
}

.gcc-footer {
  height: 44px;
  background-color: #54b14d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.gcc-name {
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Pricing ── */
.pricing {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 28px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.plan-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(233, 220, 196, 0.8);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.plan-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-medium);
  background: rgba(255, 255, 255, 0.95);
}

.plan-monthly {
  border-top: 4px solid var(--primary);
}

.plan-lifetime {
  border-top: 4px solid var(--tertiary);
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
}

.plan-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.plan-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  text-align: right;
}

.plan-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.plan-description {
  font-size: 14px;
  color: #7d7561;
  line-height: 1.7;
  text-align: right;
  min-height: 48px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  flex-direction: row-reverse;
}

.price-value {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
}

.primary-text {
  background: linear-gradient(135deg, var(--primary), #a66a77);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tertiary-text {
  background: linear-gradient(135deg, var(--tertiary), #827e4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-period {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

/* ── Download CTA ── */
.download-cta {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #fff8ef 50%, var(--tertiary-soft) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.cta-card h2 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-card p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--surface-low);
  border-top: 1px solid var(--outline);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 28px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 260px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--outline);
  text-align: center;
  padding: 20px 28px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════
   Legal Pages (privacy / terms)
   ═══════════════════════════════════════════════════ */

.legal-page {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 28px 80px;
}

.legal-page h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-page .legal-date {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: #5a5340;
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-right: 24px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--primary);
  font-weight: 600;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 48px;
    gap: 40px;
    min-height: auto;
  }

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

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

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

  .hero-visual {
    flex: none;
    width: 100%;
  }

  .hero-card-stack {
    width: 280px;
    height: 340px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .screens-layout {
    grid-template-columns: 1fr;
  }

  .screens-copy {
    position: static;
  }
}

/* Tablet / phablet: collapse nav into hamburger */
@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 248, 239, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(233, 220, 196, 0.7);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 99;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 15px;
    padding: 12px 16px;
    text-align: center;
    border-radius: var(--radius-sm);
  }

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

  html[lang="en"] .nav-links a {
    text-align: left;
  }

  .lang-toggle {
    margin-top: 4px;
    border-top: 1px solid rgba(233, 220, 196, 0.7);
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    text-align: center !important;
  }

  .site-header {
    position: sticky;
  }

  .nav-inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 10px 16px;
  }

  .logo-text {
    font-size: 28px;
  }

  .hero {
    padding: 32px 20px 40px;
    gap: 28px;
  }

  .hero-badge {
    font-size: 13px;
    padding: 6px 16px;
    margin-bottom: 18px;
  }

  .hero-title {
    margin-bottom: 18px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .hero-meta {
    justify-content: center;
    margin-bottom: 28px;
    padding: 0 8px;
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .about,
  .screens,
  .features,
  .categories,
  .pricing,
  .faq {
    padding: 56px 16px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .feature-card {
    padding: 28px 22px;
  }

  .about-panel {
    padding: 28px 22px;
    gap: 20px;
  }

  .screens {
    padding-top: 12px;
  }

  .screens-layout {
    gap: 18px;
  }

  .screens-copy-panel {
    padding: 26px 22px;
  }

  .screens-copy-panel h3 {
    font-size: 24px;
  }

  .screens-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: 2px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .screens-grid::-webkit-scrollbar {
    display: none;
  }

  .screens-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    transition: opacity 0.35s ease, transform 0.35s ease, margin-top 0.35s ease, max-height 0.35s ease;
    pointer-events: none;
  }

  .screens-gallery.show-swipe-hint .screens-swipe-hint {
    margin-top: 14px;
    max-height: 48px;
    opacity: 1;
    transform: translateY(0);
  }

  .screens-swipe-copy {
    white-space: nowrap;
  }

  .screens-swipe-track {
    position: relative;
    width: 56px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: var(--radius-full);
    background: rgba(130, 81, 91, 0.08);
    border: 1px solid rgba(130, 81, 91, 0.14);
    overflow: hidden;
    --swipe-shift: 26px;
  }

  html[dir="rtl"] .screens-swipe-track {
    --swipe-shift: -26px;
  }

  .screens-swipe-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(253, 190, 201, 0.95), rgba(130, 81, 91, 0.95));
    box-shadow: 0 5px 16px rgba(130, 81, 91, 0.25);
    animation: screens-swipe-dot 1.75s ease-in-out infinite;
  }

  html[dir="rtl"] .screens-swipe-dot {
    left: auto;
    right: 3px;
  }

  .screen-frame,
  .screen-feature {
    min-width: min(88vw, 540px);
    flex: 0 0 min(88vw, 540px);
    scroll-snap-align: start;
  }

  .screen-frame {
    border-radius: 24px;
  }

  .screen-frame figcaption {
    padding: 16px 16px 18px;
  }

  .screen-frame strong {
    font-size: 16px;
  }

  .screen-frame p,
  .screens-highlight p {
    font-size: 14px;
  }

  @keyframes screens-swipe-dot {
    0%,
    100% {
      transform: translateX(0);
      opacity: 0.72;
    }
    45% {
      transform: translateX(var(--swipe-shift));
      opacity: 1;
    }
  }

  .about-copy h3 {
    font-size: 24px;
  }

  .about-copy p,
  .about-row p {
    font-size: 15px;
  }

  .faq-panel {
    padding: 6px 20px;
  }

  .faq-item {
    padding: 18px 0;
  }

  .faq-item summary {
    font-size: 17px;
  }

  .faq-item p {
    padding-inline-end: 0;
  }

  .plan-card {
    padding: 28px 22px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 12px;
    padding: 0 4px;
  }

  .game-category-card {
    width: 100%;
    max-width: 130px;
    height: auto;
    aspect-ratio: 124 / 164;
    border-radius: 20px;
    margin: 0 auto;
  }

  .gcc-media {
    height: 68%;
  }

  .gcc-shadow-rect {
    bottom: 8px;
    height: 16px;
  }

  .gcc-shadow-circle {
    width: 74px;
    height: 74px;
  }

  .gcc-thumb {
    width: 76%;
    height: 76%;
  }

  .gcc-footer {
    height: 32%;
  }

  .gcc-name {
    font-size: 12px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Turn the absolute-positioned card stack into a flex row on mobile */
  .hero-card-stack {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 4px;
  }

  .hero-float-card {
    position: static;
    padding: 10px 16px;
    animation: none;
    flex: 0 1 auto;
  }

  .hero-float-card.card-1,
  .hero-float-card.card-2,
  .hero-float-card.card-3,
  .hero-float-card.card-4,
  .hero-float-card.card-5 {
    top: auto;
    left: auto;
    right: auto;
    animation: none;
  }

  .hero-card-emoji {
    font-size: 22px;
  }

  .hero-card-label {
    font-size: 14px;
  }

  .btn-lg {
    font-size: 15px;
    padding: 13px 20px;
    min-height: 48px;
  }

  .cta-card {
    padding: 44px 24px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .download-cta {
    padding: 24px 16px 56px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }

  .footer-col {
    align-items: center;
  }

  /* Shrink ambient orbs on mobile so they don't dominate */
  .orb-1 {
    width: 260px;
    height: 260px;
    right: -120px;
  }

  .orb-2 {
    width: 240px;
    height: 240px;
    left: -80px;
    top: 400px;
  }

  .orb-3 {
    width: 200px;
    height: 200px;
    right: -80px;
  }

  .orb-4 {
    width: 240px;
    height: 240px;
    left: -120px;
  }

  .legal-page {
    padding: 40px 20px 60px;
  }

  .legal-page h1 {
    font-size: 28px;
  }

  .legal-page h2 {
    font-size: 19px;
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screens-swipe-dot {
    animation: none;
  }
}
