/* Eterna Markets on the Melius layout: white brand, ink accent. Orange -> ink is swapped in by rebrand.js. */
:root {
  --et-ink: #0e0e0e; --et-ink-2: #3e3e3e; --et-mute: #8a8a8a; --et-line: #ececec; --et-soft: #f6f6f6; --et-bg: #ffffff;
  --et-up: #16a34a; --et-down: #dc2626;
}
html, body { background: var(--et-bg); }

/* ------------------------------------------------------------------ nav: white */
nav[aria-label="Main"] { background: rgba(255, 255, 255, .92) !important; backdrop-filter: blur(12px); border-color: var(--et-line) !important; border-bottom: 1px solid var(--et-line) !important; }
nav[aria-label="Main"] ul a, nav[aria-label="Main"] ul button { color: var(--et-ink) !important; }
nav[aria-label="Main"] ul a:hover { background: var(--et-soft) !important; }
nav[aria-label="Main"] li:has(> button[aria-controls^="nav-menu-"]) { display: none !important; }
nav[aria-label="Main"] a[data-slot="button"][href*="x.com"] { border: 1px solid var(--et-line); }

/* logo: Eterna mark + name (black on white, white on dark surfaces) */
a[aria-label="Eterna home"] { gap: 9px; }
a[aria-label="Eterna home"] > svg { display: none !important; }
a[aria-label="Eterna home"]::before { content: ""; width: 24px; height: 24px; flex: none; background: url(/et/mark-black.png) center / contain no-repeat; }
a[aria-label="Eterna home"]::after { content: "Eterna Markets"; color: var(--et-ink); font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
footer a[aria-label="Eterna home"]::before { background-image: url(/et/mark-white.png); }
footer a[aria-label="Eterna home"]::after { color: #fff; }

/* announcement bar */
a.group\/banner { cursor: pointer; }
a.group\/banner .rin-icon-tag { display: none; }

/* ------------------------------------------------------------------ hero */
#hero .bg-gray-background { background: var(--et-bg) !important; }
#hero::after { /* soft mark behind the headline */
  content: ""; position: absolute; left: 50%; top: 50%; width: min(620px, 80vw); aspect-ratio: 1; transform: translate(-50%, -54%);
  background: url(/et/mark-black.png) center / contain no-repeat; opacity: .045; filter: blur(2px); pointer-events: none; z-index: 1;
}
button[aria-controls="mcp-setup-prompt"] > span[aria-hidden="true"], button[aria-controls="mcp-setup-prompt"] > svg { display: none !important; }
button[aria-controls="mcp-setup-prompt"]::before { content: "𝕏"; font-weight: 700; margin-right: 2px; }
button[aria-controls="mcp-setup-prompt"] { border: 1px solid var(--et-line); }

/* orbit cards -> live market cards */
a[data-orbit-card] img, a[data-orbit-card] video { visibility: hidden !important; }
a[data-orbit-card] [data-orbit-label] svg { display: none; }
a[data-orbit-card] [data-orbit-label] { color: var(--et-ink-2); font-weight: 500; }
.et-mkt {
  position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background: #fff; color: var(--et-ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: .8em; box-sizing: border-box; text-align: left; line-height: 1.15;
}
.et-mkt .r { display: flex; align-items: center; justify-content: space-between; gap: .4em; }
.et-mkt .sym { display: flex; align-items: center; gap: .35em; font-size: 1em; font-weight: 600; letter-spacing: -.01em; }
.et-mkt .sym i { width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--et-ink); color: #fff; font-style: normal; font-size: .7em; display: grid; place-items: center; font-weight: 600; }
.et-mkt .lev { font-size: .72em; color: var(--et-mute); border: 1px solid var(--et-line); border-radius: 99px; padding: .15em .5em; }
.et-mkt .px { font-size: 1.45em; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.et-mkt .chg { font-size: .78em; font-variant-numeric: tabular-nums; margin-top: .15em; }
.et-mkt svg { width: 100%; height: 28%; display: block; overflow: visible; flex: none; }
.et-mkt .liq { font-size: .72em; color: var(--et-ink-2); display: flex; align-items: center; gap: .4em; white-space: nowrap; }
.et-mkt .liq b { width: .5em; height: .5em; border-radius: 50%; background: var(--et-up); display: inline-block; flex: none; }
.et-mkt.short svg, .et-mkt.short .liq { display: none; }
.et-up { color: var(--et-up); } .et-down { color: var(--et-down); }

/* ------------------------------------------------------------------ Melius sections not used by Eterna */
#customers, #canvas, section[id^="canvas-showcase"], #solutions, #pricing { display: none !important; }

/* ------------------------------------------------------------------ FAQ: white */
#faq { background: var(--et-bg); }
#faq .bg-black, #faq .bg-offblack, #faq [class*="bg-gray-dark"] { background: var(--et-bg) !important; }
#faq .text-white, #faq .text-white-2, #faq [class*="text-gray-light"] { color: var(--et-ink) !important; }
#faq [class*="border-gray-dark"], #faq [class*="border-white"] { border-color: var(--et-line) !important; }
#faq p, #faq [class*="text-gray"] { color: var(--et-ink-2) !important; }
#faq h2 { color: var(--et-ink) !important; }
.et-faq-wrap { background: var(--et-bg) !important; }

/* footer wordmark */
svg[viewBox="0 0 836 150"] { visibility: hidden; }
div:has(> svg[viewBox="0 0 836 150"])::after {
  content: "ETERNA"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: #2a2a2a; font-size: 19vw;
}

/* ------------------------------------------------------------------ Eterna sections */
.et-sec { position: relative; background: var(--et-bg); color: var(--et-ink); padding: clamp(64px, 9vw, 120px) 16px; }
.et-sec + .et-sec { border-top: 1px solid var(--et-line); }
.et-wrap { max-width: 1200px; margin: 0 auto; }
.et-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.et-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--et-ink-2); border: 1px solid var(--et-line); border-radius: 99px; padding: 6px 12px; margin-bottom: 22px; }
.et-eyebrow img { width: 14px; height: 14px; }
.et-head h2 { margin: 0 0 18px; color: var(--et-ink); }
.et-head p { color: var(--et-ink-2); margin: 0; }

