/* ════════════════════════════════════════════════════════════════
   MrChart — Coming Soon (static)
   Tokens lifted directly from FRONTEND/src/app/globals.css so the
   look matches the production landing 1:1.
   ════════════════════════════════════════════════════════════════ */

:root {
  /* MC primitives */
  --mc-white:#FFFFFF; --mc-black:#000000;
  --mc-navy-900:#0A192F; --mc-navy-800:#1E293B; --mc-navy-700:#233449; --mc-navy-600:#334155;
  --mc-blue-400:#60A5FA; --mc-blue-500:#3B82F6; --mc-blue-600:#2563EB;
  --mc-gray-500:#64748B; --mc-gray-400:#94A3B8; --mc-gray-300:#CBD5E1; --mc-gray-200:#E2E8F0;
  --mc-gray-100:#F1F5F9; --mc-gray-50:#F8FAFC;
  --mc-red-energy:#EF2224; --mc-red-decline:#EF4444; --mc-red-600:#DC2626; --mc-red-700:#B91C1C;
  --mc-yellow-500:#FED939; --mc-yellow-400:#FACC15; --mc-yellow-600:#EAB308;
  --mc-gold-500:#A47E3C; --mc-gold-400:#C99B54; --mc-gold-600:#8A6A32;
  --mc-green-500:#22C55E; --mc-green-600:#16A34A; --mc-green-700:#15803D;

  /* Semantics — dark default */
  --primary:        var(--mc-blue-500);
  --primary-hover:  var(--mc-blue-600);
  --primary-light:  var(--mc-blue-400);
  --primary-bg:     rgba(59,130,246,.12);
  --primary-border: rgba(59,130,246,.32);

  --premium:        var(--mc-gold-500);
  --premium-bg:     rgba(164,126,60,.12);
  --premium-border: rgba(164,126,60,.34);

  --bull:        var(--mc-green-500);
  --bull-bg:     rgba(34,197,94,.12);
  --bull-border: rgba(34,197,94,.28);
  --bear:        var(--mc-red-decline);
  --bear-bg:     rgba(239,68,68,.12);
  --bear-border: rgba(239,68,68,.28);

  --ai:        var(--mc-blue-500);
  --ai-bg:     rgba(59,130,246,.12);
  --ai-border: rgba(59,130,246,.32);

  --warning:        var(--mc-yellow-500);
  --warning-bg:     rgba(254,217,57,.12);
  --warning-border: rgba(254,217,57,.32);

  --bg-body:       var(--mc-navy-900);
  --bg-secondary:  #0F1F38;
  --bg-card:       var(--mc-navy-800);
  --bg-card-hover: var(--mc-navy-700);
  --bg-elevated:   var(--mc-navy-700);
  --bg-input:      #0F1F38;
  --bg-navbar:     rgba(10,25,47,.88);

  --text-primary:   var(--mc-white);
  --text-secondary: var(--mc-gray-200);
  --text-muted:     var(--mc-gray-500);
  --text-disabled:  #475569;

  --text-bull:    var(--mc-green-500);
  --text-bear:    var(--mc-red-decline);
  --text-warning: var(--mc-gray-400);
  --text-premium: var(--mc-gold-400);
  --text-ai:      var(--mc-blue-400);

  --border:       var(--mc-navy-800);
  --border-light: var(--mc-navy-700);
  --border-strong:#334155;
  --border-card:  rgba(255,255,255,.06);
  --glass-bg:     rgba(10,25,47,.84);
  --glass-border: rgba(59,130,246,.10);

  --shadow-card:  0 1px 2px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.05);
  --shadow-lg:    0 24px 44px rgba(0,0,0,.50);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.32);
  --shadow-glow:  0 0 28px rgba(59,130,246,.30);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-en: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: 'Tajawal', 'Inter', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-spring:   cubic-bezier(.34,1.56,.64,1);

  color-scheme: dark;
}

