/* ═══════════════════════════════════════════════════════════════════════════
   Almostbsr (المستبصر) Landing Page Styles
   Palette: AppBrand.bullion — 24K Bullion Gold & Centurion Onyx / Warm Champagne
   Matched 1:1 with Figma File NNicUoZxIX2ESWSPfHrcmf
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('./fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('./fonts/IBMPlexSansArabic-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('./fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('./fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Theme Tokens: Dark Default (Centurion Onyx & 24K Bullion Gold) ── */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080A09;
  --surface: #111513;
  --surface-elevated: #181E1B;
  --surface-sunken: #050706;
  --border: #2B2618;
  --border-gold: rgba(212, 175, 55, 0.42);
  --primary: #D4AF37;
  --primary-pressed: #B89428;
  --accent: #F3E5AB;
  --on-primary: #080A09;
  --tint: rgba(212, 175, 55, 0.14);
  --tint-text: #F3E5AB;
  --text-1: #F8FAFC;
  --text-2: #A3ACA7;
  --text-3: #6B7570;
  --bullish: #34D399;
  --bullish-tint: rgba(52, 211, 153, 0.14);
  --bearish: #FB7185;
  --bearish-tint: rgba(251, 113, 133, 0.14);
  --info: #38BDF8;
  --info-tint: rgba(56, 189, 248, 0.14);
  --nav-bg: rgba(11, 14, 12, 0.88);
  --hero-img: url('./img/hero-bg-dark.png');
  --hero-scrim-v: linear-gradient(180deg, rgba(8, 10, 9, 0.72) 0%, rgba(8, 10, 9, 0.08) 36%, rgba(8, 10, 9, 0.14) 76%, #080A09 100%);
  --hero-scrim-side: linear-gradient(90deg, rgba(8, 10, 9, 0.68) 0%, rgba(8, 10, 9, 0.12) 52%, rgba(8, 10, 9, 0.0) 100%);
  --hero-scrim-side-rtl: linear-gradient(270deg, rgba(8, 10, 9, 0.68) 0%, rgba(8, 10, 9, 0.12) 52%, rgba(8, 10, 9, 0.0) 100%);
  --preview-bg: rgba(17, 21, 19, 0.86);
  --lead-grad: linear-gradient(145deg, #191710 0%, #111513 100%);
  --cta-grad: linear-gradient(180deg, rgba(11, 14, 12, 0.76) 0%, rgba(24, 20, 9, 0.48) 55%, rgba(8, 10, 9, 0.82) 100%);
  --btn-grad: linear-gradient(90deg, #D4AF37 0%, #F3E5AB 100%);
  --btn-shadow: 0 8px 24px rgba(212, 175, 55, 0.24);
  --preview-shadow: 0 22px 56px rgba(212, 175, 55, 0.12), 0 12px 32px rgba(0, 0, 0, 0.55);
  --chart-grid: #1E2421;
  --chart-stroke: #D4AF37;
  --chart-dot-fill: #F3E5AB;
  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Light Mode (Warm Champagne Alabaster) ── */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-sunken: #F3F1EA;
  --border: #E5E0D0;
  --border-gold: rgba(138, 109, 27, 0.45);
  --primary: #8A6D1B;
  --primary-pressed: #705814;
  --accent: #D4AF37;
  --on-primary: #FFFFFF;
  --tint: #F7F1DC;
  --tint-text: #8A6D1B;
  --text-1: #080A09;
  --text-2: #4A524D;
  --text-3: #8C948E;
  --bullish: #047857;
  --bullish-tint: rgba(4, 120, 87, 0.12);
  --bearish: #BE123C;
  --bearish-tint: rgba(190, 18, 60, 0.12);
  --info: #0284C7;
  --info-tint: rgba(2, 132, 199, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.90);
  --hero-img: url('./img/hero-bg-light.png');
  --hero-scrim-v: linear-gradient(180deg, rgba(250, 249, 245, 0.56) 0%, rgba(250, 249, 245, 0.05) 36%, rgba(250, 249, 245, 0.08) 76%, #FAF9F5 100%);
  --hero-scrim-side: linear-gradient(90deg, rgba(250, 249, 245, 0.44) 0%, rgba(250, 249, 245, 0.06) 52%, rgba(250, 249, 245, 0.0) 100%);
  --hero-scrim-side-rtl: linear-gradient(270deg, rgba(250, 249, 245, 0.44) 0%, rgba(250, 249, 245, 0.06) 52%, rgba(250, 249, 245, 0.0) 100%);
  --preview-bg: rgba(255, 255, 255, 0.90);
  --lead-grad: linear-gradient(145deg, #FBF6E6 0%, #FFFFFF 100%);
  --cta-grad: linear-gradient(180deg, rgba(250, 249, 245, 0.54) 0%, rgba(247, 239, 207, 0.36) 55%, rgba(250, 249, 245, 0.54) 100%);
  --btn-grad: linear-gradient(90deg, #8A6D1B 0%, #B89428 100%);
  --btn-shadow: 0 8px 24px rgba(138, 109, 27, 0.22);
  --preview-shadow: 0 22px 52px rgba(8, 10, 9, 0.09);
  --chart-grid: #ECE8DB;
  --chart-stroke: #B89428;
  --chart-dot-fill: #F7F1DC;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-1);
  font-family: var(--font-en);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, p {
  margin: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Prevent RTL bidi reversal of signed numbers, percentages, and ratios (+82, 1 : 2.9, +2.84%) */
.ticker-chg,
.metric-val,
.mini-chg,
#pvTp1Gain,
#pvSlRisk,
.risk-val {
  direction: ltr;
  unicode-bidi: isolate;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ── Shared Pills & Buttons ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.pill-xs {
  padding-block: 4px;
  padding-inline: 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}

.pill-gold {
  background: var(--tint);
  color: var(--tint-text);
  border: 1px solid var(--border-gold);
}

.pill-bullish {
  background: var(--bullish-tint);
  color: var(--bullish);
}

.pill-info {
  background: var(--info-tint);
  color: var(--info);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  padding-block: 13px;
  padding-inline: 22px;
  font-size: 0.9375rem;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

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

.btn:focus-visible,
.util-pill:focus-visible,
.tab-chip:focus-visible,
.tf-btn:focus-visible,
.budget-chip:focus-visible,
.mini-pick:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--btn-grad);
  color: var(--on-primary);
  box-shadow: var(--btn-shadow);
}

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

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text-1);
  border-color: var(--border);
  font-weight: 600;
}

.btn-secondary:hover {
  border-color: var(--border-gold);
}

.btn-sm {
  padding-block: 9px;
  padding-inline: 16px;
  font-size: 0.8125rem;
  border-radius: 10px;
}

.btn-lg {
  padding-block: 15px;
  padding-inline: 26px;
  font-size: 0.9375rem;
}

.btn-xl {
  padding-block: 16px;
  padding-inline: 32px;
  font-size: 1rem;
  border-radius: 14px;
}

html[dir="rtl"] .cta-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

/* ═══ 01 · STICKY GLASS NAVBAR ═══ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
}

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

.brand-wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[lang="ar"] .brand-wordmark {
  letter-spacing: 0;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--text-1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.util-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 10px;
  padding-block: 8px;
  padding-inline: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.util-pill:hover {
  border-color: var(--border-gold);
}

.theme-icon {
  color: var(--primary);
  font-size: 0.875rem;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-1);
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 18px 22px;
}

.mobile-nav-link {
  padding-block: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-2);
}

.mobile-nav-link:hover {
  color: var(--text-1);
}

.mobile-drawer-cta {
  margin-top: 6px;
  width: 100%;
}

/* ═══ 02 · MULTI-MARKET COVERAGE TICKER ═══ */
.ticker-band {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  padding-block: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-band::-webkit-scrollbar {
  display: none;
}

.ticker-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: max-content;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 5px;
  padding-inline: 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.ticker-sym {
  font-weight: 700;
  color: var(--text-1);
}

.ticker-val {
  color: var(--text-2);
  font-weight: 500;
}

.ticker-chg {
  color: var(--bullish);
  font-weight: 600;
}

.ticker-chg.is-down,
.preview-delta.is-down,
.mini-chg.is-down {
  color: var(--bearish);
}

.ticker-chip.is-live {
  transition: border-color 240ms ease;
}

.ticker-chip.is-tick {
  border-color: var(--border-gold);
}

/* ═══ 03 · ASYMMETRIC HERO SPLIT ═══ */
.hero-section {
  background-color: var(--bg);
  background-image: var(--hero-scrim-side), var(--hero-scrim-v), var(--hero-img);
  background-size: cover, cover, cover;
  background-position: center, center, center 62%;
  background-repeat: no-repeat;
  padding-block: clamp(48px, 6vw, 76px);
}

html[dir="rtl"] .hero-section {
  background-image: var(--hero-scrim-side-rtl), var(--hero-scrim-v), var(--hero-img);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 610px);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-h1 {
  font-size: clamp(2.125rem, 3.8vw, 3.125rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text-1);
}

html[lang="ar"] .hero-h1 {
  line-height: 1.32;
  letter-spacing: 0;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
}

.hero-sub {
  font-size: clamp(0.975rem, 1.25vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.proof-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.proof-lbl {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.3;
}

/* ── Interactive Hero Signal Preview Card ── */
.preview-card {
  background: var(--preview-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.2px solid var(--border-gold);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: var(--preview-shadow);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.market-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-chip {
  padding-block: 6px;
  padding-inline: 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface-sunken);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all 150ms ease;
}

.tab-chip:hover {
  color: var(--text-1);
  border-color: var(--border-gold);
}

.tab-chip.active {
  background: var(--tint);
  color: var(--tint-text);
  border-color: var(--border-gold);
}

.live-pill {
  font-size: 0.6875rem;
  padding-block: 5px;
  padding-inline: 10px;
}

.preview-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-asset-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.preview-asset-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.28;
}

.preview-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preview-price-box {
  text-align: end;
  flex-shrink: 0;
}

.preview-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.15;
}

.preview-delta {
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bullish);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-tile {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-lbl {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-2);
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.tone-gold { color: var(--primary); }
.tone-bullish { color: var(--bullish); }
.tone-bearish { color: var(--bearish); }
.tone-info { color: var(--info); }

/* Chart Box */
.preview-chart-box {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.level-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lvl-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding-block: 3px;
  padding-inline: 7px;
  border-radius: 999px;
}

.tone-bullish-bg { background: var(--bullish-tint); color: var(--bullish); }
.tone-gold-bg { background: var(--tint); color: var(--tint-text); }
.tone-bearish-bg { background: var(--bearish-tint); color: var(--bearish); }

.tf-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tf-btn {
  padding-block: 4px;
  padding-inline: 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all 140ms ease;
}

.tf-btn.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.chart-svg-wrap {
  width: 100%;
  height: 158px;
}

.chart-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-grid-line {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.line-tp2 {
  stroke: var(--bullish);
  stroke-width: 1.2;
  stroke-dasharray: 5 5;
  stroke-opacity: 0.65;
}

.line-tp1 {
  stroke: var(--bullish);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.line-entry {
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.line-stop {
  stroke: var(--bearish);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
}

.chart-stroke {
  stroke: var(--chart-stroke);
  stroke-width: 3;
  stroke-linecap: round;
  transition: d 220ms ease;
}

.chart-dot-now {
  fill: var(--chart-dot-fill);
  stroke: var(--primary);
  stroke-width: 2.5;
}

.chart-dot-entry {
  fill: var(--primary);
}

/* Budget Sizing Box */
.preview-budget-box {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.budget-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-1);
}

.budget-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.budget-chip {
  padding-block: 4px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--surface-sunken);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all 140ms ease;
}

.budget-chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.budget-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.budget-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.budget-stat-lbl {
  font-size: 0.6875rem;
  color: var(--text-2);
}

.budget-stat-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-1);
}

/* Mini Watchlist */
.preview-mini-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.72rem;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.mini-pick:hover,
.mini-pick.active {
  border-color: var(--border-gold);
  background: var(--tint);
}

.mini-sym {
  font-weight: 700;
  color: var(--text-1);
}

.mini-price {
  color: var(--text-2);
}

.mini-chg {
  color: var(--bullish);
  font-weight: 600;
}

/* ═══ SHARED SECTION & CARD STYLES ═══ */
.section {
  padding-block: clamp(56px, 6vw, 76px);
}

.section-sunken {
  background: var(--surface-sunken);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .section-eyebrow {
  letter-spacing: 0;
}

.section-h2 {
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--text-1);
}

html[lang="ar"] .section-h2 {
  letter-spacing: 0;
  line-height: 1.35;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 660px;
  line-height: 1.6;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.card:hover {
  border-color: var(--border-gold);
}

.card-title-lg {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-1);
}

.card-title-md {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
}

.card-title-sm {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
}

.card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
}

.card-desc-sm {
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text-2);
}

/* ═══ 04 · FIVE MARKETS ═══ */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.market-card {
  padding: 20px;
  border-radius: 18px;
}

/* ═══ 04B · AI COPILOT & SMART ALERTS STUDIO ═══ */
.copilot-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.studio-card {
  background: var(--lead-grad);
  border: 1.2px solid var(--border-gold);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--preview-shadow);
}

.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-wf-tabs,
.studio-modes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.studio-prompt {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.5;
}

.studio-steps-box {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-steps-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[lang="ar"] .studio-steps-lbl {
  letter-spacing: 0;
}

.studio-steps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.studio-step-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.studio-step-chip.tone-bull { background: var(--bullish-tint); color: var(--bullish); }
.studio-step-chip.tone-info { background: var(--info-tint); color: var(--info); }
.studio-step-chip.tone-gold { background: var(--tint); color: var(--tint-text); border: 1px solid var(--border-gold); }

.studio-reply-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

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

.studio-scenarios {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.studio-scenario-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.studio-scenario-tag {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.studio-scenario-tag.tone-bull { background: var(--bullish-tint); color: var(--bullish); }
.studio-scenario-tag.tone-gold { background: var(--tint); color: var(--tint-text); }
.studio-scenario-tag.tone-bear { background: var(--bearish-tint); color: var(--bearish); }
.studio-scenario-tag.tone-info { background: var(--info-tint); color: var(--info); }

.studio-scenario-text {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.5;
}

.studio-status-bar {
  background: var(--surface-sunken);
  border: 1px solid var(--bullish);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.studio-status-bar.tone-gold-border {
  border-color: var(--border-gold);
}

.studio-status-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bullish);
  letter-spacing: 0.03em;
}

.studio-status-bar.tone-gold-border .studio-status-title {
  color: var(--primary);
}

.studio-status-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.45;
}

.copilot-side-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.copilot-bottom-pillars {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card {
  padding: 22px;
  border-radius: 18px;
}

/* ═══ 05 · FEATURES BENTO GRID ═══ */
.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-row-1 {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr);
  gap: 20px;
}

.bento-row-2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bento-row-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bento-lead {
  background: var(--lead-grad);
  border-color: var(--border-gold);
  border-radius: 22px;
  padding: 28px;
  justify-content: space-between;
}

.bento-copilot {
  border-radius: 22px;
  padding: 28px;
  justify-content: space-between;
}

.risk-bar {
  width: 100%;
  margin-top: 8px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.risk-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.risk-lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-3);
}

.risk-val {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.15;
}

.chat-bubble {
  width: 100%;
  margin-top: 4px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-q {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
}

.chat-a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tint-text);
  line-height: 1.5;
}

/* ═══ 06 · HOW IT WORKS ═══ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  padding: 26px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: 7px;
  padding-inline: 14px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 800;
  background: var(--tint);
  color: var(--primary);
  border: 1px solid var(--border-gold);
}

/* ═══ 07 · 5-ENGINE PIPELINE ═══ */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.engine-card {
  padding: 20px;
  border-radius: 18px;
  gap: 10px;
}

.engine-card-ml {
  border-color: var(--primary);
}

.engine-num {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--primary);
}

.delivery-bar {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.delivery-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

html[lang="ar"] .delivery-lbl {
  letter-spacing: 0;
}

.delivery-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.delivery-pill {
  padding-block: 7px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-1);
}

/* ═══ 08 · FAQ ACCORDION ═══ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.faq-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 160ms ease;
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  cursor: pointer;
}

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

.faq-icon::before {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.faq-item[open] .faq-icon::before {
  content: "−";
}

.faq-answer {
  padding-inline: 22px;
  padding-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ═══ 09 · CLOSING CTA BANNER ═══ */
.cta-section {
  padding-top: 8px;
}

.cta-banner {
  background-color: var(--surface);
  background-image: var(--cta-grad), var(--hero-img);
  background-size: cover, cover;
  background-position: center, center 65%;
  background-repeat: no-repeat;
  border: 1.2px solid var(--border-gold);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 64px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  line-height: 1.24;
  max-width: 760px;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.58;
}

/* ═══ 10 · FOOTER & RISK DISCLAIMER ═══ */
.footer {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
  padding-block: 52px 42px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

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

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.62;
}

.footer-cols {
  display: flex;
  gap: clamp(28px, 4vw, 60px);
  flex-wrap: wrap;
}

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

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-1);
}

