/* ==========================================================================
   B-Empire — "Royal ledger"
   Deep royal night + brand gold, Marcellus inscriptional display type,
   crown-battlement edges as the one signature ornament.
   ========================================================================== */

:root {
  --night: #070A3D;        /* deepest navy — hero, footer */
  --royal: #010187;        /* brand navy (from the logo) */
  --royal-ink: #1A1F9E;    /* links/buttons on light surfaces */
  --gold: #CD9923;         /* brand gold */
  --gold-deep: #A87A12;    /* gold text on light backgrounds (AA on paper) */
  --gold-pale: #F6E9C6;
  --paper: #F3F4FA;        /* cool off-white page */
  --surface: #FFFFFF;
  --ink: #14173D;          /* body text */
  --muted: #565A7C;
  --line: #DADCEB;
  --up: #1E8E5A;
  --down: #C2402F;

  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--royal-ink);
  --bs-link-color-rgb: 26, 31, 158;
  --bs-link-hover-color: var(--royal);
  --bs-border-color: var(--line);
  --bs-primary: var(--royal);
  --bs-primary-rgb: 1, 1, 135;
}

/* ---------- Base ---------- */
.container { --bs-gutter-x: 2rem; }
html, body { overflow-x: clip; }
@media (max-width: 575.98px) { .row.g-5, .row.g-lg-5 { --bs-gutter-x: 2rem; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.12;
  color: inherit;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.45rem; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 650; }

p { max-width: 68ch; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); }

