/* ============================================================
   SM TRADING ZONE — smtradingzone.com design system
   Premium dark + gold. Fonts: Sora (display), Inter (body),
   JetBrains Mono (numerics). Loaded via Google Fonts in <head>.
   ============================================================ */

:root {
  /* palette */
  --bg: #07090D;
  --bg-2: #0B0E14;
  --bg-3: #10141C;
  --panel: #12161F;
  --panel-2: #171C27;
  --line: #232936;
  --line-2: #2E3646;
  --text: #E8EAEF;
  --text-2: #A8AFBD;
  --text-3: #6C7484;
  --gold: #D4A017;
  --gold-2: #F5D061;
  --gold-3: #9C7410;
  --gold-soft: rgba(212, 160, 23, 0.12);
  --gold-line: rgba(212, 160, 23, 0.35);
  --up: #30A46C;
  --up-soft: rgba(48, 164, 108, 0.14);
  --down: #E5484D;
  --down-soft: rgba(229, 72, 77, 0.14);
  --blue: #4C8DFF;
  --blue-soft: rgba(76, 141, 255, 0.13);

  /* type */
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* layout */
  --max-w: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #0B0E14; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.16; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-2); margin-top: 14px; font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; white-space: nowrap; }
.brand-name .tz { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  transition: color 0.18s ease; padding: 6px 0; position: relative;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--gold-2); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 40px; color: var(--text); font-size: 1.15rem; line-height: 1;
}
@media (max-width: 980px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn { display: none; }
  .nav-cta .btn.btn--nav-keep { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 10px; border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 55%, var(--gold-3) 100%);
  color: #16120A;
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.28);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212, 160, 23, 0.4); }

.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold-line); color: var(--gold-2); transform: translateY(-2px); }

.btn--dark { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.btn--dark:hover { border-color: var(--gold-line); transform: translateY(-2px); }

.btn--sm { padding: 9px 18px; font-size: 0.86rem; border-radius: 8px; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.95rem; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  font-size: 1.3rem; margin-bottom: 18px; color: var(--gold-2);
}

.card--featured { border-color: var(--gold-line); position: relative; overflow: hidden; }
.card--featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 180px at 50% -60px, var(--gold-soft), transparent);
}

/* ---------- badges / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 4px 11px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2);
}
.chip--gold { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-2); }
.chip--up { background: var(--up-soft); border-color: rgba(48,164,108,.4); color: var(--up); }
.chip--down { background: var(--down-soft); border-color: rgba(229,72,77,.4); color: var(--down); }
.chip--blue { background: var(--blue-soft); border-color: rgba(76,141,255,.4); color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 84px) 0 72px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(212,160,23,0.10), transparent 65%),
    radial-gradient(700px 380px at 12% 8%, rgba(76,141,255,0.07), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 10%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-sub { color: var(--text-2); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 640px; margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-3); }

.text-gold {
  background: linear-gradient(115deg, var(--gold-2) 20%, var(--gold) 60%, #E8B62B 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 26px 22px; text-align: center; }
.stat .num { font-size: 1.9rem; font-weight: 700; color: var(--gold-2); font-family: var(--font-display); }
.stat .label { color: var(--text-3); font-size: 0.82rem; margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
table.data th {
  text-align: left; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); font-weight: 600;
  padding: 13px 16px; background: var(--bg-3); border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255,255,255,0.015); }

/* ---------- forms / calculators ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-2); margin-bottom: 7px; letter-spacing: 0.03em; }
.field input, .field select {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 14px; font-size: 0.98rem; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-mono);
}
.field select { font-family: var(--font-body); }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field .hint { font-size: 0.76rem; color: var(--text-3); margin-top: 5px; }

.result-box {
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--radius-sm);
  padding: 18px 20px; margin-top: 6px;
}
.result-box .result-label { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.result-box .result-value { font-family: var(--font-mono); font-size: 1.65rem; font-weight: 700; color: var(--gold-2); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.result-mini { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.result-mini .k { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.result-mini .v { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; color: var(--text); margin-top: 2px; }
.result-mini .v.up { color: var(--up); } .result-mini .v.down { color: var(--down); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab-btn {
  background: var(--panel); border: 1px solid var(--line); color: var(--text-2);
  padding: 10px 20px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  transition: all 0.15s ease;
}
.tab-btn:hover { color: var(--text); border-color: var(--line-2); }
.tab-btn.active { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-2); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.35s ease; }

/* ---------- FAQ accordion ---------- */
details.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); margin-bottom: 12px; overflow: hidden; }
details.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 0.98rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 400; flex: none; transition: transform 0.2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 22px 20px; color: var(--text-2); font-size: 0.93rem; }

/* ---------- pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .plan-name { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.price-card .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; margin: 12px 0 2px; }
.price-card .price .cur { font-size: 1.2rem; color: var(--text-2); vertical-align: super; }
.price-card .per { color: var(--text-3); font-size: 0.85rem; margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 26px; flex: 1; }
.price-card li { padding: 8px 0 8px 28px; position: relative; color: var(--text-2); font-size: 0.93rem; border-bottom: 1px dashed var(--line); }
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--up); font-weight: 700; }
.price-card li.no::before { content: "—"; color: var(--text-3); }
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #16120A;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 5px 16px; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-family: var(--font-mono); font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-2); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-brand p { color: var(--text-3); font-size: 0.88rem; margin-top: 14px; max-width: 300px; }
.footer-disclaimer {
  border-top: 1px solid var(--line); padding: 26px 0;
  font-size: 0.76rem; color: var(--text-3); line-height: 1.7;
}
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-3); }

/* ---------- widget frames ---------- */
.tv-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.tv-frame--chart { height: 560px; }
@media (max-width: 760px) { .tv-frame--chart { height: 420px; } }

.ticker-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }

/* ---------- session clock ---------- */
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); margin-bottom: 10px; }
.session-row .s-name { font-weight: 600; font-size: 0.95rem; }
.session-row .s-time { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-3); }
.s-status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; }
.s-status.open { background: var(--up-soft); color: var(--up); border: 1px solid rgba(48,164,108,.4); }
.s-status.closed { background: var(--panel-2); color: var(--text-3); border: 1px solid var(--line-2); }
.s-status.soon { background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--gold-line); }

/* ---------- misc ---------- */
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); border: none; margin: 0; }

.notice {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.88rem; color: var(--text-2);
}
.notice--warn { border-left-color: var(--down); }

.breadcrumb { font-size: 0.82rem; color: var(--text-3); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-2); } .breadcrumb a:hover { color: var(--gold-2); }

.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 14px; } .prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose strong { color: var(--text); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* page hero (inner pages) */
.page-hero { padding: calc(var(--header-h) + 64px) 0 44px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 300px at 70% -20%, rgba(212,160,23,0.09), transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero p.lede { color: var(--text-2); font-size: 1.08rem; max-width: 680px; margin-top: 16px; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-3); }
