/* ============================================================
   WeMasterTrade landing — base styles & brand tokens
   Brand colours/fonts taken from wemastertrade-mena.com.
   Section-specific styles live in sections/<name>/section.css
   ============================================================ */
:root {
  --bg: #0C0C0C;
  --bg-alt: #141414;
  --card: #1E1E1E;
  --card-on: #282828;
  --line: #2F2F2F;
  --line-strong: #4D4D4D;
  --text: #FFFFFF;
  --text-soft: #E3E1DA;
  --muted: #BDBDBD;
  --faint: #9E9E9E;
  --yellow: #FACC15;
  --yellow-hover: #FDE047;
  --green: #01C246;
  --tg: #2AABEE;
  --tg-hover: #4FBBF2;
  --ink: #0C0C0C;
  --radius: 18px;
  --wrap: 1160px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  color-scheme: dark;
}
html[lang="fa"] { --font-head: 'Vazirmatn', 'Poppins', sans-serif; --font-body: 'Vazirmatn', 'Montserrat', sans-serif; }
html[lang="am"] { --font-head: 'Noto Sans Ethiopic', 'Poppins', sans-serif; --font-body: 'Noto Sans Ethiopic', 'Montserrat', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.15; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="am"] h1, html[lang="am"] h2 { line-height: 1.35; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); }
a:hover { color: var(--yellow-hover); }
:focus-visible { outline: 3px solid var(--tg); outline-offset: 3px; }
.num { direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 80px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-align: center; }
.center { text-align: center; }
.small { font-size: 13px; color: var(--faint); }
em { font-style: normal; color: var(--yellow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 40px; border: 0; font-family: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 58px; padding-inline: 30px; font-size: 18px; }
.btn-tg { background: var(--tg); color: var(--ink); }
.btn-tg:hover { background: var(--tg-hover); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-hover); color: var(--ink); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #22d65e; color: var(--ink); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-outline:hover { color: var(--text); border-color: var(--text-soft); }
.btn-pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42,171,238,.55); } 50% { box-shadow: 0 0 0 12px rgba(42,171,238,0); } }
@media (prefers-reduced-motion: reduce) { .btn-pulse { animation: none; } html { scroll-behavior: auto; } }
.icon { flex: 0 0 auto; }
html[dir="rtl"] .icon-flip { transform: scaleX(-1); }
.icon-check { color: var(--green); }

/* Market chooser (dist/index.html) */
.chooser main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 24px; }
.choose-list { display: flex; flex-direction: column; gap: 14px; width: min(100%, 360px); }
.choose { display: flex; justify-content: center; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.choose span { color: var(--muted); font-weight: 600; }


/* ---- sections/header ---- */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.logo { height: 44px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.lang-switch { display: flex; border: 1px solid var(--line-strong); border-radius: 40px; overflow: hidden; }
.lang-switch a { min-height: 44px; padding: 10px 14px; display: flex; align-items: center; color: var(--text-soft); text-decoration: none; font-weight: 700; font-size: 14px; }
.lang-switch a[aria-current="true"] { background: var(--yellow); color: var(--ink); }
@media (max-width: 768px) {
  .header-reg, .header-tg span { display: none; }
  .header-tg { padding: 8px 12px; }
  .logo { height: 38px; }
}


/* ---- sections/promo-bar ---- */
.promo-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; padding: 10px 16px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px; text-align: center; }
.promo-bar[hidden] { display: none; }
.promo-bar a { color: var(--ink); text-decoration: underline; font-weight: 800; }
.promo-timer { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }


/* ---- sections/hero ---- */
.hero { padding-block: 64px 56px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--green); font-size: 14px; font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
html[lang="fa"] .hero h1, html[lang="am"] .hero h1 { letter-spacing: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.hero h1 span { display: block; }
.hero h1 span + span em { color: var(--green); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-reg { font-weight: 700; font-size: 15px; }
.hero-video { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-video figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-soft); font-weight: 600; }
.hero-video figcaption strong { color: var(--green); font-weight: 800; }
.video { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.55); transition: transform .15s ease; }
.video:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
@media (max-width: 768px) { .hero { padding-block: 36px 40px; } .hero-cta, .hero-cta .btn { width: 100%; } }


/* ---- sections/proof ---- */
.proof { background: var(--bg-alt); border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; padding-block: 22px; text-align: center; }
.proof-item { display: flex; flex-direction: column; }
.proof-item strong { font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 800; }
.proof-item:nth-child(1) strong { color: var(--green); }
.proof-item:nth-child(2) strong { color: var(--yellow); }
.proof-item span { color: var(--muted); font-size: 14px; }


/* ---- sections/offer ---- */
.offer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 40px; }
.tab { min-height: 46px; min-width: 130px; padding: 10px 22px; border: 0; border-radius: 40px; background: transparent; color: var(--text-soft); font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.tab-yellow[aria-selected="true"] { background: var(--yellow); color: var(--ink); }
.tab-green[aria-selected="true"] { background: var(--green); color: var(--ink); }
.pkg-panel { width: 100%; display: flex; flex-direction: column; gap: 22px; }
.pkg-panel[hidden] { display: none; }
.pkg-lead { color: var(--muted); text-align: center; max-width: 580px; margin-inline: auto; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }


/* ---- sections/steps ---- */
.steps-inner { display: flex; flex-direction: column; gap: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--ink); background: var(--tg); }
.step:nth-child(2) .step-n { background: var(--yellow); }
.step:nth-child(3) .step-n { background: var(--green); }


