/* Eclipse Trading: design system
   ground: plum ink from the logo's moon, accent: the amber corona.
   Numbers are tabular everywhere. Panels are hairline-framed surfaces. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jbmono-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --amber: #ffb93f;
  --amber-deep: #f29d12;
  --rim: #ffd13f;
  --plum: #40344f;
  --dusk: #57566c;

  --bg: #ffffff;
  --bg-soft: #f7f5fa;
  --bg-sunk: #f0edf5;
  --bg-raised: #ffffff;
  --line: #e7e2ee;
  --line-strong: #d5cde0;
  --text: #17121f;
  --text-2: #4f4660;
  --text-3: #7a7088;
  --accent: var(--amber);
  --accent-ink: #9a5800;
  --on-accent: #1b1406;
  --focus: #f29d12;
  --shadow: 0 1px 2px rgba(23, 18, 31, .05), 0 8px 24px -12px rgba(23, 18, 31, .12);

  --up: #10a35a;
  --down: #e5484d;
  --up-soft: rgba(16, 163, 90, .12);
  --down-soft: rgba(229, 72, 77, .12);

  --r-panel: 14px;
  --r-field: 10px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1360px;
  --gut: clamp(16px, 3.2vw, 32px);
  --head-h: 64px;
  color-scheme: light;
}

html[data-updown="kr"] {
  --up: #e5484d;
  --down: #2f6fe4;
  --up-soft: rgba(229, 72, 77, .12);
  --down-soft: rgba(47, 111, 228, .12);
}

html[data-theme="dark"] {
  --bg: #121018;
  --bg-soft: #18161f;
  --bg-sunk: #0e0d13;
  --bg-raised: #1e1b27;
  --line: #2a2634;
  --line-strong: #3a3447;
  --text: #f2eef7;
  --text-2: #b9b0c8;
  --text-3: #8b8199;
  --accent-ink: #ffc35e;
  --shadow: none;
  --up: #22c278;
  --down: #f2565b;
  --up-soft: rgba(34, 194, 120, .14);
  --down-soft: rgba(242, 86, 91, .14);
  color-scheme: dark;
}
html[data-theme="dark"][data-updown="kr"] {
  --up: #f2565b;
  --down: #4b8bff;
  --up-soft: rgba(242, 86, 91, .14);
  --down-soft: rgba(75, 139, 255, .16);
}

/* A stage is always night, whatever the page theme: the hero, the manifesto, the footer. */
.ec-stage {
  --bg: #08070c;
  --bg-soft: #110e17;
  --bg-sunk: #050408;
  --bg-raised: #17131f;
  --line: #221c2c;
  --line-strong: #342b42;
  --text: #f4f0f8;
  --text-2: #bdb4cb;
  --text-3: #8d839b;
  --accent-ink: #ffc35e;
  --shadow: none;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}
html:not([data-updown="kr"]) .ec-stage { --up: #22c278; --down: #f2565b; --up-soft: rgba(34,194,120,.14); --down-soft: rgba(242,86,91,.14); }
html[data-updown="kr"] .ec-stage { --up: #f2565b; --down: #4b8bff; --up-soft: rgba(242,86,91,.14); --down-soft: rgba(75,139,255,.16); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss06";
}
html[lang="en"] body { word-break: normal; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 185, 63, .35); }
.nw { white-space: nowrap; display: contents; }
.num, .tab { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "ss06"; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--text-3); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding-inline: var(--gut); }

/* ---------- type ---------- */
.display {
  font-size: clamp(46px, 7.4vw, 112px);
  line-height: .96;
  letter-spacing: -.038em;
  font-weight: 620;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.03em; font-weight: 650; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(26px, 3.1vw, 40px); line-height: 1.16; letter-spacing: -.024em; font-weight: 650; margin: 0; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.32; letter-spacing: -.012em; font-weight: 650; margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.62; color: var(--text-2); margin: 0; text-wrap: pretty; max-width: 42em; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent-ink); letter-spacing: -.005em; display: inline-flex; align-items: center; gap: 8px; }