a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--gold); color: var(--night); padding: .6rem 1rem; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin-top: 1rem; }
.bg-surface { background: var(--surface); }
.bg-night { background: var(--night); color: #E7E8F5; }
.bg-night .lead, .bg-night .section-head p { color: #B5B8DA; }
.text-gold { color: var(--gold) !important; }
.text-gold-deep { color: var(--gold-deep) !important; }
.text-muted-2 { color: var(--muted) !important; }

/* ---------- Signature: crown battlements ----------
   A crenellated edge (the crown in the logo, repeated) marks the boundary
   between a royal-night block and the page. Used only on hero/page-hero
   bottoms and the footer top. */
.crenel-bottom { position: relative; }
.crenel-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='22'%3E%3Cpath d='M0 22V10h22V0h44v10h22v12z'/%3E%3C/svg%3E") repeat-x bottom left / 88px 22px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='22'%3E%3Cpath d='M0 22V10h22V0h44v10h22v12z'/%3E%3C/svg%3E") repeat-x bottom left / 88px 22px;
  pointer-events: none;
}
.crenel-bottom.to-surface::after { background: var(--surface); }
.crenel-top { position: relative; }
.crenel-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='22'%3E%3Cpath d='M0 0v12h22v10h44V12h22V0z'/%3E%3C/svg%3E") repeat-x top left / 88px 22px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='22'%3E%3Cpath d='M0 0v12h22v10h44V12h22V0z'/%3E%3C/svg%3E") repeat-x top left / 88px 22px;
}

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .7rem 1.4rem; letter-spacing: .005em; }
.btn-sm { padding: .45rem 1.05rem; font-size: .925rem; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.075rem; }
.btn-gold { background: var(--gold); color: var(--night); border: 1px solid var(--gold); }
.btn-gold:hover, .btn-gold:focus-visible { background: #E0AD35; border-color: #E0AD35; color: var(--night); }
.btn-royal { background: var(--royal); color: #fff; border: 1px solid var(--royal); }
.btn-royal:hover, .btn-royal:focus-visible { background: var(--royal-ink); border-color: var(--royal-ink); color: #fff; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.45); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-ghost { color: var(--royal); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--royal); color: var(--royal); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--royal-ink); display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .bi { transition: transform .2s; }
.link-arrow:hover .bi { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 1030; transition: background .25s, box-shadow .25s; }
.site-header.is-solid, body.header-solid .site-header { position: fixed; background: rgba(7, 10, 61, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
body.header-solid { padding-top: 76px; }
.site-header .navbar { padding: 1.1rem 0; }
.site-header.is-solid .navbar { padding: .7rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.navbar-brand:hover { color: #fff; }
.brand-mark { height: 34px; width: auto; }
.brand-word { font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: .02em; }
.site-header .nav-link { color: rgba(255,255,255,.78); font-weight: 500; padding: .5rem .95rem !important; position: relative; }
.site-header .nav-link:hover { color: #fff; }
.site-header .nav-link.active { color: #fff; }
.site-header .nav-link.active::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .15rem; height: 2px; background: var(--gold); }
.navbar-toggler { border: 0; color: #fff; font-size: 1.9rem; padding: 0 .25rem; }
.navbar-toggler:focus { box-shadow: none; }

.mobile-nav { background: var(--night); color: #fff; max-width: 320px; }
.mobile-nav .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav ul a { display: block; padding: .8rem 0; color: rgba(255,255,255,.85); text-decoration: none; font-size: 1.25rem; font-family: var(--font-display); border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-nav ul a.active { color: var(--gold); }

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--night);
  color: #fff;
  padding: 9.5rem 0 7rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,10,61,.96) 0%, rgba(7,10,61,.86) 42%, rgba(7,10,61,.55) 100%),
    linear-gradient(0deg, rgba(7,10,61,.9) 0%, rgba(7,10,61,0) 40%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero h1 .gold-rule { display: block; width: 72px; height: 3px; background: var(--gold); margin-bottom: 1.6rem; }
.hero-sub { color: #C9CBE6; font-size: 1.2rem; max-width: 34rem; margin: 1.4rem 0 2.2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.6rem; color: #B5B8DA; font-size: .95rem; }
.hero-proof strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; font-weight: 400; line-height: 1.1; }
.stars { color: var(--gold); letter-spacing: 1px; }

/* Rate board */
.rate-board {
  background: rgba(10, 14, 74, .78);
  border: 1px solid rgba(205,153,35,.4);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  color: #E7E8F5;
}
.rate-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.rate-board-head h2 { font-size: 1.35rem; margin: 0; color: #fff; }
.rate-board-head small { color: #9A9DC6; font-size: .8rem; }
.usdt-rates { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.usdt-rate { background: rgba(255,255,255,.05); border-radius: var(--r-md); padding: .9rem 1rem; }
.usdt-rate span { display: block; font-size: .85rem; color: #A9ACD3; }
.usdt-rate strong { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; color: var(--gold); line-height: 1.15; }
.usdt-rate em { font-style: normal; font-size: .8rem; color: #8B8EBB; }
.ticker-list { list-style: none; padding: 0; margin: 0; }
.ticker-list li { display: grid; grid-template-columns: 1.6rem 1fr auto auto; gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.ticker-list img { width: 1.6rem; height: 1.6rem; border-radius: 50%; }
.ticker-list .sym { color: #8B8EBB; font-size: .8rem; margin-left: .3rem; }
.ticker-list .price { font-variant-numeric: tabular-nums; color: #fff; }
.chg { font-variant-numeric: tabular-nums; font-size: .85rem; min-width: 4.2rem; text-align: right; }
.chg.up { color: #4FD195; }
.chg.down { color: #FF8A78; }
.bg-surface .chg.up, .table .chg.up { color: var(--up); }
.bg-surface .chg.down, .table .chg.down { color: var(--down); }
.rate-board-foot { font-size: .78rem; color: #8B8EBB; margin-top: .9rem; }
.rate-board-foot a { color: #B5B8DA; }
.skeleton { display: inline-block; height: .9em; width: 5rem; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--night); color: #fff; padding: 9rem 0 5.5rem; overflow: hidden; }
.page-hero .hero-bg::after { background: linear-gradient(90deg, rgba(7,10,61,.95), rgba(7,10,61,.7)); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.5vw, 3.6rem); max-width: 18ch; }
.page-hero p { color: #C9CBE6; font-size: 1.15rem; margin-top: 1rem; max-width: 40rem; }
.crumbs { font-size: .9rem; color: #9A9DC6; margin-bottom: 1.2rem; }
.crumbs a { color: #C9CBE6; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Trust strip ---------- */
.trust { padding: 2.75rem 0 1.5rem; }
.trust-line { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.3; max-width: 34ch; margin: 0; }
.trust-facts { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.trust-facts div { min-width: 7rem; }
.trust-facts strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; color: var(--royal); line-height: 1.1; }
.trust-facts span { color: var(--muted); font-size: .95rem; }

/* ---------- Service rows (buy / sell / learn) ---------- */
.service { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-icon { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: var(--gold); font-size: 1.35rem; }
.service h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.service p { color: var(--muted); margin-bottom: .35rem; }
.phone-stage { position: relative; background: radial-gradient(circle at 50% 45%, #1C2190 0%, var(--night) 70%); border-radius: var(--r-lg); padding: 2.5rem 1.5rem; text-align: center; overflow: hidden; }
.phone-stage img { max-width: 100%; height: auto; }
.phone-stage .stage-caption { color: #C9CBE6; font-family: var(--font-display); font-size: 1.35rem; margin: 1rem auto 0; max-width: 22ch; }

/* ---------- Media + text split ---------- */
.split-media { position: relative; }
.split-media .m1 { border-radius: var(--r-lg); width: 82%; aspect-ratio: 4/3; object-fit: cover; }
.split-media .m2 { position: absolute; right: 0; bottom: -2.5rem; width: 48%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--r-lg); border: 6px solid var(--paper); }
.bg-surface .split-media .m2 { border-color: var(--surface); }

/* ---------- Market tiles ---------- */
.market-tile { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/4; color: #fff; text-decoration: none; isolation: isolate; }
.market-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.market-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,10,61,.92) 0%, rgba(7,10,61,.25) 55%, rgba(7,10,61,.05) 100%); }
.market-tile .tile-body { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; }
.market-tile h3 { font-size: 1.75rem; margin: 0; }
.market-tile .tile-price { color: var(--gold); font-variant-numeric: tabular-nums; font-size: 1.05rem; margin-top: .35rem; }
.market-tile:hover img { transform: scale(1.04); }
.market-tile:hover { color: #fff; }

/* Market table */
.market-table { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.market-table .table { margin: 0; --bs-table-bg: transparent; }
.market-table th { font-size: .82rem; font-weight: 600; color: var(--muted); padding: .9rem 1.2rem; border-bottom-color: var(--line); }
.market-table td { padding: .85rem 1.2rem; vertical-align: middle; font-variant-numeric: tabular-nums; }
.market-table .coin { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.market-table .coin img { width: 28px; height: 28px; border-radius: 50%; }
.market-table .coin small { color: var(--muted); font-weight: 500; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--royal); color: #fff; padding: 3.5rem 0; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { color: #C3C5F0; display: block; margin-top: .5rem; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.15); }
@media (max-width: 767.98px) { .stat + .stat { border-left: 0; } .stat { padding: 1rem 0; } }

/* ---------- Article cards ---------- */
.article-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.article-card .thumb { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 1.1rem; background: var(--line); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .thumb img { transform: scale(1.04); }
.article-card .meta { font-size: .85rem; color: var(--muted); display: flex; gap: .9rem; margin-bottom: .5rem; }
.article-card .cat { color: var(--gold-deep); font-weight: 600; }
.article-card h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: .5rem; }
.article-card:hover h3 { color: var(--royal-ink); }
.article-card p { color: var(--muted); font-size: .98rem; margin: 0; }
.article-card.featured .thumb { aspect-ratio: 16/9; }
.article-card.featured h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }

.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.cat-filter a { padding: .45rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.cat-filter a:hover { border-color: var(--royal); }
.cat-filter a.active { background: var(--royal); color: #fff; border-color: var(--royal); }

/* ---------- Article page ---------- */
.article-hero { padding: 8.5rem 0 0; background: var(--night); color: #fff; }
.article-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 22ch; }
.article-hero .meta { color: #A9ACD3; display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.25rem; font-size: .95rem; }
.article-hero .meta .cat { color: var(--gold); font-weight: 600; }
.article-cover { margin-top: 3rem; margin-bottom: -6rem; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21/9; position: relative; z-index: 2; box-shadow: 0 30px 60px -30px rgba(7,10,61,.5); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body-wrap { padding-top: 9rem !important; }
.prose { font-size: 1.125rem; line-height: 1.75; max-width: 42rem; }
.prose p, .prose li, .prose dd { max-width: 66ch; }
.prose h2 { font-size: 1.85rem; margin: 2.6rem 0 1rem; color: var(--royal); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--gold-deep); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .65rem 1.4rem; margin: 1.5rem 0; }
.prose dt { font-weight: 650; color: var(--royal); }
.prose dd { margin: 0; color: var(--ink); }
@media (max-width: 575.98px) { .prose dl { grid-template-columns: 1fr; gap: .1rem; } .prose dd { margin-bottom: .8rem; } }
.prose .callout { background: var(--gold-pale); border-left: 4px solid var(--gold); padding: 1rem 1.25rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 1rem; }
.prose a { color: var(--royal-ink); font-weight: 600; }
.article-aside { position: sticky; top: 100px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; }
.aside-card h2 { font-size: 1.35rem; }

/* ---------- Offer cards (about) ---------- */
.offer { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); }
.offer img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.offer-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.offer h3 { font-size: 1.45rem; color: var(--royal); }
.offer p { color: var(--muted); flex: 1; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.pillars li { display: flex; gap: .7rem; align-items: center; font-weight: 600; color: var(--royal); }
.pillars .bi { color: var(--gold-deep); font-size: 1.15rem; }

/* CEO */
.ceo-portrait { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 60% 20%; }
.ceo-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-deep); }
.ceo-gallery { columns: 4 180px; column-gap: .9rem; }
.ceo-gallery button { display: block; width: 100%; margin: 0 0 .9rem; padding: 0; border: 0; background: none; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.ceo-gallery img { width: 100%; height: auto; display: block; transition: transform .4s ease, filter .4s; }
.ceo-gallery button:hover img { transform: scale(1.03); }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox img { max-height: 85vh; width: auto; max-width: 100%; margin: 0 auto; display: block; border-radius: var(--r-md); }

/* ---------- Trade page ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(step); width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--royal); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; }
.steps strong { display: block; color: var(--ink); }
.steps span { color: var(--muted); }

.converter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; }
.converter .form-control, .converter .form-select { font-size: 1.15rem; padding: .75rem 1rem; border-radius: var(--r-md); }
.converter-out { background: var(--paper); border-radius: var(--r-md); padding: 1.1rem 1.25rem; margin-top: 1.25rem; }
.converter-out .big { font-family: var(--font-display); font-size: 2rem; color: var(--royal); line-height: 1.1; font-variant-numeric: tabular-nums; }
.converter-out .row-line { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; color: var(--muted); font-size: .95rem; }
.converter-out .row-line b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.seg { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; margin-bottom: 1.25rem; }
.seg input { position: absolute; opacity: 0; }
.seg label { padding: .45rem 1.2rem; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg input:checked + label { background: var(--royal); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--gold); }

.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem 1.5rem; height: 100%; }
.pay-card .pay-type { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.pay-card .pay-type .bi { color: var(--gold-deep); font-size: 1.15rem; }
.pay-card h3 { font-family: var(--font-body); font-weight: 650; font-size: 1.1rem; margin-bottom: .2rem; }
.pay-card .acct-name { color: var(--muted); font-size: .95rem; }
.copy-row { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; background: var(--paper); border-radius: var(--r-md); padding: .55rem .55rem .55rem .9rem; }
.copy-row code { flex: 1; color: var(--ink); font-size: .98rem; word-break: break-all; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: none; }
.copy-btn { border: 0; background: var(--royal); color: #fff; border-radius: 8px; padding: .4rem .75rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.copy-btn:hover { background: var(--royal-ink); }
.copy-btn.copied { background: var(--up); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: var(--r-sm); border-color: #C9CCE0; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--royal-ink); box-shadow: 0 0 0 .2rem rgba(26,31,158,.15); }
.form-text { color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--gold-pale); border-radius: var(--r-md); padding: 1rem 1.2rem; font-size: .98rem; }
.notice .bi { color: var(--gold-deep); }

.receipt { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 2.5rem; text-align: center; max-width: 36rem; margin: 0 auto; }
.receipt .ref { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; color: var(--royal); letter-spacing: .06em; background: var(--paper); border-radius: var(--r-md); padding: .6rem 1rem; display: inline-block; margin: 1rem 0; }

/* ---------- Courses ---------- */
.course { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.course > img { aspect-ratio: 16/8; object-fit: cover; width: 100%; }
.course-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.course h3 { font-size: 1.75rem; color: var(--royal); }
.course-facts { display: grid; gap: .5rem; margin: 1.1rem 0 1.25rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .98rem; }
.course-facts div { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; color: var(--ink); }
.course-facts .bi { color: var(--gold-deep); }
.course ul { padding-left: 1.15rem; color: var(--muted); }
.course ul li { margin-bottom: .45rem; }
.course ul li::marker { color: var(--gold-deep); }
.price-row { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: auto 0 1.25rem; padding-top: 1rem; }
.price-now { font-family: var(--font-display); font-size: 2.5rem; color: var(--ink); line-height: 1; }
.price-was { color: var(--muted); text-decoration: line-through; }
.price-off { background: var(--gold-pale); color: #7A5806; font-weight: 700; font-size: .85rem; border-radius: 999px; padding: .2rem .7rem; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.faq .accordion-button { background: transparent; font-weight: 600; font-size: 1.1rem; color: var(--ink); padding: 1.25rem 0; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--royal); }
.faq .accordion-button:focus-visible { outline: 3px solid var(--gold); }
.faq .accordion-body { padding: 0 0 1.4rem; color: var(--muted); }
.faq .accordion-button::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A87A12'%3E%3Cpath d='M8 2a.75.75 0 0 1 .75.75v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5h4.5v-4.5A.75.75 0 0 1 8 2z'/%3E%3C/svg%3E"); }
.faq .accordion-button:not(.collapsed)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A87A12'%3E%3Cpath d='M2.75 7.25h10.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5z'/%3E%3C/svg%3E"); transform: none; }

/* ---------- Referral / CTA panels ---------- */
.panel-gold { background: var(--gold); color: var(--night); border-radius: var(--r-lg); padding: clamp(1.75rem, 3vw, 2.5rem); position: relative; overflow: hidden; }
.panel-gold h2, .panel-gold h3 { color: var(--night); }
.panel-gold .big-pct { font-family: var(--font-display); font-size: clamp(4rem, 9vw, 6rem); line-height: .9; }
.panel-gold .crest { position: absolute; right: -30px; bottom: -40px; width: 180px; opacity: .14; filter: brightness(0); }
.cta-band { background: var(--night); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9CBE6; }
.cta-band .crest { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 140px; opacity: .2; }

.contact-line { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.contact-line:last-of-type { border-bottom: 1px solid var(--line); }
.contact-line .ico { width: 3rem; height: 3rem; border-radius: 50%; background: var(--royal); color: var(--gold); display: grid; place-items: center; font-size: 1.25rem; }
.contact-line small { color: var(--muted); display: block; }
.contact-line strong { font-weight: 600; color: var(--ink); }
a.contact-line:hover strong { color: var(--royal-ink); }

.social a { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; font-size: 1.05rem; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.social.on-light a { border-color: var(--line); color: var(--royal); background: var(--surface); }
.social.on-light a:hover { background: var(--royal); color: #fff; border-color: var(--royal); }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.55rem; color: var(--royal); margin-top: 2.5rem; scroll-margin-top: 100px; }
.legal ol, .legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .45rem; }
.legal .caps { font-size: .95rem; }
.toc { font-size: .95rem; }
.toc ol { padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--royal-ink); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #B5B8DA; padding: 5.5rem 0 2rem; margin-top: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.footer-brand span { font-family: var(--font-display); font-size: 1.8rem; color: #fff; }
.footer-lede { max-width: 30ch; }
.footer-h { font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: #fff; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #B5B8DA; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .88rem; }
.footer-risk { color: #8B8EBB; }

.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 25px -6px rgba(0,0,0,.35); text-decoration: none; }
.wa-float:hover { color: #fff; transform: translateY(-2px); }

/* ---------- One orchestrated moment: hero load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero .reveal:nth-child(2) { animation-delay: .1s; }
  .hero .reveal:nth-child(3) { animation-delay: .2s; }
  .hero .reveal:nth-child(4) { animation-delay: .3s; }
  .hero .rate-board.reveal { animation-delay: .35s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero { padding: 7.5rem 0 5.5rem; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(7,10,61,.82), rgba(7,10,61,.95)); }
  .split-media { margin-bottom: 3rem; }
  .article-aside { position: static; }
  .toc ol { columns: 1; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .pillars { grid-template-columns: 1fr; }
  .usdt-rate strong { font-size: 1.55rem; }
  .ticker-list li { grid-template-columns: 1.4rem 1fr auto; }
  .ticker-list li .chg { grid-column: 3; }
  .ticker-list li .price { grid-column: 2; grid-row: 2; font-size: .85rem; color: #A9ACD3; }
  .ticker-list li img { grid-row: span 2; }
  .page-hero { padding: 7.5rem 0 4.5rem; }
  .cta-band .crest { display: none; }
  .trust-facts { gap: 1.5rem; }
  .market-table th:nth-child(4), .market-table td:nth-child(4) { display: none; }
}

/* Rate tiles placed on light pages */
.usdt-rate.solid { background: var(--night); border-radius: var(--r-md); padding: 1.1rem 1.25rem; }
.usdt-rate.solid strong { font-size: 2.2rem; }