/* ---- sections/telegram ---- */
.tg-box { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; background: var(--card); border: 1px solid var(--line-strong); border-radius: 26px; padding: clamp(24px, 5vw, 52px); }
.tg-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tg-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--tg); font-weight: 800; font-size: 14px; }
.tg-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.tg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 1.05rem; }
.tg-list li { display: flex; gap: 10px; align-items: flex-start; }
.tg-list .icon { margin-top: 3px; color: var(--tg); }
.tg-chat { flex: 1 1 300px; max-width: 400px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.chat-head img { height: 30px; width: auto; }
.chat-head small { display: block; color: var(--tg); font-size: 12px; font-weight: 600; }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; }
.bubble.bot { align-self: flex-start; background: var(--card-on); border-end-start-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--tg); color: var(--ink); font-weight: 600; border-end-end-radius: 4px; }
.chat-btn { align-self: flex-start; padding: 8px 14px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 700; }
@media (max-width: 768px) { .tg-copy .btn { width: 100%; } }


/* ---- sections/faq ---- */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { min-height: 58px; padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--yellow); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }


/* ---- sections/final-cta ---- */
.final { padding-top: 0; }
.final-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: clamp(32px, 6vw, 64px); background: var(--card); border: 1px solid var(--line-strong); border-radius: 26px; }
.final-box h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.final-box p { color: var(--muted); font-size: 1.1rem; }
.final-alt { font-weight: 700; font-size: 15px; }
.section.final { padding-top: 80px; }


/* ---- sections/footer ---- */
.site-footer { border-top: 1px solid var(--line); background: #080808; padding-block: 36px; font-size: 12.5px; color: var(--faint); line-height: 1.75; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-top strong, .site-footer b { color: var(--text-soft); }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-top a { color: var(--text-soft); }
@media (max-width: 768px) { .site-footer { padding-bottom: 96px; } }


/* ---- sections/sticky-bar ---- */
.tg-float { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--tg); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.tg-float:hover { color: var(--ink); background: var(--tg-hover); }
.mbar { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; gap: 10px; padding: 10px 12px; background: var(--bg); border-top: 1px solid var(--line); }
.mbar .btn { flex: 1 1 0; padding-inline: 10px; font-size: 15px; min-height: 50px; }
.mbar .btn-tg { flex-grow: 1.4; }
@media (max-width: 768px) { .mbar { display: flex; } .tg-float { display: none; } }


/* ---- sections/popup ---- */
.popup { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.8); }
.popup[hidden] { display: none; }
.popup-box { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 26px 26px; text-align: center; background: var(--card); border: 1px solid var(--yellow); border-radius: 24px; }
.popup-box h2 { font-size: 1.6rem; line-height: 1.25; }
.popup-box p { color: var(--muted); }
.popup-box .btn { width: 100%; }
.popup-close { position: absolute; top: 8px; inset-inline-end: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.popup-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card-on); color: var(--yellow); font-weight: 700; font-size: 13px; }
.popup-alt { font-weight: 700; font-size: 14px; color: var(--muted); }


/* ---- packages/challenge ---- */
/* Package card — shared look for every package (Challenge file holds it; Instant reuses the same classes) */
.pkg-card { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.pkg-card.is-featured { background: var(--card-on); }
.pkg-yellow.is-featured { border-color: var(--yellow); }
.pkg-green.is-featured { border-color: var(--green); }
.pkg-kind { color: var(--muted); font-size: 14px; font-weight: 600; }
.pkg-size { font-family: 'Poppins', sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.pkg-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; color: var(--faint); font-size: 14px; }
.pkg-price strong { font-family: 'Poppins', sans-serif; font-size: 2rem; }
.pkg-yellow .pkg-price strong { color: var(--yellow); }
.pkg-green .pkg-price strong { color: var(--green); }
.pkg-price s { color: var(--faint); font-size: 16px; }
.pkg-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pkg-points li { display: flex; gap: 10px; align-items: flex-start; }
.pkg-points .icon { margin-top: 2px; }
.pkg-cta { margin-top: auto; border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.pkg-cta:hover { color: var(--text); border-color: var(--text-soft); }
.pkg-yellow.is-featured .pkg-cta { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.pkg-green.is-featured .pkg-cta { background: var(--green); color: var(--ink); border-color: var(--green); }