.small { font-size: 14px; }
.micro { font-size: 12.5px; color: var(--text-3); }
p { margin: 0 0 1em; }

/* ---------- header ---------- */
.ec-head {
  position: sticky; top: 0; z-index: 60;
  height: var(--head-h);
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.ec-head.on-stage { --bg: #08070c; --line: #221c2c; --text: #f4f0f8; --text-2: #bdb4cb; --text-3: #8d839b; --bg-soft: #14111b; --bg-raised: #17131f; --line-strong: #342b42; color: var(--text); color-scheme: dark; }
.ec-head .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.ec-logo { display: flex; align-items: center; flex: none; height: 40px; }
.ec-logo img { height: 27px; width: auto; }
.ec-logo .lg-d { display: none; }
html[data-theme="dark"] .ec-logo .lg-l, .on-stage .ec-logo .lg-l { display: none; }
html[data-theme="dark"] .ec-logo .lg-d, .on-stage .ec-logo .lg-d { display: block; }

.ec-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.ec-nav > .ni { position: relative; }
.ec-nav .nb {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; font-weight: 560; color: var(--text-2);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.ec-nav .nb:hover, .ec-nav .ni.open .nb, .ec-nav .nb[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.ec-nav .nb svg { width: 14px; height: 14px; opacity: .6; transition: transform .2s var(--ease); }
.ec-nav .ni.open .nb svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: -8px;
  min-width: 560px; padding: 14px;
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(10, 6, 16, .35);
  display: grid; gap: 4px 14px; grid-template-columns: repeat(2, minmax(0, 1fr));
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.mega.wide { min-width: 760px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ni.open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega .mg-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: 4px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mega .mg-h b { font-size: 14px; font-weight: 650; }
.mega .mg-h a { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.mega .mg-g { font-size: 12.5px; color: var(--text-3); font-weight: 600; padding: 8px 8px 2px; grid-column: auto; }
.mi { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 8px; border-radius: 10px; transition: background-color .14s var(--ease); }
.mi:hover { background: var(--bg-soft); }
.mi .ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); }
.mi:hover .ic { color: var(--accent-ink); border-color: var(--line-strong); }
.mi .ic svg { width: 18px; height: 18px; }
.mi b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.mi span { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }

.ec-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ec-search {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text-3); font-size: 14px; min-width: 210px;
  background: var(--bg-soft); transition: border-color .16s var(--ease), color .16s var(--ease);
}
.ec-search:hover { border-color: var(--line-strong); color: var(--text-2); }
.ec-search svg { width: 16px; height: 16px; }
.ec-search kbd { margin-left: auto; font-family: var(--mono); font-size: 11.5px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-3); background: var(--bg); }
.ec-lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.ec-lang a { font-size: 12.5px; font-weight: 650; padding: 4px 9px; border-radius: var(--r-pill); color: var(--text-3); }
.ec-lang a[aria-current="true"] { background: var(--text); color: var(--bg); }
.ec-burger { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; border: 1px solid var(--line); }
.ec-burger svg { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 650; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-amber { background: var(--amber); color: var(--on-accent); }
.btn-amber:hover { background: #ffc65c; }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-ink:hover { opacity: .9; }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { background: var(--bg-soft); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn .ex-ic { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- chips, segmented ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 13.5px; font-weight: 560; color: var(--text-2); background: var(--bg); transition: all .14s var(--ease); white-space: nowrap; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"], .chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg-sunk); border: 1px solid var(--line); gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.seg button[aria-pressed="true"] { background: var(--bg-raised); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
html[data-theme="dark"] .seg button[aria-pressed="true"], .ec-stage .seg button[aria-pressed="true"] { background: var(--line-strong); box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pill.up { background: var(--up-soft); color: var(--up); }
.pill.down { background: var(--down-soft); color: var(--down); }
.pill.flat { background: var(--bg-sunk); color: var(--text-3); }

.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); flex: none; }
html[data-motion="on"] .live i { animation: ec-blink 2.4s var(--ease) infinite; }
.live.stale i { background: var(--text-3); animation: none; }
@keyframes ec-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- panels ---------- */
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-panel); }
html:not([data-theme="dark"]) .panel.white { background: var(--bg); box-shadow: var(--shadow); }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); min-height: 54px; }
.panel-h h2, .panel-h h3 { font-size: 15.5px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.panel-h .sp { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-b { padding: 18px; }
.panel-f { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.panel-f img { width: 14px; height: 14px; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-right: 4px; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }

/* KPI instrument card */
.kpi { padding: 16px 18px 14px; display: grid; gap: 6px; position: relative; min-height: 126px; }
.kpi .k-l { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.kpi .k-l img { width: 20px; height: 20px; border-radius: 50%; }
.kpi .k-v { font-size: clamp(22px, 2.1vw, 27px); font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .k-s { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.kpi canvas.spark { position: absolute; right: 14px; bottom: 14px; width: 96px; height: 34px; }

/* tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--bg-soft); z-index: 1; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl th button { font-weight: 600; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.tbl th button[aria-sort] { color: var(--text); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tbody tr { transition: background-color .12s var(--ease); }
.tbl tbody tr:hover { background: var(--bg-sunk); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .sym { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tbl .sym img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.tbl .sym small { color: var(--text-3); font-weight: 500; font-size: 12px; }

/* price tick flash */
.fl-up { animation: ec-fl-up .9s var(--ease); }
.fl-down { animation: ec-fl-down .9s var(--ease); }
@keyframes ec-fl-up { 0% { background-color: var(--up-soft); } 100% { background-color: transparent; } }
@keyframes ec-fl-down { 0% { background-color: var(--down-soft); } 100% { background-color: transparent; } }
html[data-motion="off"] .fl-up, html[data-motion="off"] .fl-down { animation: none; }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 8vw, 112px) 0; }
.sec-tight { padding: clamp(40px, 5vw, 64px) 0; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 36px); flex-wrap: wrap; }
.sec-h .h2 { max-width: 18em; }
.sec-h p { margin: 10px 0 0; color: var(--text-2); max-width: 40em; text-wrap: pretty; }
.sec-h .more { font-size: 15px; font-weight: 600; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.sec-h .more svg { width: 16px; height: 16px; }
.band-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* page hero (boards, tools) */
.phero { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }
.phero .h1 { max-width: 16em; }
.phero .lede { margin-top: 14px; }
.phero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; font-size: 13.5px; color: var(--text-3); }
.phero-meta .src { display: inline-flex; align-items: center; gap: 6px; }
.phero-meta .src img { width: 16px; height: 16px; border-radius: 4px; }
.phero-row { display: flex; gap: 24px; align-items: end; justify-content: space-between; flex-wrap: wrap; }

/* prose (long reading) */
.prose { font-size: 17px; line-height: 1.82; color: var(--text); }
html[lang="en"] .prose { line-height: 1.74; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; text-wrap: pretty; }
.prose h2 { font-size: clamp(23px, 2.4vw, 29px); line-height: 1.3; letter-spacing: -.02em; font-weight: 680; margin-top: 2.4em; padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 19.5px; line-height: 1.4; font-weight: 680; margin-top: 1.9em; letter-spacing: -.012em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--text-3); }
.prose strong { font-weight: 680; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--bg-sunk); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; }
.prose pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; background: var(--bg-sunk); border: 1px solid var(--line); padding: 16px 18px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 1.1em; font-size: 18px; line-height: 1.7; color: var(--text-2); position: relative; }
.prose blockquote::before { content: "\201C"; position: absolute; left: -4px; top: -10px; font-size: 44px; line-height: 1; color: var(--amber); font-family: Georgia, serif; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose .tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose .tw table { margin: 0; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-size: 13.5px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { font-size: 13.5px; color: var(--text-3); margin-top: 10px; line-height: 1.55; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 18px 2px; font-size: 16.5px; font-weight: 620; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--text-3); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 2px 22px; color: var(--text-2); line-height: 1.75; max-width: 52em; }
.faq .a p:last-child { margin-bottom: 0; }

/* fields (tools) */
.field { display: grid; gap: 7px; }
.field > label, .field > .lb { font-size: 13.5px; font-weight: 620; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; }
.field > label small, .field > .lb small { font-weight: 500; color: var(--text-3); }
.inp { position: relative; display: flex; align-items: center; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--bg); transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.inp:focus-within { border-color: var(--amber-deep); box-shadow: 0 0 0 3px rgba(255, 185, 63, .22); }
.inp input, .inp select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 14px; font-size: 16px; font-variant-numeric: tabular-nums; outline: none; }
.inp select { appearance: none; cursor: pointer; }
.inp .u { padding: 0 14px 0 4px; font-size: 13.5px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.range { width: 100%; accent-color: var(--amber-deep); }

/* results */
.res { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.res .rl { font-size: 13px; color: var(--text-3); font-weight: 600; }
.res .rv { font-size: 26px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.res .rs { font-size: 13px; color: var(--text-2); }
.res.hero-r { background: var(--text); color: var(--bg); border-color: var(--text); }
.res.hero-r .rl, .res.hero-r .rs { color: color-mix(in oklab, var(--bg) 70%, var(--text)); }

/* cards (articles, lessons, tools) */
.card { display: flex; flex-direction: column; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card .cv { aspect-ratio: 16 / 9; background: var(--bg-sunk); overflow: hidden; }
.card .cv img { width: 100%; height: 100%; object-fit: cover; }
.card .cb { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cm { font-size: 12.5px; color: var(--text-3); display: flex; gap: 10px; align-items: center; }
.card .ct { font-size: 17px; font-weight: 650; line-height: 1.42; letter-spacing: -.012em; text-wrap: pretty; }
.card .cd { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* referral cards */
.ex-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; padding: 18px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--bg-soft); }
.ex-card .ex-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }
.ex-card .ex-logo img { width: 30px; height: 30px; border-radius: 6px; }
.ex-card b { font-size: 17px; font-weight: 680; display: block; }
.ex-card .ex-b { font-size: 14px; color: var(--text-2); }
.ex-card .ex-c { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.disclose { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* ---------- floating controls (bottom right) ---------- */
.ec-dock { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 8px; }
.ec-dock button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-raised); border: 1px solid var(--line-strong); color: var(--text-2);
  box-shadow: 0 8px 24px -10px rgba(10, 6, 16, .35);
  transition: color .16s var(--ease), transform .16s var(--ease);
}
.ec-dock button:hover { color: var(--text); transform: translateY(-1px); }
.ec-dock svg { width: 19px; height: 19px; }
.ec-dock .i-sun, html[data-theme="dark"] .ec-dock .i-moon { display: none; }
html[data-theme="dark"] .ec-dock .i-sun { display: block; }
.ec-dock .i-motion-off { display: none; }
html[data-motion="off"] .ec-dock .i-motion-on { display: none; }
html[data-motion="off"] .ec-dock .i-motion-off { display: block; }

/* ---------- command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding-top: min(14vh, 120px); background: rgba(8, 6, 12, .5); }
.cmdk.open { display: flex; }
.cmdk .box { width: min(680px, calc(100vw - 24px)); background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.cmdk .q { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--line); }
.cmdk .q svg { width: 20px; height: 20px; color: var(--text-3); }
.cmdk .q input { flex: 1; border: 0; background: transparent; outline: none; font-size: 17px; }
.cmdk .q kbd { font-family: var(--mono); font-size: 11.5px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-3); }
.cmdk .list { max-height: min(60vh, 520px); overflow-y: auto; padding: 8px; }
.cmdk .grp { font-size: 12px; color: var(--text-3); font-weight: 650; padding: 10px 10px 6px; }
.cmdk .it { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 15px; }
.cmdk .it svg, .cmdk .it img { width: 18px; height: 18px; color: var(--text-3); justify-self: center; border-radius: 4px; }
.cmdk .it .rt { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cmdk .it[aria-selected="true"] { background: var(--bg-soft); }
.cmdk .it[aria-selected="true"] svg { color: var(--accent-ink); }
.cmdk .empty { padding: 28px; text-align: center; color: var(--text-3); font-size: 14px; }

/* language hint bar */
.lang-hint { display: none; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-hint.show { display: block; }
.lang-hint .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.lang-hint a { font-weight: 650; color: var(--accent-ink); }
.lang-hint button { margin-left: auto; color: var(--text-3); }
.lang-hint button svg { width: 16px; height: 16px; }

/* ---------- footer ---------- */
.ec-foot { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0 36px; }
.ec-foot .eclipse-photo { position: absolute; inset: 0; z-index: 0; }
.ec-foot .eclipse-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .55; }
/* ai-design-ok: scrim over the eclipse photo so footer text stays readable; it also joins the section above */
.ec-foot .eclipse-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,12,.92) 0%, rgba(8,7,12,.7) 45%, rgba(8,7,12,.15) 100%); }
.ec-foot .wrap { position: relative; z-index: 1; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.ft-brand p { color: var(--text-2); font-size: 15px; margin: 18px 0 20px; max-width: 26em; }
.ft-brand .motto { font-size: 22px; line-height: 1.32; letter-spacing: -.02em; color: var(--text); font-weight: 600; max-width: 15em; }
.ft-col h3 { font-size: 13px; color: var(--text-3); font-weight: 650; margin: 0 0 14px; }
.ft-col a { display: block; font-size: 14.5px; color: var(--text-2); padding: 5px 0; }
.ft-col a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text-2); background: rgba(255,255,255,.02); transition: color .16s var(--ease), border-color .16s var(--ease); }
.socials a:hover { color: var(--text); border-color: var(--text-3); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.ft-bot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; font-size: 13px; color: var(--text-3); }
.ft-bot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ft-risk { font-size: 12.5px; color: var(--text-3); line-height: 1.65; margin-top: 24px; max-width: 72em; }

