@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --page:        #07090f;
  --surface:     #0d1117;
  --surface-2:   #111827;
  --surface-3:   #1a2332;

  /* Borders */
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.12);
  --border-hi:   rgba(255,255,255,0.20);

  /* Text */
  --fg:          #f0f4ff;
  --fg-2:        #94a3b8;
  --fg-3:        #64748b;

  /* Accent – electric indigo */
  --accent:      #6366f1;
  --accent-2:    #818cf8;
  --accent-dim:  rgba(99,102,241,0.15);
  --accent-glow: rgba(99,102,241,0.35);

  /* Status colours */
  --danger:      #f43f5e;
  --danger-dim:  rgba(244,63,94,0.12);
  --warn:        #f59e0b;
  --warn-dim:    rgba(245,158,11,0.12);
  --ok:          #10b981;

  /* Typography */
  --sans-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --sans-body:    'Inter', system-ui, sans-serif;

  /* Geometry */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-pill: 9999px;

  /* Elevation shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lift: 0 4px 12px rgba(0,0,0,0.4), 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--accent-glow);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Motion */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 240ms;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans-body);
  background: var(--page);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ============================================================
   GLOBAL NOISE / GRAIN TEXTURE OVERLAY
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  padding-block: 0.9rem;
  background: rgba(7, 9, 15, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease-out);
}

.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--sans-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(130deg, #fff 40%, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.nav-link:hover { color: var(--fg); background: rgba(255,255,255,0.06); }

.nav-link.active {
  color: var(--fg);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
}

/* Right-side nav group */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language toggle button */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-md);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--sans-body);
  transition: all var(--dur) var(--ease-out);
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.09);
  border-color: var(--border-hi);
}

.lang-btn .lang-globe {
  font-size: 0.95rem;
  line-height: 1;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--fg-2);
  border-radius: 2px;
  transition: var(--dur) var(--ease-out);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  text-align: center;
  overflow: hidden;
}

/* Multi-layered radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  translate: -50% 0;
  width: 120vw;
  height: 80vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 40%, rgba(139,92,246,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(59,130,246,0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 2rem;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.6); }
}

.hero h1 {
  font-family: var(--sans-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(160deg, #fff 30%, rgba(148,163,184,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--fg-2);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease-out);
  cursor: pointer;
  border: none;
  font-family: var(--sans-body);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--fg-2);
  border: 1px solid var(--border-md);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: var(--fg);
  transform: translateY(-2px);
  border-color: var(--border-hi);
}

/* ============================================================
   KPI METRICS
   ============================================================ */
.kpi-section {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-md);
  box-shadow: var(--shadow-card);
}

.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.kpi-card.danger .kpi-icon {
  background: var(--danger-dim);
  border-color: rgba(244,63,94,0.25);
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-family: var(--sans-display);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.kpi-card.danger .kpi-value { color: #fca5a5; }

.kpi-bar {
  margin-top: 1.25rem;
  height: 3px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
}

.kpi-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 1.2s var(--ease-out);
  width: 0;
}

.kpi-card.danger .kpi-bar-fill { background: var(--danger); }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 40px;
}

/* ============================================================
   HOME NAV CARDS
   ============================================================ */
.nav-cards-section {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.nav-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-spring), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  cursor: pointer;
}

.nav-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(99,102,241,0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.nav-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99,102,241,0.3);
  box-shadow: var(--shadow-lift);
}

.nav-card:hover::after { opacity: 1; }

.nav-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  transition: transform var(--dur) var(--ease-spring);
}

.nav-card:hover .nav-card__icon { transform: scale(1.1); }

.nav-card__title {
  font-family: var(--sans-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.nav-card__desc {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.6;
  flex: 1;
}

.nav-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: gap var(--dur) var(--ease-out);
}

.nav-card:hover .nav-card__arrow { gap: 0.75rem; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  translate: -50% 0;
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--sans-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, #fff 30%, rgba(148,163,184,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-2);
  max-width: 580px;
  margin-inline: auto;
}

/* ============================================================
   DASHBOARD GALLERY
   ============================================================ */
.gallery-section {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.tab-row {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-pill-group {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.375rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--sans-body);
  transition: all var(--dur) var(--ease-out);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--fg); background: rgba(255,255,255,0.05); }

.tab-btn.active {
  background: var(--surface-3);
  color: var(--fg);
  border-color: var(--border-md);
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Browser frame */
.device-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-md);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.5),
    0 30px 70px rgba(0,0,0,0.5),
    0 0 60px rgba(99,102,241,0.08);
}

