/* ===== رصد -- shared marketing-site design system =====
   Used by every page under src/rasad/web/static/landing*.html (Home,
   ویژگی‌ها, درباره ما, اخبار, تماس با ما) -- one light, airy visual
   language instead of one long dark single-page scroll. Self-hosted
   Vazirmatn only (no CDN, matching this project's own app.css), light
   ground with a the Boursima navy + turquoise brand palette (teal/gold for variety),
   and real product screenshots (docs.js's own Playwright-captured
   images) standing in for photography this project has no honest way to
   fabricate. */

@font-face { font-family:"Vazirmatn"; font-weight:400; font-display:swap; src:url("/app/static/fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family:"Vazirmatn"; font-weight:500; font-display:swap; src:url("/app/static/fonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family:"Vazirmatn"; font-weight:600; font-display:swap; src:url("/app/static/fonts/Vazirmatn-SemiBold.woff2") format("woff2"); }
@font-face { font-family:"Vazirmatn"; font-weight:700; font-display:swap; src:url("/app/static/fonts/Vazirmatn-Bold.woff2") format("woff2"); }

:root {
  /* Boursima brand (brand book 1.2): navy + turquoise on a neutral lead ground.
     The same palette the app's own default theme uses, so the public site and
     the product read as one system. Other site themes (below) override these. */
  --bg: #f2f6f8;
  --bg-2: #e8eff3;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --surface-3: #e9f0f3;
  --line: #dce6eb;
  --line-soft: rgba(9, 117, 128, .20);
  --ink: #05274c;
  --ink-dim: #435877;
  --ink-faint: #7a8ca3;
  --accent: #097580;
  --accent-2: #06636d;
  --accent-soft: rgba(9, 117, 128, .09);
  --teal: #0ca6a6;
  --teal-soft: rgba(12, 166, 166, .11);
  --gold: #b8791b;
  --gold-soft: rgba(184, 121, 27, .12);
  --up: #0b9a86;
  --down: #d84a58;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -28px rgba(5, 39, 76, .22);
  --shadow-sm: 0 10px 26px -14px rgba(5, 39, 76, .16);
  --font-fa: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "Vazirmatn", "Segoe UI", Tahoma, sans-serif; /* numbers use Vazirmatn like the rest of the text */
  --container: 1180px;
  /* tokens the themes below also restyle (were literals) */
  --nav-bg: rgba(242, 246, 248, .84);
  --shadow-ink: rgba(5, 39, 76, .3);
  --glow: rgba(9, 117, 128, .45);
  --btn-from: #097580;
  --btn-to: #05274c;
  --on-accent: #fff;
  --down-soft: rgba(216, 74, 88, .12);
  --stage-grad: linear-gradient(135deg, #05274C 0%, #073C65 42%, #097580 68%, #0CA6A6 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x on html too, not just body: the decorative glow blobs below
   are absolutely positioned with deliberately off-canvas offsets (so they
   bleed softly past the edge on wide screens); some mobile browsers size
   the layout viewport from an element's un-clipped natural extent before
   overflow:hidden/clip is applied, which can otherwise force the whole
   page wider than the device on narrow screens even though nothing is
   ever visually cut off. */
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

html, body { background: var(--bg); color: var(--ink); }
body {
  direction: rtl;
  font-family: var(--font-fa);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; letter-spacing: -.01em; color: var(--ink); }
p { color: var(--ink-dim); text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--accent-2); }

.num { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }

/* ---------- ambient background: soft glow blobs, very low opacity ---------- */
.bg-fixed { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; }
.orb-1 { width: 620px; height: 620px; top: -260px; inset-inline-end: -160px; background: var(--accent-soft); }
.orb-2 { width: 520px; height: 520px; top: 620px; inset-inline-start: -220px; background: var(--teal-soft); }
.orb-3 { width: 460px; height: 460px; top: 1400px; inset-inline-end: -140px; background: var(--gold-soft); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.nav.on { border-color: var(--line); box-shadow: 0 6px 24px -18px var(--shadow-ink); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none; background: #fff; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -6px var(--glow), 0 0 0 1px rgba(5,39,76,.08);
}
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--ink-dim); }
.nav-links a { position: relative; transition: color .15s ease; white-space: nowrap; padding-block: 4px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--accent-2); font-weight: 600; }
.nav-links a.on::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 38px; height: 38px; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-dim); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(155deg, var(--btn-from), var(--btn-to)); color: var(--on-accent); box-shadow: 0 14px 28px -12px var(--glow); }
.btn-primary:hover { box-shadow: 0 18px 34px -10px var(--glow); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.btn-sm { height: 38px; padding-inline: 16px; font-size: 13.5px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--accent-soft);
  color: var(--accent-2); font-size: 13px; font-weight: 600;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

/* ---------- page header (non-home pages) ---------- */
.page-head { padding-block: 56px 40px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 42px); margin-block: 16px 12px; }
.page-head p { font-size: 16.5px; max-width: 56ch; margin-inline: auto; }

/* ---------- section shell ---------- */
.section-head { max-width: 680px; margin-block-end: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-block: 14px 12px; }
.section-head p { font-size: 16px; }
.pad { padding-block: 84px; }
.pad-sm { padding-block: 60px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ---------- cards / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm);
  padding: 26px; display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-soft); transform: translateY(-3px); box-shadow: var(--shadow); }
