/* The Trade Trio: light research desk. White cards on a pale ground, black type, one gold accent, green and red only for market moves. */
:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --ink: #111418;
  --muted: #5f6670;
  --line: #e4e7e9;
  --soft: #f0f2f1;
  --gold: #b07d1f;
  --gold-soft: #f7efdf;
  --gain: #15803d;
  --gain-soft: #e6f4ea;
  --loss: #c8372d;
  --loss-soft: #fbe9e7;
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.gain { color: var(--gain); }
.loss { color: var(--loss); }
.hl { color: var(--gold); }

/* Ticker */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); min-height: 46px; }
.ticker .tradingview-widget-container { height: 46px; overflow: hidden; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: auto; display: block; }
.logo-word { width: 150px; height: auto; display: block; }
nav.links { display: flex; align-items: center; gap: 26px; }
nav.links a { text-decoration: none; color: var(--muted); font-size: 0.94rem; font-weight: 500; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: 500 0.95rem var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2a2f36; }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: #9a6c18; }
.btn.line { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn.line:hover { border-color: var(--ink); }
.btn.sm { padding: 8px 16px; font-size: 0.88rem; }
nav.links .btn { color: #fff; }
nav.links .btn.line { color: var(--ink); }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 24px; }
section.block { padding: 96px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.sec-title { display: grid; gap: 12px; margin-bottom: 44px; }
.sec-title.center { justify-items: center; }
.sec-title p { color: var(--muted); max-width: 56ch; font-size: 1.05rem; }
.chip { width: fit-content; display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 6px 14px; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.icon-circle svg { width: 24px; height: 24px; }

/* Forms */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem var(--font); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.hint { font-size: 0.8rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { flex: 1; font: 500 0.84rem var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 7px 10px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Results blocks */
.result { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.big { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.big .label { color: var(--muted); font-size: 0.9rem; }
.big .value { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; }
.rows { display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.row span:first-child { color: var(--muted); }
.pill { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill.long { background: var(--gain-soft); color: var(--gain); }
.pill.short { background: var(--loss-soft); color: var(--loss); }
.warn { font-size: 0.86rem; color: var(--loss); }

/* Footer */
footer { background: var(--ink); color: #c9cdd2; padding: 64px 0 48px; margin-top: 0; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { color: #fff; font-size: 0.95rem; font-weight: 600; margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
footer a { text-decoration: none; color: #c9cdd2; }
footer a:hover { color: #fff; }
footer .brand { color: #fff; }
footer .legal { border-top: 1px solid #2a2f36; margin-top: 48px; padding-top: 24px; font-size: 0.82rem; color: #9aa0a8; display: grid; gap: 10px; }

@media (max-width: 900px) {
  nav.links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 20px; gap: 14px; }
  nav.links.open { display: flex; }
  .menu-btn { display: inline-flex; }
  section.block { padding: 72px 0; }
  .grid3 { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid2 { grid-template-columns: 1fr; }
  .logo-word { width: 124px; }
  footer .cols { grid-template-columns: 1fr; }
}

/* Discord prominence */
.announce { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--ink); color: #d9dde2; text-decoration: none; font-size: 0.86rem; padding: 9px 16px; text-align: center; }
.announce b { color: var(--gold); font-weight: 600; white-space: nowrap; }
.announce:hover b { text-decoration: underline; }
.float-discord { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; background: #5865f2; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 28px -10px rgba(17,20,24,.45); }
.float-discord:hover { filter: brightness(1.08); }
@media (max-width: 480px) { .float-discord { right: 12px; bottom: 12px; padding: 11px 15px; } .announce span { display: none; } }

.offer-bar { background: var(--loss); color: #fff; }
.offer-bar b { color: #fff; }
.was { text-decoration: line-through; color: var(--muted); font-weight: 500; }

/* Offer pop up */
.promo-back { position: fixed; inset: 0; z-index: 50; background: rgba(17, 20, 24, 0.55); display: grid; place-items: center; padding: 18px; }
.promo { position: relative; width: min(440px, 100%); background: var(--surface); border-radius: 20px; border: 2px solid var(--loss); padding: 30px 26px 26px; display: grid; gap: 14px; text-align: center; justify-items: center; box-shadow: 0 30px 60px -20px rgba(17,20,24,.5); }
.promo h2 { font-size: 2rem; }
.promo-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.promo-x:hover { color: var(--ink); border-color: var(--ink); }
.promo-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.promo-prices a { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--bg); }
.promo-prices a.best { border: 2px solid var(--loss); background: var(--surface); }
.promo-prices b { font-size: 1.5rem; color: var(--loss); letter-spacing: -0.02em; }

/* Social links */
.soc { display: flex; flex-wrap: wrap; gap: 8px; }
.soc a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.soc a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.soc svg { width: 18px; height: 18px; }
.soc-dark a { background: transparent; border-color: #2f343b; color: #c9cdd2; }
.soc-dark a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.follow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.follow { display: flex; gap: 14px; align-items: center; padding: 20px; text-decoration: none; transition: border-color .2s, transform .2s; }
.follow:hover { border-color: var(--ink); transform: translateY(-2px); }
.follow .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.follow .ic svg { width: 22px; height: 22px; }
.follow b { display: block; font-weight: 600; }
.follow span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 1000px) { .follow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .follow-grid { grid-template-columns: 1fr; } }

.first-bar { background: var(--gold); color: #fff; }
.first-bar b { color: #fff; }
@media (max-width: 480px) { .announce span { display: none; } }