.device-frame__bar {
  background: #111520;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.device-dots {
  display: flex;
  gap: 6px;
}

.device-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.device-dots .d-red    { background: #ef4444; }
.device-dots .d-yellow { background: #eab308; }
.device-dots .d-green  { background: #22c55e; }

.device-url-bar {
  flex: 1;
  max-width: 340px;
  height: 26px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.4rem;
}

.device-url-bar span {
  font-size: 0.75rem;
  color: var(--fg-3);
  font-family: var(--sans-body);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.device-frame__screen {
  position: relative;
  background: var(--page);
  min-height: 420px;
}

.gallery-img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  position: relative;
  z-index: 2;
}

.gallery-img.loaded { opacity: 1; }

.gallery-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.02) 25%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0.02) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.gallery-caption {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--fg-3);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ============================================================
   RECOMMENDATIONS
   ============================================================ */
.rec-section {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.impact-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(244,63,94,0.2);
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, rgba(244,63,94,0.06) 0%, rgba(99,102,241,0.06) 100%);
  text-align: center;
}

.impact-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
  pointer-events: none;
}

.impact-banner__amount {
  font-family: var(--sans-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fca5a5;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.impact-banner__label {
  font-size: 1rem;
  color: var(--fg-2);
  max-width: 500px;
  margin-inline: auto;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  display: grid;
  gap: 1.5rem;
}

.rec-card:hover {
  border-color: var(--border-md);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.rec-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.rec-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.rec-card__meta { flex: 1; }

.rec-card__title {
  font-family: var(--sans-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.impact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
}

.impact-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.impact-high {
  background: var(--danger-dim);
  color: #fca5a5;
  border: 1px solid rgba(244,63,94,0.2);
}

.impact-medium {
  background: var(--warn-dim);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.2);
}

.rec-finding {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.6;
}

.rec-body {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.7;
}

.rec-actions-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.75rem;
}

.rec-actions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rec-actions-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rec-actions-list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.rec-effect {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.rec-effect::before {
  content: '⚡';
  flex-shrink: 0;
}

.rec-effect strong { color: var(--accent-2); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--fg-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 3rem; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .tab-pill-group { flex-direction: column; border-radius: var(--r-lg); width: 100%; }
  .tab-btn { border-radius: var(--r-md); text-align: center; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; border-radius: var(--r-md); }
  .rec-card { padding: 1.75rem; }
  .impact-banner { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
}

/* ============================================================
   RTL / ARABIC OVERRIDES
   ============================================================ */

/* Switch body & heading font to Noto Sans Arabic for better rendering */
[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', var(--sans-body);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: 'Noto Sans Arabic', var(--sans-display);
  letter-spacing: 0;
}

/* Logo always stays in the Latin display font regardless of direction */
[dir="rtl"] .logo {
  font-family: var(--sans-display);
  letter-spacing: -0.04em;
}

/* Hero h1 brand name is always LTR latin script */
[dir="rtl"] .hero h1 {
  font-family: var(--sans-display);
  direction: ltr;
  unicode-bidi: isolate;
}

/* Eyebrow pill — dot stays on the right (trailing) in RTL */
[dir="rtl"] .hero-eyebrow::before {
  order: 1;
  margin-right: 0;
  margin-left: 0.4rem;
}

/* Rec finding callout: border flips to the right side */
[dir="rtl"] .rec-finding {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  padding-left: 0;
  padding-right: 1.4rem;
}

/* Action list bullet arrows flip to point left */
[dir="rtl"] .rec-actions-list li::before {
  content: '←';
}

/* Numbers and currency values stay LTR */
.kpi-value,
.impact-banner__amount {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* Device URL bar text always LTR */
.device-url-bar span {
  direction: ltr;
  unicode-bidi: embed;
}

/* Tab pill group in RTL: items flow right-to-left naturally,
   keep pill group itself horizontal */
[dir="rtl"] .tab-pill-group {
  flex-direction: row-reverse;
}

@media (max-width: 640px) {
  [dir="rtl"] .tab-pill-group {
    flex-direction: column;
  }
}