.card.big { grid-column: span 2; grid-row: span 2; }
.card.wide { grid-column: span 2; }
.card-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); margin-block-end: 16px; flex: none; }
.card-ic svg { width: 21px; height: 21px; stroke: var(--accent-2); }
.card.teal .card-ic { background: var(--teal-soft); }
.card.teal .card-ic svg { stroke: var(--teal); }
.card.gold .card-ic { background: var(--gold-soft); }
.card.gold .card-ic svg { stroke: var(--gold); }
.card h3 { font-size: 17.5px; margin-block-end: 8px; }
.card.big h3 { font-size: 22px; }
.card p { font-size: 14px; flex: 1; }
.card-foot { margin-block-start: 14px; font-size: 12.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 6px; }
.card-foot svg { width: 13px; height: 13px; stroke: currentColor; }

/* real product screenshot, framed like a browser window */
.shot-frame {
  position: relative; margin-block-start: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2); overflow: hidden;
  box-shadow: 0 18px 40px -22px var(--shadow-ink);
}
.shot-frame .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.shot-frame .bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.shot-frame img { display: block; width: 100%; height: auto; }
.card.big .shot-frame { margin-block-start: auto; }

/* ---------- stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 26px 22px; text-align: center; }
.stat .v { font-family: var(--font-mono); direction: ltr; font-size: 30px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: baseline; gap: 4px; }
.stat .v small { font-size: 16px; color: var(--accent-2); }
.stat .l { margin-block-start: 8px; font-size: 13.5px; color: var(--ink-dim); }

/* ---------- philosophy pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.pillar .q { font-family: var(--font-mono); direction: ltr; font-size: 22px; color: var(--gold); margin-block-end: 12px; }
.pillar h4 { font-size: 16px; margin-block-end: 8px; }
.pillar p { font-size: 14px; }

/* ---------- values ---------- */
.values { display: flex; flex-direction: column; gap: 18px; }
.value { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.value .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); display: grid; place-items: center; }
.value .ic svg { width: 19px; height: 19px; stroke: var(--teal); }
.value h4 { font-size: 15px; margin-block-end: 4px; color: var(--ink); }
.value p { font-size: 13.5px; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .news-date { font-family: var(--font-mono); direction: ltr; font-size: 12.5px; color: var(--ink-faint); }
.news-tag { display: inline-block; align-self: flex-start; font-size: 11.5px; color: var(--accent-2); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.news-card h3 { font-size: 17px; }
.news-card p { font-size: 14px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.form-card { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: 32px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 7px; margin-block-end: 18px; }
.field label { font-size: 13px; color: var(--ink-dim); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { font-size: 13.5px; margin-block-start: 12px; display: none; align-items: center; gap: 8px; color: var(--teal); }
.form-msg.on { display: flex; }
.form-msg svg { width: 15px; height: 15px; stroke: var(--teal); flex: none; }

.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.contact-card .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; }
.contact-card .ic svg { width: 18px; height: 18px; stroke: var(--accent-2); }
.contact-card h4 { font-size: 14.5px; margin-block-end: 4px; }
.contact-card p { font-size: 13.5px; direction: ltr; text-align: right; }
.contact-note { font-size: 12.5px; color: var(--ink-faint); border-inline-start: 2px solid var(--line); padding-inline-start: 12px; }

/* ---------- final CTA ---------- */
.cta-band { border-radius: var(--radius-lg); border: 1px solid var(--line-soft); background: linear-gradient(155deg, var(--surface), var(--surface-2)); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 50% -20%, var(--accent-soft), transparent 70%); pointer-events: none; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-block-end: 12px; }
.cta-band p { max-width: 52ch; margin-inline: auto; margin-block-end: 26px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { border-block-start: 1px solid var(--line); padding-block: 54px 30px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-block-end: 40px; }
.foot-brand p { font-size: 13.5px; max-width: 34ch; margin-block-start: 12px; }
.foot-col h5 { font-size: 13px; color: var(--ink); margin-block-end: 14px; }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13.5px; color: var(--ink-dim); transition: color .15s ease; }
.foot-col a:hover { color: var(--accent-2); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-block-start: 24px; border-block-start: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); flex-wrap: wrap; gap: 10px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-dim); }

/* ---------- scroll reveal (progressive enhancement only) ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }

/* ---------- mobile ---------- */
@media (max-width: 980px) {
  .hero-grid, .preview-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillars, .news-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(200px, auto); }
  .card.big { grid-column: span 2; grid-row: span 1; }
  .stats-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .bento { grid-template-columns: 1fr; }
  .card.big, .card.wide { grid-column: span 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
}
@media (max-width: 420px) {
  .container { padding-inline: 16px; }
}


/* ===== themes =====
   The site admin picks one (رصد admin → محتوای سایت معرفی → پوستهٔ سایت);
   js/landing-theme.js stamps it on <html data-landing-theme="...">. Only
   tokens change -- "classic" is the :root block above. Names must match
   rasad.landing_content.LANDING_THEMES. */