/* terminal */
.et-term { display: grid; grid-template-columns: 1.6fr 1fr; border: 1px solid var(--et-line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .18); }
.et-chart { padding: 22px 24px; border-right: 1px solid var(--et-line); min-width: 0; }
.et-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.et-tabs button { border: 1px solid var(--et-line); background: #fff; color: var(--et-ink-2); font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.et-tabs button.on { background: var(--et-ink); border-color: var(--et-ink); color: #fff; }
.et-quote { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.et-quote .px { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.et-quote .chg { font-size: 14px; font-variant-numeric: tabular-nums; }
.et-quote .mk { font-size: 13px; color: var(--et-mute); }
.et-plot { position: relative; height: 320px; margin-top: 14px; }
.et-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.et-plot .lbl { position: absolute; right: 0; font-size: 11px; padding: 3px 8px; border-radius: 99px; transform: translateY(-50%); white-space: nowrap; }
.et-plot .lbl.liq { background: #fff; color: var(--et-down); border: 1px solid #f3c4c4; }
.et-plot .lbl.entry { background: var(--et-ink); color: #fff; }

.et-order { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.et-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--et-soft); border-radius: 12px; padding: 4px; }
.et-seg button { border: 0; background: transparent; font: inherit; font-size: 14px; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--et-ink-2); }
.et-seg button.on { background: #fff; color: var(--et-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.et-field label { display: flex; justify-content: space-between; font-size: 13px; color: var(--et-mute); margin-bottom: 8px; }
.et-field label b { color: var(--et-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.et-in { width: 100%; box-sizing: border-box; border: 1px solid var(--et-line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--et-ink); outline: none; }
.et-in:focus { border-color: var(--et-ink); }
.et-range { width: 100%; accent-color: var(--et-ink); }
.et-rows { border-top: 1px solid var(--et-line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.et-rows div { display: flex; justify-content: space-between; gap: 10px; color: var(--et-ink-2); }
.et-rows div b { color: var(--et-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.et-rows .strike b { color: var(--et-mute); text-decoration: line-through; }
.et-none { display: flex; align-items: center; justify-content: space-between; background: var(--et-soft); border-radius: 12px; padding: 14px 16px; }
.et-none span { font-size: 14px; color: var(--et-ink-2); }
.et-none b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.et-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 0; font: inherit; font-size: 15px; cursor: pointer; background: var(--et-ink); color: #fff; transition: transform .15s, opacity .2s; text-decoration: none; }
.et-btn:hover { opacity: .88; } .et-btn:active { transform: scale(.98); }
.et-note { font-size: 12px; color: var(--et-mute); line-height: 1.5; margin: 0; }

/* how it works */
.et-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.et-step { border: 1px solid var(--et-line); border-radius: 20px; padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.et-step .n { font-size: 13px; color: var(--et-mute); font-variant-numeric: tabular-nums; }
.et-step h3 { margin: auto 0 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.et-step p { margin: 0; color: var(--et-ink-2); font-size: 15px; line-height: 1.5; }
.et-step .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--et-soft); display: grid; place-items: center; }
.et-step .ic svg { width: 22px; height: 22px; }

/* markets table */
.et-table { border: 1px solid var(--et-line); border-radius: 20px; overflow: hidden; background: #fff; }
.et-table table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.et-table th { text-align: left; font-weight: 400; font-size: 13px; color: var(--et-mute); padding: 14px 20px; border-bottom: 1px solid var(--et-line); background: var(--et-soft); }
.et-table td { padding: 16px 20px; border-bottom: 1px solid var(--et-line); }
.et-table tr:last-child td { border-bottom: 0; }
.et-table tbody tr { cursor: pointer; transition: background .15s; }
.et-table tbody tr:hover { background: var(--et-soft); }
.et-table .coin { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.et-table .coin i { width: 28px; height: 28px; border-radius: 50%; background: var(--et-ink); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }
.et-table .never { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border: 1px solid var(--et-line); border-radius: 99px; padding: 4px 10px; }
.et-table .never b { width: 6px; height: 6px; border-radius: 50%; background: var(--et-up); }
.et-table .r { text-align: right; }
.et-live { display: inline-flex; align-items: center; gap: 6px; }
.et-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--et-up); animation: et-pulse 1.6s infinite; }
@keyframes et-pulse { 50% { opacity: .3; } }

@media (max-width: 900px) {
  .et-term { grid-template-columns: 1fr; }
  .et-chart { border-right: 0; border-bottom: 1px solid var(--et-line); padding: 18px 16px; }
  .et-order { padding: 18px 16px; }
  .et-plot { height: 240px; }
  .et-steps { grid-template-columns: 1fr; }
  .et-step { min-height: 0; }
  .et-table th:nth-child(4), .et-table td:nth-child(4) { display: none; }
  .et-table th, .et-table td { padding: 12px 12px; }
}
@media (max-width: 560px) { .et-table th:nth-child(5), .et-table td:nth-child(5) { display: none; } }

.et-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2147483001; transform: translate(-50%, 20px); opacity: 0; background: var(--et-ink); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.et-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Melius consent banner: this site sets no tracking cookies */
[data-testid="consent-banner-root"], [class*="c15t-ui-root"] { display: none !important; }

/* footer: one clean link column instead of Melius's sitemap */
.et-foot { margin-top: 56px; display: flex; gap: clamp(40px, 8vw, 120px); flex: 1; justify-content: flex-end; }
.et-foot > div { display: flex; flex-direction: column; gap: 14px; }
.et-foot span { font-size: 14px; text-transform: uppercase; color: #e3e3e3; margin-bottom: 8px; }
.et-foot a { color: #9c9996; text-decoration: none; font-size: 15px; transition: color .2s; }
.et-foot a:hover { color: #fff; }
@media (max-width: 1023px) { .et-foot { justify-content: flex-start; } }

/* mobile header: white logo pill; Melius's mobile menu (Product/Solutions/...) is not used */
.lg\:hidden > nav [data-slot="accordion-item"] { background: rgba(255, 255, 255, .95) !important; border-color: var(--et-line) !important; backdrop-filter: blur(12px); }
.lg\:hidden > nav [data-slot="accordion-trigger"], .lg\:hidden > nav [data-slot="accordion-content"] { display: none !important; }
.lg\:hidden > nav > div[aria-hidden="true"] { box-shadow: 0 8px 24px rgba(0, 0, 0, .08) !important; }
.lg\:hidden > nav { width: auto !important; }
.lg\:hidden > nav [data-slot="accordion-item"] > div { max-width: none !important; padding-right: 10px; }

/* footer bottom bar: no Melius status / consent links */
[data-testid="consent-dialog-link"], footer div:has(> .bg-green) { display: none !important; }

.et-more { display: flex; justify-content: center; margin-top: 28px; }
