/* Salam Messenger — Billion-Dollar Light Theme Design System
   Crafted with the authentic Salaam Brand Standard:
   Base Pure White (#FFFFFF), Slate (#0F172A), Mustard Gold (#E1B12C), Emerald (#0D5A4D)
   Apple, Linear, Signal, and Stripe Tier Aesthetics.
*/

:root {
  color-scheme: light;
  
  /* Brand Color Palette */
  --base-white: #ffffff;
  --bg-canvas: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-tint: #fefdf9;
  
  /* Typography & Ink */
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  
  /* Lines & Borders */
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --line-dark: rgba(15, 23, 42, 0.12);
  
  /* Gold Accents (CTAs, Badges, Highlights) */
  --gold: #e1b12c;
  --gold-hover: #f5c538;
  --gold-dark: #b8860b;
  --gold-wash: #fef9e7;
  --gold-glow: rgba(225, 177, 44, 0.28);
  
  /* Security Emerald Accents */
  --emerald: #0d5a4d;
  --emerald-bright: #10b981;
  --emerald-wash: #ecfdf5;
  --emerald-glow: rgba(13, 90, 77, 0.2);
  
  /* System States */
  --danger: #ef4444;
  --danger-wash: #fef2f2;
  --success: #10b981;
  
  /* Dimensions & Spacing */
  --shell: min(1280px, calc(100vw - 48px));
  --header-height: 80px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 9999px;
  
  /* Multi-Layered Ambient Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 20px 25px -5px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 30px -8px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(225, 177, 44, 0.35);
  --shadow-glow: 0 20px 60px -15px var(--gold-glow);
  --shadow-floating: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);
  
  /* Typography Scale */
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic: "Tajawal", "Cairo", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Elements */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg-canvas);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

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

a, button, summary {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5000;
  top: 16px;
  left: 16px;
  padding: 12px 20px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  color: var(--base-white);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Typography Hierarchy */
h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.2rem, 5.8vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
}