/* Light theme */
[data-theme="light"] {
  --bg-body:       var(--mc-gray-50);
  --bg-secondary:  var(--mc-gray-100);
  --bg-card:       var(--mc-white);
  --bg-card-hover: var(--mc-gray-50);
  --bg-elevated:   var(--mc-gray-100);
  --bg-input:      var(--mc-gray-100);
  --bg-navbar:     rgba(255,255,255,.90);

  --text-primary:   var(--mc-navy-900);
  --text-secondary: var(--mc-navy-800);
  --text-muted:     var(--mc-gray-500);
  --text-disabled:  var(--mc-gray-400);

  --text-bull:    var(--mc-green-700);
  --text-bear:    var(--mc-red-700);
  --text-warning: var(--mc-gray-500);
  --text-premium: var(--mc-gold-600);
  --text-ai:      var(--mc-blue-600);

  --border:       var(--mc-gray-200);
  --border-light: var(--mc-gray-100);
  --border-strong:var(--mc-gray-300);
  --border-card:  rgba(10,25,47,.08);
  --glass-bg:     rgba(255,255,255,.86);
  --glass-border: rgba(10,25,47,.08);

  --shadow-card:  0 1px 2px rgba(10,25,47,.06), 0 0 0 1px rgba(10,25,47,.04);
  --shadow-lg:    0 24px 40px rgba(10,25,47,.13);
  --shadow-sm:    0 2px 6px rgba(10,25,47,.08);
  --shadow-glow:  0 0 24px rgba(59,130,246,.20);

  color-scheme: light;
}

/* ════════════════════════════════════════════════════════════════
   Reset / base
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-en);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-block-size: 100dvh;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  font-size: 15px;
  line-height: 1.55;
}
html[lang="ar"] body, [dir="rtl"] body { font-family: var(--font-ar); }
html[lang="en"] body { font-family: var(--font-en); }

img { max-inline-size: 100%; block-size: auto; display: block; }
a {
  color: inherit; text-decoration: none;
  transition: color .2s ease;
}
button { font: inherit; }

/* English-numerics class (matches landing's `.en`) */
.en { font-family: var(--font-en); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96,165,250,.45);
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute; inset-inline-start: -9999px; top: 8px;
  background: var(--primary); color: #fff; padding: .5rem .75rem;
  border-radius: 8px; z-index: 9999;
}
.skip:focus { inset-inline-start: 8px; }

