/* Trade maping — shared styles for static SEO / learn pages (matches homepage dark theme from index.css .dark). */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-NL-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-NL-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-NL-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-NL-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-NL-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn/Vazirmatn-NL-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Synced with frontend/src/index.css .dark (homepage / app) */
  --tm-bg: #0A0F18;
  --tm-surface: #101726;
  --tm-elevated: #172033;
  --tm-border: #1F2B42;
  --tm-text: #F8FAFC;
  --tm-secondary: #94A3B8;
  --tm-muted: #64748B;
  --tm-primary: #00E599;
  --tm-on-primary: #051810;
  --tm-profit: #00E599;
  --tm-loss: #FB7185;
  --tm-warning: #FB923C;
  --tm-premium: #A855F7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background:
    radial-gradient(circle at 85% -10%, rgb(0 229 153 / 0.1), transparent 42%),
    var(--tm-bg);
  color: var(--tm-text);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--tm-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-inline-start: 1.5rem; }
img { max-width: 100%; }
.font-mono, .num-ltr, .symbol-ltr {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  direction: ltr;
  unicode-bidi: isolate;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.site-header {
  border-bottom: 1px solid var(--tm-border);
  background: rgb(10 15 24 / 0.92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
}
.site-header .wrap-wide {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--tm-text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  border: 1px solid rgb(0 229 153 / 0.3);
  background: rgb(0 229 153 / 0.1);
  display: grid; place-items: center;
  color: var(--tm-primary);
  flex: none;
}
.brand-mark svg { width: 28px; height: 28px; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; min-width: 0; }
.brand-name { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; color: var(--tm-text); }
.brand-tag {
  font-size: 9px; font-weight: 500; letter-spacing: .18em;
  color: var(--tm-muted); font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--tm-secondary); }
.nav-links a:hover { color: var(--tm-text); }
.btn {
  display: inline-block; border-radius: 999px; padding: 10px 22px;
  font-weight: 800; font-size: 14px; line-height: 1.6;
  font-family: inherit;
}
.btn-primary { background: var(--tm-primary); color: var(--tm-on-primary) !important; }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-ghost { border: 1px solid var(--tm-border); color: var(--tm-secondary); }
.btn-ghost:hover { border-color: var(--tm-primary); color: var(--tm-text); text-decoration: none; }

.hero { padding: 72px 0 48px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgb(0 229 153 / 0.12), transparent 55%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--tm-primary); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 900; line-height: 1.5; }
.hero .lead {
  margin: 22px auto 0; max-width: 640px; color: var(--tm-secondary); font-size: 17px;
}
.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero .trust {
  margin-top: 18px; font-size: 12.5px; color: var(--tm-muted); position: relative;
}

section { padding: 48px 0; }
.section-title { font-size: 26px; font-weight: 900; line-height: 1.6; margin-bottom: 8px; }
.section-sub { color: var(--tm-secondary); font-size: 14.5px; margin-bottom: 28px; }
.section-title .accent { color: var(--tm-primary); }

.card {
  background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: 18px;
  padding: 26px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}

.feature h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--tm-secondary); }
.feature .ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgb(0 229 153 / 0.12); color: var(--tm-primary); font-size: 18px; margin-bottom: 14px;
}

.prose h2 { font-size: 23px; font-weight: 900; line-height: 1.6; margin: 44px 0 14px; }
.prose h2::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--tm-primary); margin-bottom: 12px; }
.prose h3 { font-size: 17.5px; font-weight: 800; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--tm-secondary); font-size: 15.5px; }
.prose strong { color: var(--tm-text); }
.prose ul, .prose ol { margin: 12px 0 20px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-inline-start: 3px solid var(--tm-primary); background: var(--tm-surface);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0; color: var(--tm-text); font-size: 15px;
}

/* Compact article pages (mt5 / prop / manual …) */
.article { padding: 2rem 1.25rem 3.5rem; }
.article > .crumbs,
.article > .breadcrumbs { padding-top: 0; margin-bottom: 1rem; }
.article > .eyebrow { margin-bottom: 12px; }
.article > h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 900; line-height: 1.45; margin: 0 0 1rem;
}
.article > .lead {
  color: var(--tm-secondary); font-size: 1.05rem; margin: 0 0 1.25rem; max-width: 40rem;
}
.article > .trust { margin: 0 0 1.75rem; }
.article > section { padding: 1.75rem 0; }
.article > section h2 {
  font-size: 1.25rem; font-weight: 900; line-height: 1.55; margin: 0 0 .75rem;
  color: var(--tm-text);
}
.article > section h2::before {
  content: ''; display: block; width: 40px; height: 3px; border-radius: 4px;
  background: var(--tm-primary); margin-bottom: 10px;
}
.article > section p,
.article > section li { color: var(--tm-secondary); font-size: 15px; }
.article > section ul,
.article > section ol { margin: .75rem 0 0; }
.article > section li { margin-bottom: .45rem; }
.cta-band { margin: 2rem 0 0; text-align: center; }
.crumbs {
  font-size: 12.5px; color: var(--tm-muted);
}
.crumbs a { color: var(--tm-secondary); }