p {
  color: var(--ink-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--gold-wash);
  border: 1px solid rgba(225, 177, 44, 0.3);
  color: var(--gold-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow-emerald {
  background: var(--emerald-wash);
  border-color: rgba(13, 90, 77, 0.25);
  color: var(--emerald);
}

.card-kicker {
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Button System */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

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

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

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms var(--ease);
}

.button:hover svg {
  transform: translateY(1px);
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 14px 0 var(--gold-glow);
}

.button-primary:hover {
  background: var(--gold-hover);
  box-shadow: 0 6px 20px 0 var(--gold-glow);
}

.button-dark {
  background: var(--ink);
  color: var(--base-white);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.button-dark:hover {
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.button-hero {
  background: var(--gold);
  color: var(--ink);
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px -4px var(--gold-glow);
}

.button-hero:hover {
  background: var(--gold-hover);
  box-shadow: 0 12px 32px -4px var(--gold-glow);
}

.button-quiet {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button-quiet:hover {
  border-color: var(--gold);
  background: var(--gold-wash);
  color: var(--gold-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 150ms var(--ease);
}

.text-link:hover {
  color: var(--ink);
}

/* ==========================================
   Header Navigation
   ========================================== */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 150ms var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-download {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* Language Selector Dropdown */
.language-control {
  position: relative;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.language-button:hover {
  border-color: var(--gold);
  background: var(--gold-wash);
}

.language-button svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.language-button .chevron {
  width: 12px;
  height: 12px;
  transition: transform 150ms var(--ease);
}

.language-button[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-floating);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
  animation: menuDrop 180ms var(--ease);
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.language-option:hover {
  background: var(--gold-wash);
  color: var(--gold-dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 80px;
  background: radial-gradient(circle at 50% 20%, rgba(254, 249, 235, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 640px;
}

.hero-summary {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.release-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.release-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 3px var(--emerald-wash);
  animation: pulseDot 2.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-product-shot {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-floating);
  border: 1px solid var(--line);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.hero-product-shot:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.16);
}

.hero-product-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

.hero-captions {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding-inline: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--faint);
}

/* ==========================================
   Trust / Proof Strip
   ========================================== */
.proof-strip {
  padding-block: 32px;
  background: var(--bg-subtle);
  border-block: 1px solid var(--line);
}

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

.proof-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.proof-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gold-wash);
  border: 1px solid rgba(225, 177, 44, 0.3);
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================
   Section Layouts
   ========================================== */
.section {
  padding-block: 100px;
}

.section-intro {
  margin-bottom: 56px;
}

.section-intro-centered {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.section-intro-centered .eyebrow {
  margin-inline: auto;
}

.product-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.product-intro p {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================
   Interactive Product Lens
   ========================================== */
.product-lens {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.product-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-inline: auto;
}

.product-tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 180ms var(--ease);
}

.product-tab:hover {
  color: var(--ink);
}

.product-tab.is-active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(225, 177, 44, 0.4);
  font-weight: 700;
}

.product-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
  padding: 48px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  animation: panelFade 240ms var(--ease);
}

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

.product-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-floating);
  border: 1px solid var(--line);
}

.product-media-phone {
  max-width: 440px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
}

.product-media img {
  width: 100%;
  height: auto;
}

.product-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-index {
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-detail h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.product-detail p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

.product-footnote {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem !important;
  font-weight: 600;
  color: var(--emerald) !important;
}

/* ==========================================
   Made for Real Life (Context Grid)
   ========================================== */
.life-section {
  background: var(--bg-subtle);
  border-block: 1px solid var(--line);
}

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

.life-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(201, 151, 29, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}

.life-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(225, 177, 44, 0.45);
}

.life-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.life-media video, .life-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.life-card:hover .life-media img {
  transform: scale(1.03);
}

.life-stat-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}

html[dir="rtl"] .life-stat-badge {
  right: auto;
  left: 14px;
}

.life-card:hover .life-stat-badge {
  background: rgba(13, 90, 77, 0.9);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.life-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.life-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 0;
}

.life-copy p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ==========================================
   Security & Privacy Center
   ========================================== */
.privacy-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.privacy-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-copy p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}

.privacy-proof {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privacy-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.privacy-path > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.path-index {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.privacy-path strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.path-line {
  height: 2px;
  flex-grow: 1;
  margin-inline: 16px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--emerald) 100%);
  opacity: 0.4;
}

.privacy-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-details details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.privacy-details details[open] {
  border-color: rgba(225, 177, 44, 0.4);
  box-shadow: var(--shadow-card);
}

.privacy-details summary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.privacy-details summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-dark);
  transition: transform 180ms var(--ease);
}

.privacy-details details[open] summary::after {
  content: "−";
}

.privacy-details p {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.privacy-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--emerald-wash);
  border: 1px solid rgba(13, 90, 77, 0.2);
  color: var(--emerald);
  font-weight: 700;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}

.privacy-contact:hover {
  transform: translateY(-2px);
  background: rgba(13, 90, 77, 0.12);
}

/* ==========================================
   Discourse Community Hub
   ========================================== */
.community-section {
  background: var(--bg-canvas);
  border-top: 1px solid var(--line);
}

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.community-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.community-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.community-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}

.community-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(225, 177, 44, 0.4);
}

.community-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.community-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold-wash);
  border: 1px solid rgba(225, 177, 44, 0.3);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.community-tag-emerald {
  background: var(--emerald-wash);
  border-color: rgba(13, 90, 77, 0.25);
  color: var(--emerald);
}

.community-tag-gold {
  background: #fefce8;
  border-color: rgba(202, 138, 4, 0.3);
  color: #a16207;
}

.community-vote-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}

.community-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.community-card p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.community-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 150ms var(--ease), transform 150ms var(--ease);
}

.community-card-link:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.community-topics-bar {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.community-topics-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-bottom: 16px;
}

.community-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 150ms var(--ease);
}

.community-chip:hover {
  background: var(--gold-wash);
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-1px);
}

.community-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--gold-wash) 100%);
  border: 1px solid rgba(225, 177, 44, 0.3);
  border-radius: var(--radius-xl);
}

.community-cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.community-cta-box p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ==========================================
   Safe Contact & Advertising / Inquiries Hub
   ========================================== */
.contact-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 177, 44, 0.4);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gold-wash);
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 150ms var(--ease);
}

.contact-email-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ==========================================
   Verified Android Release & Download Hub
   ========================================== */
.download-section {
  background: var(--bg-canvas);
}

.download-heading {
  margin-bottom: 48px;
}

.release-card {
  padding: 44px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 48px;
}

