/* UAE Stocks — marketing site. Dark-premium fintech, trust-blue + profit-green. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #2563EB;
  --brand-2: #3B82F6;
  --brand-soft: rgba(59, 130, 246, 0.14);
  --up: #10B981;
  --down: #F87171;
  --gold: #D4A94A;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* Dark (default) */
:root, [data-theme="dark"] {
  --bg: #0A0E17;
  --bg-2: #0E1422;
  --surface: #141B2B;
  --surface-2: #1A2236;
  --text: #F8FAFC;
  --text-2: #9AA7BD;
  --text-3: #5C677D;
  --border: #26304A;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] {
  --bg: #F4F6FA;
  --bg-2: #EEF1F7;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --text: #0F172A;
  --text-2: #5B6678;
  --text-3: #94A3B8;
  --border: #E4E8F0;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 88px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2);
}
.muted { color: var(--text-2); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 600; font-size: 15px; border-radius: 999px; padding: 12px 22px;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, opacity .15s ease;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: 14px; min-height: 40px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; font-weight: 600; font-size: 14px;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .sun { display: block; } [data-theme="dark"] .moon { display: none; }
[data-theme="light"] .sun { display: none; } [data-theme="light"] .moon { display: block; }

/* Hero */
.hero { position: relative; padding-top: 64px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(37, 99, 235, 0.20), transparent 70%),
    radial-gradient(50% 40% at 10% 10%, rgba(16, 185, 129, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero h1 .accent { color: var(--brand-2); }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); margin-top: 18px; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.store-badge small { display: block; font-size: 10px; color: var(--text-2); letter-spacing: .04em; }
.store-badge strong { font-size: 16px; }
.store-badge svg { width: 22px; height: 22px; }

/* Phone mockup */
.phone {
  width: 280px; max-width: 78vw; margin-inline: auto; aspect-ratio: 280 / 580;
  background: var(--surface); border: 10px solid #0b0f1a; border-radius: 42px;
  box-shadow: var(--shadow); padding: 14px 12px; position: relative; overflow: hidden;
}
[data-theme="light"] .phone { border-color: #0b0f1a; }
.phone .notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0b0f1a; border-radius: 999px; }
.screen { height: 100%; border-radius: 30px; background: linear-gradient(180deg, var(--bg-2), var(--surface)); padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 12px; }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 44px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 14px; font-weight: 500;
}
.chip svg { width: 16px; height: 16px; color: var(--up); }

/* Section heading */
.head { max-width: 620px; margin-inline: auto; text-align: center; margin-bottom: 48px; }
.head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-top: 12px; }
.head p { color: var(--text-2); margin-top: 14px; font-size: 17px; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-2); margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; } .col-6 { grid-column: span 6; }
.card.feature-wide { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.card.feature-wide .grow { flex: 1; min-width: 220px; }

/* Screens row */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.screens .phone { width: 100%; }

/* App Store designed screenshots gallery */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.shot {
  width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: transform .2s ease;
}
.shot:hover { transform: translateY(-4px); }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand), #1E3A8A); color: #fff;
  border-radius: 26px; padding: 56px 32px; text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.cta-band p { opacity: .9; margin-top: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); margin-top: 26px; }
.cta-band .btn-primary:hover { background: #eef2ff; }

/* Disclaimer + footer */
.note {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; color: var(--text-2); font-size: 13.5px; display: flex; gap: 12px; align-items: flex-start;
}
.note svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }
footer { border-top: 1px solid var(--border); padding-block: 40px; margin-top: 24px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot a { color: var(--text-2); font-size: 14px; }
.foot a:hover { color: var(--text); }
.foot .nav-spacer { min-width: 20px; }

/* Legal pages */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.legal h2 { font-size: 22px; font-weight: 700; margin-top: 36px; }
.legal p, .legal li { color: var(--text-2); margin-top: 12px; font-size: 16px; }
.legal ul { padding-inline-start: 22px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-top: 8px; }

/* Focus + motion */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 900px) {
  .section { padding-block: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero .lead { max-width: none; }
  .nav-links { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-3, .col-2, .col-6 { grid-column: span 2; }
  .screens { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .col-3, .col-2, .col-6 { grid-column: span 1; }
}