/* ---------- entrance motion ---------- */
html.js[data-motion="on"] [data-in] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js[data-motion="on"] [data-in].in { opacity: 1; transform: none; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ec-search { min-width: 0; }
  .ec-search .lbl, .ec-search kbd { display: none; }
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .ec-nav { display: none; }
  .ec-burger { display: grid; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega, .mega.wide { min-width: 0; }
}
@media (max-width: 640px) {
  :root { --head-h: 58px; }
  .ec-logo img { height: 23px; }
  .ec-lang { display: none; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span2 { grid-column: auto; }
  .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-card { grid-template-columns: 44px minmax(0, 1fr); }
  .ex-card .btn { grid-column: 1 / -1; }
  .ec-dock { right: 12px; bottom: 12px; }
  .ec-dock button { width: 40px; height: 40px; }
  .prose { font-size: 16.5px; }
}

/* ---------- mobile drawer ---------- */
.drawer { position: fixed; inset: var(--head-h) 0 0 0; z-index: 59; background: var(--bg); overflow-y: auto; padding: 16px var(--gut) 120px; display: none; }
.drawer.open { display: block; }
.drawer h3 { font-size: 13px; color: var(--text-3); margin: 22px 0 6px; font-weight: 650; }
.drawer a.dl { display: flex; align-items: center; gap: 12px; padding: 11px 4px; font-size: 16px; font-weight: 560; border-bottom: 1px solid var(--line); }
.drawer a.dl svg { width: 18px; height: 18px; color: var(--text-3); }
.drawer .dlang { display: flex; gap: 8px; margin-top: 18px; }

/* ---------- shared bits used across pages ---------- */
.cbadge { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 8px; font-weight: 750; color: #fff; background: hsl(var(--h, 260) 38% 42%); letter-spacing: -.02em; flex: none; overflow: hidden; }
.copy { font-family: var(--mono); font-size: 12.5px; padding: 1px 7px; border-radius: 6px; border: 1px dashed var(--line-strong); color: var(--text-2); margin-left: 4px; }
.copy:hover { border-style: solid; color: var(--text); }
.exgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; margin-bottom: 18px; }
.faq-wrap { margin-top: clamp(40px, 5vw, 64px); }
.faq-t { margin-bottom: 8px; }
.srcs { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.srcs a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.srcs a:hover { color: var(--text); }
.srcs img { width: 16px; height: 16px; border-radius: 4px; }
.skip:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong); }
.hd-cta { margin-left: 4px; }
@media (max-width: 1180px) { .hd-cta span { display: none; } .hd-cta { width: 36px; padding: 0; } }

/* ---------- fixes after the first screenshots ---------- */
[hidden] { display: none !important; }
.i { width: 1.2em; height: 1.2em; flex: none; }
.pill { white-space: nowrap; }
.kpi { align-content: start; }
.kpi .k-l .i { width: 20px; height: 20px; color: var(--text-3); }
.k-v, .cc-p { display: inline-block; justify-self: start; border-radius: 6px; }
.txf.fl-up, .txf.fl-down { background: none; }
.txf.fl-up { animation: ec-tx-up 1s var(--ease); }
.txf.fl-down { animation: ec-tx-down 1s var(--ease); }
@keyframes ec-tx-up { 0% { color: var(--up); } 100% { color: var(--text); } }
@keyframes ec-tx-down { 0% { color: var(--down); } 100% { color: var(--text); } }
.sn { display: inline-block; }
.ex-card .ex-c { font-family: var(--font); font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.btn .i { width: 18px; height: 18px; }
.sec-h .more { white-space: nowrap; }
.ex-g { font-size: 14px; font-weight: 650; color: var(--text-2); margin: 22px 0 10px; }
.ex-g:first-of-type { margin-top: 0; }
.exgrid.ex2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exgrid.ex3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .exgrid.ex3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .exgrid.ex2, .exgrid.ex3 { grid-template-columns: minmax(0, 1fr); } }
.ft-brand .tagline { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; color: var(--text); font-weight: 620; margin: 20px 0 6px; }
.ft-brand .ft-desc { color: var(--text-2); font-size: 14.5px; margin: 0 0 20px; max-width: 24em; }
.ss-next { font-size: 13px; color: var(--text-2); margin: 4px 0 0; }
.ss-next b { color: var(--text); font-weight: 650; }
.kpi .k-s span { white-space: nowrap; }
.ec-head.on-stage { background: rgba(8, 7, 12, .86); }
.ec-foot .eclipse-photo img { opacity: .9; object-position: 78% 30%; }

/* eclipse moon colour for the corona chart */
:root { --moon: #1b1524; --glow: .16; }
html[data-theme="dark"] { --moon: #060509; --glow: .22; }
html:not([data-theme="dark"]) .hero .kpi { background: var(--bg); box-shadow: var(--shadow); }

/* Quicksand: the brand's English display face (user's choice, kept from the old site) */
@font-face {
  font-family: "Quicksand";
  src: url("/fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
.qs { font-family: "Quicksand", var(--font); }
.display.qs { font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.ft-brand .tagline { font-family: "Quicksand", var(--font); font-weight: 600; letter-spacing: -.02em; }

/* maxims marquee, as on the old eclipse.trading footer */
.maxims { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px) 0; background: var(--bg); }
.maxims .track { display: flex; width: max-content; gap: 0; }
.maxims ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex: none; }
.maxims li { font-family: "Quicksand", var(--font); font-weight: 600; font-size: clamp(30px, 4.4vw, 60px); letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; display: flex; align-items: center; color: var(--text); }
.maxims li:nth-child(3n+2) { color: var(--text-3); }
.maxims li::after { content: ""; width: clamp(16px, 2vw, 24px); height: clamp(16px, 2vw, 24px); margin: 0 clamp(20px, 2.6vw, 36px); border-radius: 50%; background: var(--amber); box-shadow: inset -6px 0 0 0 var(--plum); flex: none; }
html[data-motion="on"] .maxims .track { animation: ec-marq 60s linear infinite; }
.maxims:hover .track { animation-play-state: paused; }
@keyframes ec-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