.release-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.release-app {
  display: flex;
  align-items: center;
  gap: 24px;
}

.release-app img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.release-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.release-meta {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.release-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button-release {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.button-release:hover {
  background: var(--gold-hover);
}

.button-release-quiet {
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
}

.button-release-quiet:hover {
  border-color: var(--gold);
  background: var(--gold-wash);
}

.release-verification {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.verification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.verification-state {
  color: var(--emerald);
}

.checksum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checksum-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--ink);
  word-break: break-all;
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  flex-grow: 1;
}

.copy-button {
  padding: 10px 20px;
  background: var(--ink);
  color: var(--base-white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background-color 150ms var(--ease);
  flex-shrink: 0;
}

.copy-button:hover:not(:disabled) {
  background: #334155;
}

.copy-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.release-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.release-specs dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 4px;
}

.release-specs dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.download-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.install-guide, .roadmap-note {
  padding: 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.install-guide ol, .verify-guide ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.install-guide li, .verify-guide li {
  font-size: 0.92rem;
  color: var(--muted);
}

.install-guide strong, .verify-guide strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.verify-guide {
  padding: 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.verify-guide summary {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 16px;
}

/* ==========================================
   5-Column Footer Sitemap
   ========================================== */
.site-footer {
  padding-top: 80px;
  padding-bottom: 40px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
}

.footer-sitemap {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  margin-bottom: 4px;
}

.footer-tagline {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0;
}

.footer-subtext {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

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

.footer-label {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 150ms var(--ease);
}

.footer-column a:hover {
  color: var(--gold-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--faint);
}

.footer-legal-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-dot {
  color: var(--line);
}

.footer-meta-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-meta-links a {
  color: var(--muted);
  transition: color 150ms var(--ease);
}

.footer-meta-links a:hover {
  color: var(--ink);
}

/* ==========================================
   QR Code & Support Dialogs
   ========================================== */
.qr-dialog, .support-dialog {
  border: none;
  border-radius: var(--radius-xl);
  padding: 44px;
  background: var(--bg-card);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  max-width: 420px;
  width: 90vw;
  text-align: center;
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 2000;
}

.qr-dialog::backdrop, .support-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.donation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

.support-field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  text-align: start;
}

.support-field label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.support-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.support-select:focus-visible {
  outline: 3px solid var(--gold-wash);
  border-color: var(--gold);
}

.support-field-note {
  min-height: 1.3em;
  color: var(--muted);
  font-size: 0.76rem;
}

.donation-options[hidden] {
  display: none;
}

.donation-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.donation-btn:hover {
  background: var(--gold-wash);
  border-color: var(--gold);
}

.donation-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.custom-amount-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.currency-symbol {
  position: absolute;
  left: 14px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.custom-amount-input {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px 12px 58px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s var(--ease);
}

html[dir="rtl"] .currency-symbol {
  left: auto;
  right: 14px;
}

html[dir="rtl"] .custom-amount-input {
  padding: 12px 58px 12px 14px;
}

.custom-amount-input:focus {
  outline: none;
  border-color: var(--gold);
}

.support-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 20px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
}

.dialog-close:hover {
  background: var(--gold-wash);
  color: var(--gold-dark);
}

.qr-dialog img {
  margin-inline: auto;
  margin-block: 24px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

/* ==========================================
   Toast Notifications
   ========================================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  background: var(--ink);
  color: var(--base-white);
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================
   RTL Support (Arabic)
   ========================================== */
html[dir="rtl"] {
  font-family: var(--font-arabic);
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3 {
  font-family: var(--font-arabic);
}

html[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .dialog-close {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .install-guide ol,
html[dir="rtl"] .verify-guide ol {
  padding-left: 0;
  padding-right: 20px;
}

html[dir="rtl"] .community-card-link:hover {
  transform: translateX(-4px);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 1024px) {
  .hero-layout, .product-panel, .privacy-layout, .product-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .community-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .community-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .life-grid, .download-bottom {
    grid-template-columns: 1fr;
  }
  
  .footer-sitemap {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .community-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .release-card-main {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .release-specs {
    grid-template-columns: 1fr;
  }
  
  .footer-sitemap {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal-copy {
    flex-direction: column;
    gap: 8px;
  }

  .footer-meta-links {
    flex-direction: column;
    gap: 8px;
  }
}