.container {
  max-inline-size: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

/* ════════════════════════════════════════════════════════════════
   Ambient background — matches landing hero blobs + dot grid
   ════════════════════════════════════════════════════════════════ */
.ambient {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
}
.ambient__dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}
[data-theme="light"] .ambient__dotgrid {
  background-image: radial-gradient(circle, rgba(10,25,47,.035) 1px, transparent 1px);
}
.ambient__blob {
  position: absolute; border-radius: 50%;
  filter: blur(160px);
  will-change: transform;
}
.ambient__blob--a {
  inline-size: 700px; block-size: 700px;
  top: -5%; inset-inline-end: -5%;
  background: var(--primary); opacity: .07;
  animation: blob-a 20s ease-in-out infinite;
}
.ambient__blob--b {
  inline-size: 600px; block-size: 600px;
  bottom: 0; inset-inline-start: -5%;
  background: var(--mc-yellow-500); opacity: .04;
  animation: blob-b 25s ease-in-out infinite;
}
.ambient__blob--c {
  inline-size: 500px; block-size: 500px;
  top: 35%; inset-inline-start: 40%;
  background: var(--bull); opacity: .035;
  animation: blob-c 18s ease-in-out infinite;
}
@keyframes blob-a {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(60px,-40px) scale(1.08); }
  66%     { transform: translate(-30px,50px) scale(.95); }
}
@keyframes blob-b {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(-50px,60px) scale(.92); }
  66%     { transform: translate(40px,-30px) scale(1.06); }
}
@keyframes blob-c {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px,30px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__blob { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   Reveal utilities (match SectionReveal / StaggerGroup)
   ════════════════════════════════════════════════════════════════ */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.reveal.is-in,
.reveal-stagger.is-in > * {
  opacity: 1; transform: none;
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .10s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .22s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .34s; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: .40s; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: .46s; }
.reveal-stagger.is-in > *:nth-child(9) { transition-delay: .52s; }
.reveal-stagger.is-in > *:nth-child(10){ transition-delay: .58s; }
.reveal-stagger.is-in > *:nth-child(11){ transition-delay: .64s; }
.reveal-stagger.is-in > *:nth-child(12){ transition-delay: .70s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════════════════════════════════════════
   Nav
   ════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: 56px;
  background: var(--bg-navbar);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-block-end: 1px solid var(--glass-border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  block-size: 100%; gap: 16px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800;
}
.nav__logo {
  inline-size: 32px; block-size: 32px;
  border-radius: 8px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
.nav__logo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.nav__brand strong { font-size: 14px; font-weight: 800; }
@media (max-width: 480px) { .nav__brand strong { display: none; } }

.nav__links {
  display: none;
  gap: 28px;
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
}
@media (min-width: 1024px) { .nav__links { display: inline-flex; } }
.nav__links a:hover { color: var(--text-primary); }

.nav__actions { display: inline-flex; align-items: center; gap: 6px; }

.icon-btn {
  inline-size: 32px; block-size: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: transparent; color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.icon-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}
.icon-btn .icon-sun { display: none; }
[data-theme="light"] .icon-btn .icon-sun { display: inline; }
[data-theme="light"] .icon-btn .icon-moon { display: none; }

/* ── Segmented language switch (EN / ع) ── */
.lang-switch {
  position: relative;
  display: inline-flex;
  padding: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  isolation: isolate;
}
.lang-switch__btn {
  position: relative;
  z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  min-inline-size: 34px; block-size: 26px;
  padding-inline: 10px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: color .25s ease;
}
.lang-switch__btn[data-lang="ar"] { font-family: var(--font-ar); font-size: 13px; }
.lang-switch__btn[aria-pressed="true"] { color: #fff; }
.lang-switch__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(96,165,250,.45); }
.lang-switch__thumb {
  position: absolute; z-index: 1;
  top: 3px; bottom: 3px;
  inline-size: calc(50% - 3px);
  inset-inline-start: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(59,130,246,.32);
  transition: transform .35s var(--ease-spring);
}
.lang-switch[data-active="ar"] .lang-switch__thumb { transform: translateX(100%); }
[dir="rtl"] .lang-switch[data-active="ar"] .lang-switch__thumb { transform: translateX(-100%); }

/* ════════════════════════════════════════════════════════════════
   Buttons (match shadcn-ish primary)
   ════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 18px; block-size: 44px;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease-out-expo), box-shadow .25s var(--ease-out-expo), background .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 24px rgba(59,130,246,.30);
}
.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 12px 44px rgba(59,130,246,.50);
  transform: translateY(-1px);
}
.btn--lg { block-size: 52px; padding: 0 28px; font-size: 15px; }

[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* ════════════════════════════════════════════════════════════════
   Hero
   ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-block: clamp(60px, 9vw, 110px);
  padding-block-end: 0;
  isolation: isolate;
}
.hero__inner {
  text-align: center;
}
.hero__badges {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-block-end: 36px;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; block-size: 24px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
  letter-spacing: .02em;
}
.badge--primary { background: var(--primary-bg); color: var(--text-ai); border-color: var(--primary-border); }
.badge--premium { background: var(--premium-bg); color: var(--text-premium); border-color: var(--premium-border); }
.badge--ai      { background: var(--ai-bg); color: var(--text-ai); border-color: var(--ai-border); }
.badge--success { background: var(--bull-bg); color: var(--text-bull); border-color: var(--bull-border); }

.badge__pulse {
  inline-size: 6px; block-size: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 currentColor; }
  50%     { box-shadow: 0 0 0 6px transparent; }
}

.hero__title {
  margin: 0 auto 24px;
  max-inline-size: 900px;
  font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero__title-line {
  display: block;
  padding-block-end: 4px;
}
.hero__hl {
  color: var(--primary);
}

.hero__lede {
  max-inline-size: 56ch;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
}

/* Countdown */
.countdown {
  list-style: none; padding: 0;
  margin: clamp(28px, 4vw, 44px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(8px, 1.5vw, 14px);
  max-inline-size: 600px;
}
.countdown li {
  position: relative; overflow: hidden;
  padding: clamp(14px, 2vw, 22px) 8px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-out-expo), border-color .25s ease;
}
.countdown li::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; block-size: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: .55;
}
.countdown li:hover { transform: translateY(-2px); border-color: var(--primary-border); }
.countdown strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1.05;
}
.countdown span {
  display: block; margin-block-start: 6px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* Notify form */
.notify {
  margin: clamp(28px, 4vw, 40px) auto 0;
  max-inline-size: 560px;
}
.notify__label {
  display: block; margin-block-end: 10px;
  color: var(--text-muted);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700;
}
.notify__row {
  display: flex; align-items: stretch; gap: 6px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.notify__row:focus-within {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-glow);
}
.notify__input {
  flex: 1; min-inline-size: 0;
  padding: 0 16px; block-size: 44px;
  border: 0; outline: none; background: transparent;
  color: var(--text-primary);
  font: 500 14px/1 var(--font-en);
}
.notify__input::placeholder { color: var(--text-muted); }
.notify__btn {
  block-size: 44px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
}
.notify__help {
  margin: 12px 0 0; min-block-size: 1.2em;
  color: var(--text-muted); font-size: 12px;
}
.notify__help[data-state="ok"]    { color: var(--text-bull); }
.notify__help[data-state="error"] { color: var(--text-bear); }

.hp {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); border: 0;
}

/* Hero assurances */
.hero__assurances {
  margin: 22px 0 0;
  display: inline-flex; flex-wrap: wrap; gap: 18px; justify-content: center;
  font-size: 11px; color: var(--text-muted);
}
.hero__assurances span { display: inline-flex; align-items: center; gap: 6px; }
.hero__assurances svg { color: var(--text-bull); }

/* ════════════════════════════════════════════════════════════════
   Ticker
   ════════════════════════════════════════════════════════════════ */
.ticker {
  margin-block-start: clamp(40px, 6vw, 64px);
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-secondary) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  position: relative; z-index: 1;
}
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-loop 50s linear infinite;
  will-change: transform;
}
.ticker__track:hover { animation-play-state: paused; }
@keyframes ticker-loop {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}
.ticker__set { display: inline-flex; flex-shrink: 0; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-family: var(--font-en);
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.ticker__dot {
  inline-size: 6px; block-size: 6px; border-radius: 50%; flex-shrink: 0;
}
.ticker__dot--up   { background: var(--bull); }
.ticker__dot--down { background: var(--bear); }
.ticker__item b { font-weight: 700; color: var(--text-primary); }
.ticker__item i { font-style: normal; color: var(--text-muted); }
.ticker__item em { font-style: normal; font-weight: 600; }
.ticker__item em.up   { color: var(--text-bull); }
.ticker__item em.down { color: var(--text-bear); }

/* ════════════════════════════════════════════════════════════════
   Stats
   ════════════════════════════════════════════════════════════════ */
.stats {
  background: var(--bg-secondary);
  border-block-end: 1px solid var(--border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 36px;
  padding-block: clamp(48px, 6vw, 64px);
  text-align: center;
}
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat__icon {
  inline-size: 44px; block-size: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.stat__icon--primary { background: var(--primary-bg); border-color: var(--primary-border); color: var(--text-ai); }
.stat__icon--bull    { background: var(--bull-bg);    border-color: var(--bull-border);    color: var(--text-bull); }
.stat__icon--premium { background: var(--premium-bg); border-color: var(--premium-border); color: var(--text-premium); }
.stat__icon--ai      { background: var(--ai-bg);      border-color: var(--ai-border);      color: var(--text-ai); }
.stat strong {
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin-block-start: 4px;
  letter-spacing: -.02em;
}
.stat small { font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════
   Sections
   ════════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 144px);
}
.section--soft {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
}
.section__head {
  text-align: center;
  margin-block-end: clamp(48px, 6vw, 72px);
}
.section__head .badge { margin-block-end: 18px; }
.section__head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.section__head p {
  margin: 0 auto;
  max-inline-size: 56ch;
  color: var(--text-secondary);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════════
   Modules grid (What's inside)
   ════════════════════════════════════════════════════════════════ */
.modules {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.module {
  position: relative;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out-expo),
              border-color .35s ease,
              box-shadow .35s ease;
}
.module:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}
.module__icon {
  inline-size: 40px; block-size: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-block-end: 14px;
}
.module__icon--primary { background: var(--primary-bg); border-color: var(--primary-border); color: var(--text-ai); }
.module__icon--bull    { background: var(--bull-bg);    border-color: var(--bull-border);    color: var(--text-bull); }
.module__icon--bear    { background: var(--bear-bg);    border-color: var(--bear-border);    color: var(--text-bear); }
.module__icon--premium { background: var(--premium-bg); border-color: var(--premium-border); color: var(--text-premium); }
.module__icon--ai      { background: var(--ai-bg);      border-color: var(--ai-border);      color: var(--text-ai); }
.module__icon--warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--text-premium); }

.module h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.module p  { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ════════════════════════════════════════════════════════════════
   Features grid (Why MrChart) — colored card variants
   ════════════════════════════════════════════════════════════════ */
.features {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.feature {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-out-expo),
              border-color .4s ease,
              box-shadow .4s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature__icon {
  inline-size: 44px; block-size: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-block-end: 18px;
}
.feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.feature p  { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.feature--primary .feature__icon { background: var(--primary-bg); border-color: var(--primary-border); color: var(--text-ai); }
.feature--primary:hover { border-color: var(--primary-border); }
.feature--premium .feature__icon { background: var(--premium-bg); border-color: var(--premium-border); color: var(--text-premium); }
.feature--premium:hover { border-color: var(--premium-border); }
.feature--bull    .feature__icon { background: var(--bull-bg);    border-color: var(--bull-border);    color: var(--text-bull); }
.feature--bull:hover    { border-color: var(--bull-border); }
.feature--ai      .feature__icon { background: var(--ai-bg);      border-color: var(--ai-border);      color: var(--text-ai); }
.feature--ai:hover      { border-color: var(--ai-border); }
.feature--warning .feature__icon { background: var(--warning-bg); border-color: var(--warning-border); color: var(--text-premium); }
.feature--warning:hover { border-color: var(--warning-border); }

/* ════════════════════════════════════════════════════════════════
   CTA card
   ════════════════════════════════════════════════════════════════ */
.cta {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(ellipse at 80% 0%, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--premium) 8%, transparent) 0%, transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.cta .badge { margin-block-end: 18px; }
.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.cta p {
  margin: 0 auto 26px;
  max-inline-size: 50ch;
  color: var(--text-secondary);
  font-size: 14px; line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════
   Footer
   ════════════════════════════════════════════════════════════════ */
.foot {
  border-block-start: 1px solid var(--border);
  background: var(--bg-card);
}
.foot__inner {
  padding-block: 36px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 768px) {
  .foot__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.foot__brand {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-weight: 800;
}
.foot__brand p {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 12px; font-weight: 400;
  color: var(--text-muted);
  max-inline-size: 38ch;
}
.foot__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: 11px; color: var(--text-muted);
}
.foot__bottom a:hover { color: var(--text-ai); }