.footer-col a,
.footer-link-btn {
  font-size: 0.85rem;
  color: var(--text-2);
  background: none;
  border: 0;
  padding: 0;
  transition: color 140ms ease;
}

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

.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.disclaimer-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.disclaimer-body {
  font-size: 0.78rem;
  line-height: 1.68;
  color: var(--text-3);
}

.footer-bottom {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ═══ DOWNLOAD APP MODAL (<dialog>) ═══ */
.download-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 480px;
  width: calc(100% - 32px);
  color: var(--text-1);
}

.download-dialog::backdrop {
  background: rgba(5, 7, 6, 0.72);
  backdrop-filter: blur(8px);
}

.dl-modal-card {
  background: var(--surface);
  border: 1.2px solid var(--border-gold);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--preview-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dl-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dl-modal-title {
  margin-top: 8px;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-1);
}

.dl-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-2);
  font-size: 1.25rem;
  line-height: 1;
}

.dl-close-btn:hover {
  color: var(--text-1);
  border-color: var(--border-gold);
}

.dl-modal-sub {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.58;
}

.dl-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.dl-option:hover {
  border-color: var(--border-gold);
  background: var(--tint);
}

.dl-opt-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.dl-opt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

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

.dl-opt-meta {
  font-size: 0.78rem;
  color: var(--text-2);
}