.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th { background: var(--tm-surface); color: var(--tm-text); font-weight: 800; text-align: right; }
th, td { padding: 12px 16px; border: 1px solid var(--tm-border); color: var(--tm-secondary); }
td.good { color: var(--tm-profit); font-weight: 700; }

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: 16px; padding: 20px; }
.step-n {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgb(0 229 153 / 0.12); color: var(--tm-primary); font-weight: 900; font-size: 14px;
}
.step h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.step p { font-size: 13.5px; color: var(--tm-secondary); }

.quick-answers { border: 1px solid var(--tm-border); background: var(--tm-surface); border-radius: 18px; padding: 26px; }
.quick-answers h2 { font-size: 16px; font-weight: 900; margin-bottom: 16px; color: var(--tm-primary); }
.quick-answers .qa { margin-bottom: 16px; }
.quick-answers .qa:last-child { margin-bottom: 0; }
.quick-answers h3 { font-size: 14.5px; font-weight: 800; color: var(--tm-text); }
.quick-answers p { font-size: 14px; color: var(--tm-secondary); margin-top: 4px; line-height: 1.9; }

.faq-item { background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq-item h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--tm-secondary); }

.related { background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: 18px; padding: 26px; }
.related h3, .related h2 { font-size: 16px; font-weight: 900; margin-bottom: 14px; color: var(--tm-text); }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related a { font-size: 14px; font-weight: 700; }
.related a small { display: block; font-weight: 400; color: var(--tm-muted); font-size: 12.5px; }
.related p { line-height: 2; font-size: .92rem; color: var(--tm-secondary); }

.final-cta {
  text-align: center; padding: 64px 0; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgb(0 229 153 / 0.14), transparent 55%);
  pointer-events: none;
}
.final-cta h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; line-height: 1.55; position: relative; }
.final-cta p { color: var(--tm-secondary); margin: 16px auto 28px; max-width: 560px; position: relative; }
.final-cta .btn { position: relative; }

.breadcrumbs { font-size: 12.5px; color: var(--tm-muted); padding-top: 24px; }
.breadcrumbs a { color: var(--tm-secondary); }
.breadcrumbs span[aria-current] { color: var(--tm-primary); }

.site-footer {
  border-top: 1px solid var(--tm-border);
  padding: 28px 0 36px;
  margin-top: 24px;
}
.site-footer .wrap-wide {
  display: flex; flex-direction: column; gap: 20px;
  font-size: 12.5px; color: var(--tm-muted);
}
.site-footer .foot-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer .foot-tagline { color: var(--tm-muted); font-size: 12px; }
.site-footer .foot-auth { display: flex; gap: 16px; align-items: center; }
.site-footer .foot-auth a { color: var(--tm-secondary); }
.site-footer .foot-auth a.foot-register { color: var(--tm-primary); font-weight: 800; }
.site-footer .foot-guides {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
  border-top: 1px solid var(--tm-border); padding-top: 18px;
}
.site-footer .foot-label { color: var(--tm-secondary); font-weight: 800; }
.site-footer .foot-guides a { color: var(--tm-muted); }
.site-footer .foot-guides a:hover { color: var(--tm-text); }

/* Learn hub */
.learn-hub { max-width: 920px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.learn-hub .brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 1.25rem; text-decoration: none;
}
.learn-hub .brand-link:hover { text-decoration: none; }
.learn-hub h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.35; margin: 0 0 0.75rem; font-weight: 900; }
.learn-hub .lead { color: var(--tm-secondary); line-height: 1.9; margin-bottom: 2rem; }
.learn-card {
  display: block; border: 1px solid var(--tm-border); background: var(--tm-surface);
  border-radius: 16px; padding: 1.25rem 1.35rem; margin-bottom: .85rem;
  transition: border-color .15s ease, background .15s ease;
}
.learn-card:hover { border-color: rgb(0 229 153 / 0.45); background: var(--tm-elevated); text-decoration: none; }
.learn-card h2 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--tm-text); font-weight: 800; }
.learn-card p { margin: 0; color: var(--tm-secondary); font-size: .92rem; line-height: 1.8; }
