/* site/site.css: the TradingLeague.fun website (index.html, fine-print.html, 404.html).
   Stadium lights: deep navy, neon green, trophy gold, heavy italic headings. */
:root {
  --bg: #050d1f;
  --bg2: #081530;
  --panel: rgba(10, 27, 56, 0.72);
  --line: rgba(120, 170, 220, 0.2);
  --line2: rgba(120, 170, 220, 0.36);
  --ink: #f4f8ff;
  --text: #c8d6ea;
  --muted: #8ba0bd;
  --green: #2df07a;
  --green2: #12b95f;
  --gold: #f7c948;
  --red: #ff6073;
  --display: 'Barlow', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius: 16px;
  --max: 1180px;
  --legal-h: 34px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; padding-bottom: var(--legal-h); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--green); text-shadow: 0 0 26px rgba(45, 240, 122, 0.45); }
.lede { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; color: #e2ebf7; }
.up { color: var(--green); }
.down { color: var(--red); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 12px; border: 1.5px solid transparent; font: italic 700 18px/1 var(--display); letter-spacing: 0.01em; white-space: nowrap; transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-green { background: linear-gradient(180deg, #4bf894, #14c566); color: #04210f; box-shadow: 0 0 0 1px rgba(77, 251, 147, 0.5), 0 8px 30px rgba(45, 240, 122, 0.35); }
.btn-green:hover { box-shadow: 0 0 0 1px rgba(77, 251, 147, 0.8), 0 10px 38px rgba(45, 240, 122, 0.55); }
.btn-ghost { background: rgba(9, 24, 50, 0.7); color: var(--ink); border-color: rgba(190, 215, 240, 0.5); }
.btn-ghost:hover { border-color: var(--green); }
.btn-sm { padding: 10px 16px; font-size: 15px; border-radius: 10px; }
.btn .bi { width: 22px; height: 20px; }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.tag { flex: none; padding: 4px 10px; border: 1px solid var(--line2); border-radius: 999px; font: 600 11px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: #dce8f7; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(5, 13, 31, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(120, 170, 220, 0.14); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; max-width: 1280px; }
.brand { flex: none; display: block; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-right: auto; font: 500 14.5px var(--body); color: #e4edf9; }
.nav-links a:hover { color: var(--green); }
.nav-cta { display: flex; gap: 10px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: #040b1d; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4, 11, 29, 0.82) 0%, rgba(4, 11, 29, 0.62) 38%, rgba(4, 11, 29, 0) 62%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 54px; background: linear-gradient(0deg, var(--bg), rgba(5, 13, 31, 0)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 44px; align-items: center; padding-top: 72px; padding-bottom: 150px; max-width: 1280px; }
h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1; text-shadow: 0 3px 22px rgba(0, 0, 0, 0.6); }
.hero-copy .lede { max-width: 30em; margin-top: 22px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---- The example board ---- */
.board { padding: 18px 20px 20px; border-radius: 22px; background: linear-gradient(160deg, rgba(9, 28, 56, 0.94), rgba(4, 16, 36, 0.94)); border: 1.5px solid rgba(45, 240, 122, 0.8); box-shadow: 0 0 34px rgba(45, 240, 122, 0.38), inset 0 0 26px rgba(45, 240, 122, 0.08); transform: perspective(1200px) rotateY(-7deg) rotateZ(-1.5deg); }
.board-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bt { width: 30px; height: 30px; flex: none; }
.board-title { flex: 1; font: italic 800 clamp(17px, 1.9vw, 23px)/1.1 var(--display); text-transform: uppercase; color: var(--gold); letter-spacing: 0.01em; }
.board-body { display: grid; grid-template-columns: minmax(0, 1fr) 36%; gap: 16px; margin-top: 10px; }
.rows { list-style: none; }
.rows li { display: grid; grid-template-columns: 20px 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(120, 170, 220, 0.1); font: 500 14px/1.2 var(--body); color: var(--ink); }
.rows li:last-child { border-bottom: 0; }
.rows b { font: italic 700 19px/1 var(--display); color: var(--ink); }
.rows span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows em { font: 600 14.5px/1 var(--body); font-style: normal; font-variant-numeric: tabular-nums; }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 16px; line-height: 1; border: 1.5px solid rgba(255, 255, 255, 0.28); }
.a1 { background: #f5b83d; } .a2 { background: #1d6fb8; } .a3 { background: #5b2dbd; } .a4 { background: #e8953a; } .a5 { background: #138a4c; }
.spark { width: 100%; height: 100%; min-height: 150px; border-radius: 10px; background: rgba(3, 12, 28, 0.7); }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section.tight { padding: 30px 0; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.ruled { display: flex; align-items: center; gap: 28px; justify-content: center; text-align: center; margin-bottom: 38px; }
.ruled::before, .ruled::after { content: ''; flex: 1; height: 2px; }
.ruled::before { background: linear-gradient(90deg, rgba(45, 240, 122, 0), var(--green)); }
.ruled::after { background: linear-gradient(90deg, var(--green), rgba(45, 240, 122, 0)); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: center; gap: 8px; text-align: center; }
.step { display: flex; flex-direction: column; align-items: center; }
.num { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; border: 2px solid var(--green); color: var(--ink); font: 700 16px/1 var(--display); box-shadow: 0 0 14px rgba(45, 240, 122, 0.45); }
.art { display: block; width: 96px; height: 66px; margin-bottom: 14px; }
.art.trio { display: flex; align-items: center; justify-content: center; gap: 2px; width: 120px; }
.lau { width: 26px; height: 60px; }
.lau.flip { transform: scaleX(-1); }
.tro { width: 62px; height: 62px; }
.step h3 { font-size: 24px; line-height: 1.15; }
.step p { max-width: 16em; margin-top: 8px; font-size: 15px; line-height: 1.5; color: #d3deee; }
.arrow { color: var(--green); font-size: 28px; line-height: 1; text-shadow: 0 0 12px rgba(45, 240, 122, 0.7); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.card { padding: 24px 18px 22px; text-align: center; border-radius: var(--radius); border: 1px solid var(--line2); background: linear-gradient(170deg, rgba(14, 44, 66, 0.72), rgba(8, 21, 48, 0.72)); }
.card .ic { display: block; width: 62px; height: 54px; margin: 0 auto 12px; }
.card h3 { font-size: 22px; line-height: 1.15; }
.card p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: #d3deee; }

/* ---- The commercial ---- */
.trailer { max-width: 980px; margin: 0 auto; }
.trailer video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #030916; border-radius: var(--radius); border: 1.5px solid rgba(45, 240, 122, 0.6); box-shadow: 0 0 34px rgba(45, 240, 122, 0.22), 0 16px 50px rgba(0, 0, 0, 0.5); }
.trailer figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---- The room ---- */
.room { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 36px; align-items: center; }
.room-copy .lede { margin-top: 14px; }
.room-shot { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line2); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); }
.room-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.room-shot figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(4, 12, 28, 0.8); font: 500 12px var(--body); color: #dce8f7; }

/* ---- The table ---- */
.table-card { border-radius: var(--radius); border: 1px solid rgba(45, 240, 122, 0.42); background: rgba(6, 18, 40, 0.82); overflow: hidden; }
.table-top { display: flex; align-items: center; gap: 14px; padding: 16px 22px; }
.tt { width: 34px; height: 34px; flex: none; }
.table-top h2 { flex: 1; font-size: clamp(22px, 2.6vw, 30px); color: var(--gold); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { padding: 10px 22px; text-align: left; font: 500 14px var(--body); color: #b9c8dc; background: rgba(15, 35, 66, 0.55); }
td { padding: 11px 22px; border-top: 1px solid rgba(120, 170, 220, 0.14); font: 500 15px var(--body); color: var(--ink); white-space: nowrap; }
td .av { margin-right: 14px; vertical-align: middle; }
td.up, td.down { font-weight: 600; }

/* ---- FAQ ---- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; font: italic 700 20px/1.25 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--green); font-style: normal; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { padding: 0 2px 18px; max-width: 70ch; font-size: 15.5px; }

/* ---- Last call ---- */
.final { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 36px; min-height: 210px; padding: 24px 40px; border-radius: var(--radius); border: 1.5px solid rgba(45, 240, 122, 0.6); }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.final > :not(.final-bg) { position: relative; z-index: 1; }
.final-trophy { flex: none; width: 150px; height: 150px; }
.final-trophy svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.final-trophy img { position: absolute; left: 50%; top: 13%; width: 34%; transform: translateX(-50%); }
.final h2 { font-size: clamp(32px, 4.6vw, 58px); text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6); }
.final h2 em { color: #6dffa6; }

/* ---- Footer ---- */
.footer { padding: 30px 0 36px; }
.foot-line { display: flex; align-items: center; gap: 18px; font-size: 14px; font-style: italic; color: #b9c8dc; white-space: nowrap; }
.foot-line::before, .foot-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.legal-text { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }
.legal-text a { color: var(--ink); border-bottom: 1px solid var(--line2); }
.legal-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: center; height: var(--legal-h); padding: 0 12px; background: #030916; border-top: 1px solid var(--line); font-size: 12px; color: #9fb0c7; white-space: nowrap; overflow: hidden; }
.legal-bar b { color: var(--ink); font-weight: 600; }
.legal-bar a { color: var(--green); }

/* ---- The fine print ---- */
.page { padding: 56px 0 70px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.prose .updated { margin: 10px 0 30px; font-size: 13.5px; color: var(--muted); }
.prose h2 { margin-top: 34px; font-size: 25px; }
.prose p, .prose ul { margin-top: 12px; font-size: 16px; }
.prose ul { padding-left: 20px; }
.prose li { margin-top: 8px; }
.prose b { color: var(--ink); font-weight: 600; }

/* ---- 404 ---- */
.notfound { min-height: calc(100vh - var(--legal-h)); display: grid; place-items: center; padding: 40px 24px; text-align: center; }
.notfound img { width: 130px; margin: 0 auto 18px; }
.notfound p { margin: 12px 0 26px; }
.notfound .cta-row { justify-content: center; margin-top: 0; }

/* ---- Fade in as they scroll into view ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .brand img { height: 42px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 110px; gap: 34px; }
  .board { transform: none; max-width: 560px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .room { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { min-height: 62px; gap: 10px; }
  .brand img { height: 34px; }
  .nav-cta .btn-ghost { display: none; }
  .btn-sm { padding: 9px 12px; font-size: 14px; }
  .section { padding: 40px 0; }
  .ruled { gap: 14px; margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .arrow { display: none; }
  .cards { gap: 12px; margin-top: 30px; }
  .card { padding: 18px 12px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 13.5px; }
  .cta-row .btn { flex: 1 1 100%; }
  .board-body { grid-template-columns: 1fr; }
  .spark { display: none; }
  th, td { padding: 10px 12px; font-size: 14px; }
  td .av { margin-right: 8px; width: 26px; height: 26px; font-size: 14px; }
  .table-top { padding: 14px; gap: 10px; }
  .final { flex-direction: column; gap: 12px; padding: 22px 16px; text-align: center; }
  .final-trophy { width: 110px; height: 110px; }
  :root { --legal-h: 44px; }
  .legal-bar { display: block; padding: 5px 12px; font-size: 11px; line-height: 1.25; text-align: center; white-space: normal; }
  .legal-bar .long { display: none; }
  .foot-line { text-align: center; white-space: normal; }
}