.dl-opt-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bullish);
  background: var(--bullish-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

.dl-modal-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dl-or {
  font-size: 0.8125rem;
  color: var(--text-2);
}

.dl-web-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.dl-web-link:hover {
  text-decoration: underline;
}

/* ── Subtle Reveal Animation ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

.js-anim .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .btn, .card, .chart-stroke { transition: none; }
}

/* ═══ RESPONSIVE BREAKPOINTS ═══ */
@media (max-width: 1120px) {
  .hero-grid,
  .copilot-studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .markets-grid,
  .engine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bento-row-1 {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .bento-row-2,
  .bento-row-3,
  .steps-grid,
  .copilot-bottom-pillars {
    grid-template-columns: 1fr;
  }
  .markets-grid,
  .engine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .markets-grid,
  .engine-grid,
  .risk-bar,
  .preview-mini-row {
    grid-template-columns: 1fr;
  }
  .preview-card {
    padding: 18px 16px;
  }
  .preview-price {
    font-size: 1.25rem;
  }
  .budget-stats {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-ctas {
    width: 100%;
  }
  .hero-eyebrow {
    white-space: normal;
    max-width: 100%;
  }
  /* Small phones: the theme button keeps its icon only, so the header fits. */
  #themeLabel {
    display: none;
  }
}