html[data-landing-theme="night"] {
  color-scheme: dark;
  --bg: #0b1222; --bg-2: #0f182d; --surface: #121c33; --surface-2: #16223c; --surface-3: #1b2946;
  --line: #24334f; --line-soft: rgba(96, 140, 255, .24);
  --ink: #e8eefc; --ink-dim: #a7b4d0; --ink-faint: #7585a6;
  --accent: #5b8bff; --accent-2: #9db9ff; --accent-soft: rgba(91, 139, 255, .16);
  --teal: #2fd4bf; --teal-soft: rgba(47, 212, 191, .14);
  --gold: #f0b95a; --gold-soft: rgba(240, 185, 90, .14);
  --up: #2fd4bf; --down: #ff6b7a; --down-soft: rgba(255, 107, 122, .16);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7); --shadow-sm: 0 10px 26px -14px rgba(0, 0, 0, .6);
  --nav-bg: rgba(11, 18, 34, .82); --shadow-ink: rgba(0, 0, 0, .6); --glow: rgba(91, 139, 255, .4);
  --btn-from: #4777f2; --btn-to: #2e56c9;
  --stage-grad: linear-gradient(120deg, #0f1a3a, #3a63d8 60%, #14b8a6);
}
html[data-landing-theme="emerald"] {
  --bg: #f3faf7; --bg-2: #e8f5ef; --surface: #ffffff; --surface-2: #f6fcf9; --surface-3: #e8f5ef;
  --line: #d6eadf; --line-soft: rgba(18, 144, 106, .18);
  --ink: #0d2a21; --ink-dim: #40584f; --ink-faint: #7f978d;
  --accent: #12906a; --accent-2: #0b6e51; --accent-soft: rgba(18, 144, 106, .10);
  --teal: #1f7fc4; --teal-soft: rgba(31, 127, 196, .10);
  --up: #12906a;
  --shadow: 0 24px 60px -28px rgba(10, 60, 44, .2); --shadow-sm: 0 10px 26px -14px rgba(10, 60, 44, .18);
  --nav-bg: rgba(243, 250, 247, .82); --shadow-ink: rgba(10, 60, 44, .3); --glow: rgba(18, 144, 106, .4);
  --stage-grad: linear-gradient(120deg, #0b3d2e, #12906a 60%, #2a9fd0);
}
html[data-landing-theme="sunset"] {
  --bg: #fff7f1; --bg-2: #ffeee3; --surface: #ffffff; --surface-2: #fffaf6; --surface-3: #ffeee3;
  --line: #f4dccb; --line-soft: rgba(232, 114, 28, .20);
  --ink: #2a1710; --ink-dim: #6a4d41; --ink-faint: #a58c7f;
  --accent: #e8721c; --accent-2: #b8520e; --accent-soft: rgba(232, 114, 28, .11);
  --gold: #c98a12; --gold-soft: rgba(201, 138, 18, .13);
  --shadow: 0 24px 60px -28px rgba(90, 40, 10, .2); --shadow-sm: 0 10px 26px -14px rgba(90, 40, 10, .18);
  --nav-bg: rgba(255, 247, 241, .82); --shadow-ink: rgba(90, 40, 10, .3); --glow: rgba(232, 114, 28, .42);
  --stage-grad: linear-gradient(120deg, #4a1d36, #e8721c 60%, #f2b233);
}
html[data-landing-theme="royal"] {
  --bg: #f8f6ff; --bg-2: #efebff; --surface: #ffffff; --surface-2: #faf9ff; --surface-3: #efebff;
  --line: #e3dcf8; --line-soft: rgba(106, 67, 224, .18);
  --ink: #1a1233; --ink-dim: #514a6e; --ink-faint: #8b84a8;
  --accent: #6a43e0; --accent-2: #4b2bb5; --accent-soft: rgba(106, 67, 224, .10);
  --shadow: 0 24px 60px -28px rgba(40, 20, 90, .2); --shadow-sm: 0 10px 26px -14px rgba(40, 20, 90, .18);
  --nav-bg: rgba(248, 246, 255, .82); --shadow-ink: rgba(40, 20, 90, .3); --glow: rgba(106, 67, 224, .42);
  --stage-grad: linear-gradient(120deg, #241450, #6a43e0 60%, #d0478f);
}

/* ===== v2 (بازطراحی): هویت بورسیما — هیروی تیره، سرصفحهٔ برند، فوتر و CTA تیره =====
   Everything below uses only tokens (and --stage-grad, which every site theme
   redefines), so the dark brand panels follow whichever theme the admin picks. */

/* ---------- nav ---------- */
.nav-row { height: 70px; }
.brand { font-size: 20px; letter-spacing: -.01em; color: var(--ink); }
.nav-links { gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.nav-links a:hover { background: var(--accent-soft); color: var(--accent-2); }
.nav-links a.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.nav-links a.on::after { display: none; }
.btn-primary { box-shadow: 0 12px 26px -12px var(--glow); }
.btn-ghost { background: var(--surface); }

/* ---------- hero: dark brand panel ---------- */
.hero.container { max-width: calc(var(--container) + 0px); }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-block: 10px 0; padding: 60px 52px 64px; border-radius: 36px;
  background: var(--stage-grad); color: #fff;
  box-shadow: 0 40px 80px -40px rgba(5, 39, 76, .55);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  inset-block-start: -220px; inset-inline-start: -140px; pointer-events: none;
  background: radial-gradient(circle, rgba(12, 166, 166, .42), transparent 68%);
}
.hero-copy h1 { color: #fff; }
.hero-copy h1 em { background: linear-gradient(155deg, #9FF1EA, #ffffff 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { color: rgba(255, 255, 255, .8); }
.hero .eyebrow { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); }
.hero .eyebrow .dot { background: #5eead4; box-shadow: 0 0 0 3px rgba(94, 234, 212, .25); }
.hero .btn-primary { background: #fff; color: #05274c; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .5); }
.hero .btn-primary:hover { background: #effcfb; }
.hero .btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .2); border-color: #fff; color: #fff; }
.hero-note { color: rgba(255, 255, 255, .72); }
.hero-note svg { stroke: #5eead4; }
.hero .chips .lbl { color: rgba(255, 255, 255, .7); }
.hero .chip, .hero .chips a { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .22) !important; color: #fff !important; }
.art-panel { border: 0; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.float-badge { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }

/* ---------- section heads & cards ---------- */
.eyebrow { background: var(--accent-soft); color: var(--accent-2); border-color: var(--line-soft); }
.section-head h2 { letter-spacing: -.02em; }
.pad { padding-block: 92px; }
.card, .pillar, .value, .news-card, .contact-card { border-color: var(--line); }
.card:hover, .news-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.stat .v small { color: var(--accent); }
.stats-row { box-shadow: var(--shadow-sm); }
.divider { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 25%, var(--line)), transparent); }
.more-link, .card-link { color: var(--accent-2); }

/* ---------- page header (inner pages): brand banner ---------- */
.page-head.container {
  position: relative; overflow: hidden; isolation: isolate;
  margin-block: 10px 36px; padding: 60px 28px 56px; max-width: var(--container);
  border-radius: 32px; background: var(--stage-grad); color: #fff; text-align: center;
  box-shadow: 0 34px 70px -40px rgba(5, 39, 76, .55);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 75%);
}
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255, 255, 255, .8); }
.page-head .eyebrow { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.page-head .eyebrow .dot { background: #5eead4; box-shadow: 0 0 0 3px rgba(94, 234, 212, .25); }

/* ---------- final CTA: dark brand band ---------- */
.cta-band {
  border: 0; background: var(--stage-grad); color: #fff; isolation: isolate;
  box-shadow: 0 40px 80px -44px rgba(5, 39, 76, .6);
}
.cta-band::before {
  z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px; background-color: transparent;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 80%);
}
.cta-band h2 { color: #fff; }
.cta-band p, .cta-band .cta-note { color: rgba(255, 255, 255, .8); }
.cta-band .btn-primary { background: #fff; color: #05274c; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .5); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .2); border-color: #fff; color: #fff; }

/* ---------- footer: deep navy ---------- */
footer { background: #05274c; color: #fff; border-block-start: 0; margin-block-start: 30px; padding-block: 60px 28px; }
footer .brand { color: #fff; }
footer .foot-brand p { color: rgba(255, 255, 255, .7); }
footer .foot-brand p b { color: #fff; }
footer .foot-col h5 { color: #fff; font-size: 13.5px; }
footer .foot-col a { color: rgba(255, 255, 255, .7); }
footer .foot-col a:hover { color: #5eead4; }
footer .foot-bottom { border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .55); }
footer .foot-social a { border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8); }
footer .foot-social a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero { padding: 30px 20px 36px; border-radius: 26px; margin-inline: 12px; }
  .hero.container { padding-inline: 20px; }
  .page-head.container { margin-inline: 12px; padding: 40px 20px 38px; border-radius: 26px; }
  .pad { padding-block: 64px; }
  .nav-row { height: 64px; }
}

/* v2 fixes: specificity over the page-level <style> blocks, content-width alignment */
.hero .hero-copy h1 em { background: linear-gradient(155deg, #9FF1EA, #ffffff 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
.hero .chip .p { color: #fff; opacity: .9; }
.hero .chip.dn .d { background: #ff8a95; box-shadow: 0 0 0 3px rgba(255, 138, 149, .25); }
.hero .chip .d { background: #5eead4; box-shadow: 0 0 0 3px rgba(94, 234, 212, .25); }
.hero .chip:hover, .hero .chip.on { background: rgba(255, 255, 255, .2); border-color: #fff; box-shadow: none; }
.hero .hero-note { color: rgba(255, 255, 255, .85); }
.hero.container, .page-head.container { max-width: calc(var(--container) - 48px); }
.hero { margin-block-end: 28px; }
@media (max-width: 760px) { .hero.container, .page-head.container { max-width: none; } }
.cta-band .cta-note { margin-block-end: 20px; font-size: 13px; }

/* ===== v3 (ساختار): ویترین تب‌دار، نوار روش‌شناسی تیره، گام‌های متصل، FAQ دوستونه ===== */

/* ---------- showcase: tabs + autoplay ---------- */
.showcase.sc-on { position: relative; }
.sc-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-block-end: 28px; }
.sc-tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding-inline: 18px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-dim); font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s, background .2s, box-shadow .2s; }
.sc-tab:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink); }
.sc-tab .sc-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-dim); font-size: 12px; font-weight: 700; transition: background .2s, color .2s; }
.sc-tab.on { color: var(--ink); border-color: var(--accent); box-shadow: 0 12px 26px -16px var(--glow); }
.sc-tab.on .sc-n { background: var(--accent); color: #fff; }
.sc-tab .sc-bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: right center; transform: scaleX(0); }
.sc-tab.on .sc-bar { animation: sc-fill 7s linear forwards; }
.sc-manual .sc-tab.on .sc-bar { animation: none; transform: scaleX(1); }
@keyframes sc-fill { to { transform: scaleX(1); } }
.showcase.sc-on > .pillar, .showcase.sc-on > .feature-block { display: none; margin: 0; }
.showcase.sc-on > .sc-active { display: grid; animation: sc-in .45s ease both; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
@keyframes sc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.showcase.sc-on > .pillar:nth-child(odd) .pillar-shot { order: 0; }
.showcase.sc-on .shot-frame { box-shadow: 0 30px 60px -30px var(--shadow-ink); }
@media (max-width: 760px) {
  .sc-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; padding-block: 4px 8px; scrollbar-width: none; }
  .sc-tab { flex: none; height: 44px; }
  .showcase.sc-on > .sc-active { padding: 18px; border-radius: 22px; }
}

/* ---------- «چطور حساب می‌شود»: full-bleed deep-navy band ---------- */
#method { background: #05274c; color: #fff; box-shadow: 0 0 0 100vmax #05274c; clip-path: inset(0 -100vmax); margin-block: 70px; position: relative; }
#method::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 20%, transparent 78%); }
#method .section-head h2, #method .calc-card h3 { color: #fff; }
#method .section-head p, #method .calc-card p { color: rgba(255, 255, 255, .72); }
#method .eyebrow { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
#method .calc-grid { counter-reset: calc; grid-template-columns: repeat(4, 1fr); }
#method .calc-card { counter-increment: calc; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .2s; }
#method .calc-card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(94, 234, 212, .5); transform: translateY(-3px); }
#method .calc-card::before { content: counter(calc, persian); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-block-end: 14px; background: rgba(94, 234, 212, .16); color: #5eead4; font-family: var(--font-mono); font-weight: 700; }
#method .more-link { color: #5eead4; }
@media (max-width: 980px) { #method .calc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #method .calc-grid { grid-template-columns: 1fr; } }

/* ---------- steps: connected timeline ---------- */
.steps { position: relative; gap: 28px; counter-reset: st; }
.steps::before { content: ""; position: absolute; inset-inline: 12%; top: 49px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); opacity: .45; }
.step { position: relative; text-align: center; padding: 28px 22px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.step-n { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(155deg, var(--btn-from), var(--btn-to)); color: #fff; font-size: 17px; box-shadow: 0 10px 22px -10px var(--glow), 0 0 0 6px var(--surface); position: relative; z-index: 1; }
@media (max-width: 980px) { .steps::before { display: none; } }

/* ---------- FAQ: sticky intro + accordion ---------- */
@media (min-width: 981px) {
  #faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
  #faq-section .section-head { position: sticky; top: 100px; text-align: start; margin: 0; max-width: none; }
  #faq-section .section-head.center { margin-inline: 0; text-align: start; }
  #faq-section .faq { max-width: none; margin: 0; }
}
.faq-item { transition: border-color .2s, box-shadow .2s, background .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-2); font-size: 18px; line-height: 1; transition: transform .2s, background .2s; }
.faq-item[open] summary::after { content: "−"; background: var(--accent); color: #fff; }
.steps .step .step-n { background: linear-gradient(155deg, var(--btn-from), var(--btn-to)); color: #fff; width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px; }

/* ===== v4: هیرو و بازار زنده — بازطراحی کامل ===== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes tdraw { to { stroke-dashoffset: 0; } }
@keyframes tkscroll { to { transform: translateX(-50%); } }
@keyframes slotIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slotOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fill { to { width: 100%; } }
@keyframes factIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.btn-lg { height: 52px; padding-inline: 28px; font-size: 15.5px; }
.btn-lg svg { width: 17px; height: 17px; }

/* ---------- hero ---------- */
.hero { padding: 64px 56px 0; border-radius: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.2; margin-block: 22px 20px; letter-spacing: -.02em; }
.hero-copy > p { font-size: 17.5px; line-height: 1.95; max-width: 52ch; margin-block-end: 32px; }
.hero-eyebrow .dot { animation: pulse 1.8s ease-in-out infinite; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-block-end: 30px; }
.hero-actions .btn { gap: 10px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0; }
.hero-proof li { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255, 255, 255, .86); }
.hero-proof svg { width: 18px; height: 18px; flex: none; stroke: #5eead4; fill: none; }

.hero-art { position: relative; min-width: 0; padding-block-end: 8px; }
.term {
  position: relative; border-radius: 28px; padding: 22px 24px 20px; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.term-fallback { padding: 28px 24px 18px; }
.term-note { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .6); margin-block-start: 8px; }
.term-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.term-tag { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.term-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #5eead4; }
.term-live i { width: 7px; height: 7px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 4px rgba(94, 234, 212, .22); animation: pulse 1.6s ease-in-out infinite; }
.term-v { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-block: 12px 4px; }
.term-v b { font-family: var(--font-mono); direction: ltr; font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.term-pill { font-family: var(--font-mono); direction: ltr; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(94, 234, 212, .18); color: #7ff5e0; }
.term-pill.dn { background: rgba(255, 138, 149, .2); color: #ffb3ba; }
.term-sub { font-size: 12.5px; color: rgba(255, 255, 255, .66); }
.term-chart { position: relative; height: 190px; margin-block: 14px 6px; cursor: crosshair; touch-action: pan-y; }
.term-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.term-chart .g { stroke: rgba(255, 255, 255, .1); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.term-chart .ln { fill: none; stroke: #5eead4; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 6px 10px rgba(94, 234, 212, .45)); }
.term-chart .ln.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tdraw 1.5s cubic-bezier(.2, .8, .2, 1) .15s forwards; }
.term-cur { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; }
.term-cur[hidden], .term-tip[hidden] { display: none; }
.term-cur .vl { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(255, 255, 255, .38); }
.term-cur .dt { position: absolute; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #5eead4; border: 2px solid #05274c; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(94, 234, 212, .28); }
.term-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 12px; border-radius: 12px; background: #fff; color: #05274c; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); white-space: nowrap; }
.term-tip b { font-size: 14px; font-family: var(--font-mono); direction: ltr; }
.term-tip span { font-size: 11px; color: #5a6c85; }
.term-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-block-start: 14px; border-block-start: 1px solid rgba(255, 255, 255, .13); }
.term-foot span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .62); }
.term-foot b { font-family: var(--font-mono); direction: ltr; font-size: 15px; font-weight: 700; }
.term-foot b.up { color: #7ff5e0; } .term-foot b.dn { color: #ffb3ba; }
.term-range { display: flex; justify-content: flex-end; gap: 6px; margin-block-start: 14px; }
.term-range button { padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s, color .15s; }
.term-range button:hover { background: rgba(255, 255, 255, .2); }
.term-range button.on { background: #fff; color: #05274c; border-color: #fff; }

.hero-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; background: #fff; color: #05274c; box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .55); font-size: 13px; font-weight: 700; text-decoration: none; animation: float 6s ease-in-out infinite; z-index: 2; }
.hero-float.f1 { top: -22px; inset-inline-start: -26px; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; }
.hero-float.f1 .hf-k { font-size: 11px; font-weight: 500; color: #5a6c85; }
.hero-float.f1 b { font-size: 18px; }
.hero-float.f1 .hf-p { font-family: var(--font-mono); direction: ltr; font-size: 13px; color: var(--up); }
.hero-float.f1.dn .hf-p { color: var(--down); }
.hero-float.f2 { bottom: -10px; inset-inline-end: 26px; animation-delay: 1.4s; }
.hero-float .hf-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #e6f6f6; }
.hero-float .hf-ic svg { width: 16px; height: 16px; stroke: #097580; fill: none; }

.hero-ticker { display: flex; align-items: stretch; margin: 46px -56px 0; border-block-start: 1px solid rgba(255, 255, 255, .15); background: rgba(3, 20, 40, .28); }
.tk-lbl { flex: none; display: flex; align-items: center; padding-inline: 24px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .85); border-inline-end: 1px solid rgba(255, 255, 255, .15); }
.tk-view { flex: 1; min-width: 0; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tk-track { display: flex; gap: 12px; width: max-content; padding-block: 14px; animation: tkscroll 46s linear infinite; }
.tk-view:hover .tk-track { animation-play-state: paused; }
.tk-track.static { animation: none; overflow-x: auto; width: auto; }
.tk { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; direction: rtl; transition: background .15s, border-color .15s; white-space: nowrap; }
.tk:hover { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .4); }
.tk b { font-weight: 700; } .tk span { opacity: .75; font-size: 12px; }
.tk em { font-style: normal; font-size: 12px; font-weight: 700; color: #5eead4; } .tk.dn em { color: #ff9aa4; }

/* ---------- live market board ---------- */
#strip-section { padding-block: 10px 6px; }
.stage { border-radius: 32px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.stage-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 26px; color: #fff; background: var(--stage-grad); }
.stage-head .live { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; }
.stage-head .live .dot { width: 9px; height: 9px; border-radius: 50%; background: #5ff0cf; box-shadow: 0 0 0 4px rgba(95, 240, 207, .25); animation: pulse 1.6s ease-in-out infinite; }
.stage-title { font-size: 14px; font-weight: 600; opacity: .9; text-align: center; }
.stage-head .when { font-size: 12.5px; opacity: .85; text-align: end; }
.stage-body { display: grid; grid-template-columns: 1.1fr .9fr; }
.stage-feature { --tone: var(--up); position: relative; padding: 36px 40px 32px; min-height: 340px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(110% 130% at 0% 0%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 68%); }
.stage-feature.dn { --tone: var(--down); }
.stage-feature .slot { animation: slotIn .5s cubic-bezier(.2, .8, .2, 1); }
.stage-feature.leaving .slot { animation: slotOut .2s ease-in forwards; }
.stage-feature .kind { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-dim); margin-block-end: 8px; }
.stage-feature .kind .kd { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 22%, transparent); }
.stage-feature .name { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.stage-feature .price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-block: 12px 18px; }
.stage-feature .price .n { font-family: var(--font-mono); direction: ltr; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.stage-feature .pill { font-size: 15px; font-weight: 700; padding: 5px 14px; border-radius: 999px; color: #fff; background: var(--tone); box-shadow: 0 10px 20px -10px var(--tone); }
.sf-spark { position: relative; height: 104px; margin-block-end: 18px; color: var(--tone); }
.sf-spark svg { width: 100%; height: 100%; overflow: visible; }
.sf-spark .ln { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tdraw 1.2s cubic-bezier(.2, .8, .2, 1) .1s forwards; }
.sf-cap { position: absolute; inset-inline-start: 0; bottom: -18px; font-size: 11px; color: var(--ink-faint); }
.stage-feature .meter { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 14%, transparent); overflow: hidden; }
.stage-feature .meter i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 55%, #fff)); animation: fillw .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fillw { from { width: 0; } }
.meter-cap { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-faint); margin-block: 6px 18px; font-family: var(--font-mono); direction: ltr; }
.stage-feature .go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); text-decoration: none; transition: background .15s, transform .15s; }
.stage-feature .go:hover { background: color-mix(in srgb, var(--tone) 22%, transparent); transform: translateX(-3px); }
.stage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 26px; align-content: center; border-inline-start: 1px solid var(--line); background: var(--surface-2); }
.stage-item { --tone: var(--up); --k: 0; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tone) calc(10% + var(--k) * 30%), var(--line)); background: color-mix(in srgb, var(--tone) calc(4% + var(--k) * 20%), var(--surface)); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.stage-item.dn { --tone: var(--down); }
.stage-item.wide { grid-column: 1 / -1; padding-block: 18px; }
.stage-item .si-l { font-weight: 700; }
.stage-item .si-c { font-size: 12.5px; font-weight: 700; color: var(--tone); }
.stage-item:hover { transform: translateY(-2px); }
.stage-item.on { border-color: var(--tone); box-shadow: 0 16px 28px -18px var(--tone); background: color-mix(in srgb, var(--tone) calc(10% + var(--k) * 20%), var(--surface)); }
.stage-progress { height: 3px; background: var(--line); }
.stage-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--teal)); }
.stage-progress.run i { animation: fill var(--dur, 4200ms) linear forwards; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block-start: 1px solid var(--line); margin: 0; }
.fact { --tone: var(--accent-2); display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-inline-start: 1px solid var(--line); animation: factIn .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
.fact:first-child { border-inline-start: 0; }
.fact.up { --tone: var(--up); } .fact.dn { --tone: var(--down); } .fact.gold { --tone: #b8791b; }
.fact .ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 13%, transparent); }
.fact .ic svg { width: 20px; height: 20px; stroke: var(--tone); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fact .ft { min-width: 0; }
.fact .v { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; font-size: 21px; font-weight: 800; color: var(--tone); line-height: 1.2; }
.fact .l { font-size: 13px; margin-block-start: 2px; font-weight: 600; }
.fact .s { font-size: 11.5px; color: var(--ink-faint); }
.fact .split { display: flex; height: 5px; border-radius: 999px; overflow: hidden; margin-block-start: 8px; background: var(--down-soft); }
.fact .split i { display: block; background: var(--up); width: var(--w); transition: width .9s cubic-bezier(.2, .8, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  .hero-float, .term-live i, .hero-eyebrow .dot, .tk-track { animation: none; }
  .term-chart .ln.draw, .sf-spark .ln { animation: none; stroke-dashoffset: 0; }
  .stage-feature .slot, .stage-feature.leaving .slot, .fact { animation: none; }
  .stage-progress.run i { animation: none; }
}

@media (max-width: 980px) {
  .hero { padding: 40px 28px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-ticker { margin-inline: -28px; }
  .stage-body { grid-template-columns: 1fr; }
  .stage-list { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n+3) { border-block-start: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hero { padding: 30px 18px 0; border-radius: 28px; }
  .hero-copy > p { font-size: 15.5px; }
  .hero-actions .btn { flex: 1; min-width: 0; padding-inline: 18px; }
  .hero-proof { gap: 8px 18px; }
  .hero-float { display: none; }
  .term { padding: 18px 16px 16px; border-radius: 22px; }
  .term-chart { height: 150px; }
  .hero-ticker { margin: 34px -18px 0; }
  .tk-lbl { display: none; }
  .stage-head { grid-template-columns: 1fr auto; padding: 12px 18px; }
  .stage-title { display: none; }
  .stage-feature { padding: 24px 20px; min-height: 0; }
  .stage-list { padding: 16px; gap: 8px; }
  .stage-item { padding: 12px 13px; }
  .fact { padding: 16px 16px; gap: 10px; }
  .fact .ic { width: 36px; height: 36px; }
  .fact .v { font-size: 18px; }
}

/* v4 fixes */
.hero-float.f1 { top: 34%; inset-inline-start: auto; inset-inline-end: -36px; }
.hero-float.f2 { bottom: -18px; inset-inline-end: auto; inset-inline-start: 30px; }
.stage-feature .pill { font-family: var(--font-mono); direction: ltr; }
@media (max-width: 1180px) { .hero-float.f1 { inset-inline-end: -14px; } }
@media (max-width: 980px) { .hero-art { order: 2; } .hero-copy { order: 1; } }


/* ===== v5: بازار زنده — فشرده و ظریف؛ ارقام با وزیرمتن ===== */
.num, .n, .term-v b, .term-foot b, .term-pill, .stage-feature .price .n, .stage-feature .pill, .stage-item .si-c, .fact .v, .tk span, .tk em, .stat .v, .hero-float .hf-p, .term-tip b, .sc-n { font-family: var(--font-fa); font-variant-numeric: tabular-nums; }

#strip-section { padding-block: 4px 0; }
.stage { border-radius: 24px; box-shadow: var(--shadow-sm); }
.stage-head { padding: 9px 20px; }
.stage-head .live { font-size: 12.5px; }
.stage-title { font-size: 12.5px; }
.stage-head .when { font-size: 12px; }
.stage-body { grid-template-columns: 1.05fr 1.25fr; }
.stage-feature { padding: 18px 24px 16px; min-height: 0; gap: 0; justify-content: center; }
.stage-feature .sf-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.stage-feature .kind { font-size: 11.5px; margin-block-end: 2px; }
.stage-feature .name { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.stage-feature .price { margin: 0; gap: 10px; }
.stage-feature .price .n { font-size: clamp(20px, 2.4vw, 28px); }
.stage-feature .pill { font-size: 12.5px; padding: 3px 11px; box-shadow: none; }
.sf-spark { height: 56px; margin-block: 10px 6px; }
.sf-cap { bottom: -2px; inset-inline-end: 0; inset-inline-start: auto; }
.stage-feature .meter { height: 7px; margin-block: 14px 8px; }
.stage-feature .go { padding: 5px 14px; font-size: 12.5px; }
.stage-list { grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 14px 16px; background: var(--surface); }
.stage-item { padding: 8px 12px; border-radius: 12px; font-size: 13px; }
.stage-item .si-c { font-size: 11.5px; }
.facts { display: flex; flex-wrap: wrap; border-block-start: 1px solid var(--line); background: var(--surface-2); }
.fact { flex: 1 1 0; min-width: 190px; gap: 10px; padding: 9px 16px; }
.fact .ic { width: 28px; height: 28px; border-radius: 9px; }
.fact .ic svg { width: 15px; height: 15px; }
.fact .v { font-size: 15px; display: inline; }
.fact .ft { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.fact .l { font-size: 12px; margin: 0; }
.fact .s { display: none; }
.fact .split { flex-basis: 100%; height: 3px; margin-block-start: 3px; }
@media (max-width: 980px) {
  .stage-body { grid-template-columns: 1fr; }
  .stage-list { grid-template-columns: repeat(4, 1fr); }
  .facts { display: grid; grid-template-columns: repeat(2, 1fr); }
  .fact { min-width: 0; }
}
@media (max-width: 760px) {
  .stage-feature { padding: 14px 16px; }
  .stage-list { grid-template-columns: repeat(3, 1fr); padding: 12px; gap: 6px; }
  .stage-item { padding: 7px 8px; font-size: 12.5px; flex-direction: column; align-items: flex-start; gap: 0; }
  .fact { padding: 8px 12px; }
  .fact .l { font-size: 11.5px; }
}


/* ===== v6: برند ماندگار — لوگو و واژه‌نشان در همهٔ سایت (هم‌سبک ورود/ثبت‌نام) ===== */
.brand { gap: 12px; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; padding: 5px; box-shadow: 0 10px 22px -8px var(--glow), 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-wm { display: flex; flex-direction: column; line-height: 1.15; }
.brand-wm b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand-wm small { font-size: 10.5px; font-weight: 600; color: var(--accent); margin-block-start: 2px; letter-spacing: .01em; }
.nav-row { height: 76px; }

/* hero lockup + watermark */
.hero-water { position: absolute; z-index: -1; inset-inline-start: -110px; inset-block-end: -120px; width: 560px; height: auto; opacity: .07; transform: rotate(-8deg); pointer-events: none; }
.hero-brand { display: inline-flex; align-items: center; gap: 16px; margin-block-end: 26px; }
.hb-tile { width: 76px; height: 76px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: 0 24px 50px -16px rgba(0,0,0,.55), 0 0 0 7px rgba(255,255,255,.10); animation: ab-pop .7s cubic-bezier(.2,.8,.2,1) both; }
.hb-tile img { width: 48px; height: 60px; display: block; }
.hb-wm { display: flex; flex-direction: column; line-height: 1.15; }
.hb-wm b { font-size: clamp(32px, 3.4vw, 42px); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hb-wm small { font-size: 13px; font-weight: 600; color: #8fe3d4; margin-block-start: 4px; }
.hero-copy .hero-eyebrow { margin-block-start: 0; }
.hero-copy h1 { margin-block-start: 18px; }
@keyframes ab-pop { from { opacity: 0; transform: scale(.7) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* inner-page banners + CTA: the white symbol as a watermark */
.page-head.container::after, .cta-band::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -60px; inset-block-end: -90px; width: 360px; height: 450px; background: url("/app/static/images/brand/symbol-white.webp") center / contain no-repeat; opacity: .08; transform: rotate(8deg); pointer-events: none; }
.cta-band { isolation: isolate; }

/* footer: big watermark + a stronger lockup */
footer { position: relative; overflow: hidden; isolation: isolate; }
footer::before { content: ""; position: absolute; z-index: -1; inset-inline-start: -80px; inset-block-start: -40px; width: 420px; height: 525px; background: url("/app/static/images/brand/symbol-white.webp") center / contain no-repeat; opacity: .05; transform: rotate(-10deg); pointer-events: none; }
footer .brand-mark { width: 54px; height: 54px; border-radius: 16px; }
footer .brand-wm b { font-size: 26px; color: #fff; }
footer .brand-wm small { color: #8fe3d4; font-size: 11.5px; }
footer .foot-brand p { margin-block-start: 16px; font-size: 14px; line-height: 2; }

@media (max-width: 980px) { .hero-brand { margin-block-end: 18px; } }
@media (max-width: 760px) {
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-wm b { font-size: 19px; } .brand-wm small { font-size: 9.5px; }
  .hb-tile { width: 60px; height: 60px; border-radius: 18px; } .hb-tile img { width: 38px; height: 48px; }
  .hero-water { width: 340px; inset-inline-start: -70px; inset-block-end: -60px; }
  .page-head.container::after, .cta-band::after { width: 240px; height: 300px; }
}
.hero-brand { display: flex; } .hero-copy .hero-eyebrow { display: inline-flex; }

/* the discount line of a campaign landing page (rasad.web.campaign_landing) */
.hero .cmp-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: fit-content; max-width: 100%; margin-block: 14px 4px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 13px; backdrop-filter: blur(6px); }
.hero .cmp-offer b { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; padding: 1px 12px; border-radius: 8px; background: rgba(255, 255, 255, .2); direction: ltr; }
