:root {
  color-scheme: light dark;
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1180px;
  --shadow: 0 18px 60px rgba(9, 26, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(9, 26, 42, 0.09);
}

html[data-theme="coin"] {
  --primary: #008a7a;
  --primary-dark: #0a1f2f;
  --secondary: #246bfe;
  --accent: #f2573f;
  --surface: #ffffff;
  --bg: #f7faf9;
  --ink: #0f1720;
  --muted: #627282;
  --dark: #0a1f2f;
  --alt: #eaf2f2;
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-border: rgba(10, 31, 47, 0.12);
  --border-soft: rgba(10, 31, 47, 0.13);
  --footer-bg: #061821;
  --footer-logo-filter: brightness(0) invert(1);
  --positive: #07895f;
  --negative: #cf3f4e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand-logo,
.footer-logo {
  width: 164px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.nav-link {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--alt);
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.mobile-panel {
  position: fixed;
  inset: 74px 0 auto 0;
  z-index: 29;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.mobile-panel[hidden] {
  display: none !important;
}

.mobile-nav {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 18px 0 24px;
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 0;
  color: var(--ink);
  font-weight: 800;
  border-bottom: 1px solid var(--border-soft);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 78px 0 52px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 12%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--primary) 10%, transparent) 1px, transparent 1px),
    linear-gradient(135deg, color-mix(in srgb, var(--dark) 96%, var(--primary)), var(--primary-dark));
  background-size: 42px 42px, 42px 42px, auto;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.thanks-card h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.hero-lead,
.page-hero p,
.section-heading p,
.cta-inner p {
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 1.1rem;
  max-width: 68ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button-row.centered {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.11);
  color: currentColor;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.section:not(.compliance-band) .btn-secondary,
.contact-form .btn-primary {
  background: var(--dark);
  color: #fff;
}

.cta-inner .btn-secondary,
.compliance-band .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.stat-tile {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-tile strong {
  display: block;
  font-size: 1.1rem;
}

.stat-tile span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
}

.exchange-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, #000);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.exchange-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.exchange-preview-top strong {
  color: var(--accent);
}

.mini-chart {
  height: 188px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 26px 24px 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.mini-chart span {
  width: 100%;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--positive), color-mix(in srgb, var(--positive) 28%, transparent));
}

.mini-chart span.is-red {
  background: linear-gradient(180deg, var(--negative), color-mix(in srgb, var(--negative) 28%, transparent));
}

.preview-pairs {
  display: grid;
}

.preview-pairs div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-pairs a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.preview-pairs a:hover {
  color: var(--accent);
}

.preview-pairs span {
  font-weight: 900;
}

.preview-pairs strong {
  color: rgba(255, 255, 255, 0.86);
}

.preview-pairs em {
  font-style: normal;
  font-weight: 900;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.market-panel {
  position: absolute;
  right: -18px;
  bottom: 22px;
  width: min(275px, 86%);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.market-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--secondary);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--secondary) 20%, transparent);
}

.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}

.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.ticker-strip {
  overflow: hidden;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-track {
  display: flex;
  gap: 10px;
  width: max-content;
  min-width: 100%;
  padding: 12px 18px;
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
}

.ticker-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ticker-pill span {
  color: rgba(255, 255, 255, 0.72);
}

.ticker-pill em {
  font-style: normal;
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

.alt-section {
  background: var(--alt);
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading.left {
  text-align: left;
  margin-bottom: 0;
}

.section-heading h2,
.split-grid h2,
.cta-inner h2,
.contact-aside h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.section-heading p {
  margin-inline: auto;
}

.section-heading.left p {
  margin-inline: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.info-card,
.step-card,
.contact-form,
.contact-aside,
.legal-index,
.legal-article,
.thanks-card {
  border: 1px solid rgba(100, 115, 136, 0.16);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card div {
  padding: 22px;
}

.feature-card h3,
.info-card h3,
.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-card p,
.info-card p,
.step-card p,
.legal-article p,
.contact-aside p {
  color: var(--muted);
}

.feature-card a {
  color: var(--primary);
  font-weight: 900;
}

.positive {
  color: var(--positive) !important;
}

.negative {
  color: var(--negative) !important;
}

.markets-section {
  background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--alt) 70%, var(--bg)));
}

.markets-heading {
  margin-bottom: 24px;
}

.market-shell {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.quote-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-tabs button {
  min-height: 38px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--alt);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.quote-tabs button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #061018;
}

.market-search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.market-search input {
  width: min(260px, 44vw);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--alt);
  color: var(--ink);
  font: inherit;
}

.market-table-wrap {
  overflow-x: auto;
}

.market-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.market-table th,
.market-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  white-space: nowrap;
}

.market-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.market-table td {
  color: var(--ink);
  font-size: 0.95rem;
}

.market-table tbody tr:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.market-table tr[hidden] {
  display: none;
}

.pair-name {
  display: grid;
  grid-template-columns: 34px auto;
  column-gap: 10px;
  align-items: center;
}

.pair-link {
  color: inherit;
  text-decoration: none;
}

.pair-link:hover strong {
  color: var(--primary);
}

.pair-name small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
}

.asset-dot {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.asset-BTC { background: linear-gradient(135deg, #f7931a, #ffd166); }
.asset-ETH { background: linear-gradient(135deg, #627eea, #9aa8ff); }
.asset-SOL { background: linear-gradient(135deg, #14f195, #9945ff); }
.asset-BNB { background: linear-gradient(135deg, #f3ba2f, #f8d56b); }
.asset-XRP { background: linear-gradient(135deg, #59636d, #a7b0b8); }
.asset-DOGE { background: linear-gradient(135deg, #c2a633, #f1d36b); }
.asset-TRX { background: linear-gradient(135deg, #eb0029, #ff6b7f); }
.asset-LTC { background: linear-gradient(135deg, #345d9d, #b8becb); }
.asset-ADA { background: linear-gradient(135deg, #0033ad, #4f8cff); }
.asset-AVAX { background: linear-gradient(135deg, #e84142, #ff8f8f); }
.asset-DOT { background: linear-gradient(135deg, #e6007a, #ff8ac5); }
.asset-LINK { background: linear-gradient(135deg, #2a5ada, #7aa1ff); }
.asset-MATIC { background: linear-gradient(135deg, #8247e5, #b994ff); }
.asset-ATOM { background: linear-gradient(135deg, #2e3148, #8d93bd); }
.asset-UNI { background: linear-gradient(135deg, #ff007a, #ff9ed0); }
.asset-AAVE { background: linear-gradient(135deg, #2ebac6, #b6509e); }
.asset-BCH { background: linear-gradient(135deg, #0ac18e, #75e8c4); }
.asset-ETC { background: linear-gradient(135deg, #328332, #9ddc9d); }
.asset-NEAR { background: linear-gradient(135deg, #111827, #6ee7b7); }
.asset-FIL { background: linear-gradient(135deg, #0090ff, #8bd0ff); }
.asset-ARB { background: linear-gradient(135deg, #28a0f0, #213147); }
.asset-OP { background: linear-gradient(135deg, #ff0420, #ff8b99); }
.asset-SUI { background: linear-gradient(135deg, #4da2ff, #b2daff); }
.asset-TON { background: linear-gradient(135deg, #0098ea, #6ed0ff); }
.asset-XLM { background: linear-gradient(135deg, #111827, #c7d2fe); }
.asset-HBAR { background: linear-gradient(135deg, #101820, #8b949e); }
.asset-USDC { background: linear-gradient(135deg, #2775ca, #7db1ff); }

.trade-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-weight: 900;
}

.trade-section {
  background: var(--bg);
}

.trade-terminal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 310px;
  grid-template-areas:
    "markets chart order"
    "markets book recent";
  gap: 16px;
  align-items: stretch;
}

.trade-markets,
.trade-chart-panel,
.trade-order-panel,
.order-book-panel,
.recent-trades-panel {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.trade-markets {
  grid-area: markets;
}

.trade-chart-panel {
  grid-area: chart;
}

.trade-order-panel {
  grid-area: order;
}

.order-book-panel {
  grid-area: book;
}

.recent-trades-panel {
  grid-area: recent;
}

.trade-panel-head,
.trade-chart-head {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.trade-panel-head span,
.trade-chart-head span,
.trade-market-search {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trade-chart-head h2 {
  margin: 3px 0 0;
  font-size: 2rem;
  line-height: 1;
}

.trade-price-stack {
  display: grid;
  justify-items: end;
}

.trade-price-stack strong {
  color: var(--primary-dark);
  font-size: 1.55rem;
}

.trade-price-stack em {
  font-style: normal;
  font-weight: 950;
}

.trade-market-search {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.trade-market-list {
  max-height: 620px;
  overflow: auto;
}

.trade-market-link {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink);
  text-decoration: none;
}

.trade-market-link:hover,
.trade-market-link.is-active {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.trade-market-link span {
  display: grid;
  gap: 2px;
}

.trade-market-link small {
  color: var(--muted);
  font-size: 0.76rem;
}

.trade-market-link em {
  font-style: normal;
  font-weight: 950;
}

.trade-chart {
  min-height: 330px;
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 24px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 9%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--primary) 9%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--dark) 94%, var(--surface));
  background-size: 42px 42px, 42px 42px, auto;
}

.trade-chart span {
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 34%, transparent);
}

.trade-chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-weight: 800;
}

.trade-order-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.trade-order-form label {
  display: grid;
  gap: 7px;
  color: var(--primary-dark);
  font-weight: 900;
}

.trade-order-form input,
.trade-order-form select {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--alt);
  color: var(--ink);
  font: inherit;
}

.order-book-head,
.order-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.order-book-head {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.order-row {
  font-weight: 850;
}

.order-row.ask span:first-child,
.order-row.mid span:first-child {
  color: var(--negative);
}

.order-row.bid span:first-child {
  color: var(--positive);
}

.recent-trades-list {
  display: grid;
}

.recent-trades-list div {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.recent-trades-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.recent-trades-list em {
  font-style: normal;
  font-weight: 950;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.step-card,
.info-card {
  padding: 22px;
}

.step-card span,
.info-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: var(--alt);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 42px;
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
}

.image-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.asset-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--alt);
  color: var(--primary-dark);
  font-weight: 900;
}

.compliance-band {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-dark) 98%, #000), var(--dark));
  color: #fff;
}

.compliance-band .info-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.compliance-band .info-card p {
  color: rgba(255, 255, 255, 0.72);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.alt-section > .info-grid,
.section > .info-grid {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.page-hero {
  padding: 78px 0 70px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 12%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--primary) 10%, transparent) 1px, transparent 1px),
    linear-gradient(135deg, var(--dark), var(--primary-dark));
  background-size: 42px 42px, 42px 42px, auto;
  color: #fff;
}

.page-hero-inner {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.page-hero p {
  margin-inline: auto;
}

.cta-section {
  padding: 84px 0;
  background: var(--surface);
}

.cta-inner {
  padding: clamp(28px, 6vw, 58px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 94%, #000), var(--dark));
  color: #fff;
}

.auth-section {
  background: linear-gradient(180deg, var(--bg), var(--alt));
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: start;
}

.auth-card {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  gap: 16px;
}

.auth-card-primary {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 52%),
    var(--surface);
}

.auth-card-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.auth-card-head p,
.auth-footnotes span {
  color: var(--muted);
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.auth-card input {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--alt);
  color: var(--ink);
  font: inherit;
}

.auth-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-check {
  grid-template-columns: 18px 1fr !important;
  align-items: start;
  color: var(--muted) !important;
  font-weight: 700 !important;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.auth-muted-link {
  color: var(--primary);
  font-weight: 900;
}

.auth-footnotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.auth-footnotes article {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
}

.contact-form {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(100, 115, 136, 0.28);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-aside {
  overflow: hidden;
}

.contact-aside img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-aside div {
  padding: 26px;
}

.check-list {
  padding-left: 20px;
  color: var(--primary-dark);
  font-weight: 800;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.legal-index {
  position: sticky;
  top: 96px;
  padding: 22px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.legal-index strong {
  color: var(--primary-dark);
}

.legal-article {
  padding: clamp(24px, 5vw, 46px);
}

.legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(100, 115, 136, 0.16);
}

.legal-section h2 {
  margin-bottom: 12px;
}

.legal-msb-section {
  background: var(--surface);
}

.legal-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent 48%),
    var(--surface);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-soft);
}

.legal-contact.compact {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.legal-contact-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-contact h3 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.legal-contact p {
  color: var(--muted);
}

.legal-contact.compact p {
  color: rgba(255, 255, 255, 0.68);
}

.legal-contact dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legal-contact dl div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.legal-contact.compact dl div {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.legal-contact dt {
  color: var(--muted);
  font-weight: 900;
}

.legal-contact.compact dt {
  color: rgba(255, 255, 255, 0.56);
}

.legal-contact dd {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.legal-contact.compact dd {
  color: #fff;
}

.legal-contact a {
  color: var(--primary);
}

.thanks-section {
  min-height: 68vh;
  padding: 90px 0;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.thanks-card {
  max-width: 760px;
  padding: clamp(28px, 7vw, 64px);
  text-align: center;
}

.thanks-card h1 {
  color: var(--primary-dark);
}

.thanks-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.site-footer {
  padding: 54px 0 26px;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 0.7fr 0.9fr;
  gap: 30px;
}

.footer-legal-row {
  margin-top: 30px;
}

.footer-logo {
  filter: var(--footer-logo-filter);
  margin-bottom: 14px;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #fff;
}

.operator {
  color: #fff;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(100, 115, 136, 0.18);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.cookie-actions a,
.cookie-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
}

.cookie-actions a {
  background: var(--alt);
  color: var(--primary-dark);
}

.cookie-actions button {
  background: var(--dark);
  color: #fff;
}


html[data-theme="coin"] body {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="coin"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(10, 31, 47, 0.1);
  backdrop-filter: blur(18px);
}

html[data-theme="coin"] .nav-shell {
  min-height: 78px;
}

html[data-theme="coin"] .nav-link {
  border: 1px solid transparent;
  background: transparent;
  color: #435160;
}

html[data-theme="coin"] .nav-link:hover,
html[data-theme="coin"] .nav-link.is-active {
  background: #eaf2f2;
  border-color: rgba(0, 138, 122, 0.18);
  color: var(--primary-dark);
}

html[data-theme="coin"] .header-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

html[data-theme="coin"] .coin-hero {
  min-height: auto;
  display: grid;
  align-content: start;
  padding: 44px 0 30px;
  background-image:
    linear-gradient(90deg, rgba(6, 24, 33, 0.94), rgba(6, 24, 33, 0.72) 48%, rgba(6, 24, 33, 0.38)),
    linear-gradient(0deg, rgba(0, 138, 122, 0.18) 1px, transparent 1px),
    var(--coin-hero-image);
  background-position: center;
  background-size: cover, 44px 44px, cover;
  color: #fff;
}

html[data-theme="coin"] .coin-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.48fr);
  gap: 34px;
  align-items: end;
}

html[data-theme="coin"] .coin-hero h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: 4.7rem;
  line-height: 0.96;
}

html[data-theme="coin"] .coin-hero p {
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

html[data-theme="coin"] .coin-hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="coin"] .coin-desk-window {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

html[data-theme="coin"] .coin-window-head {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  background: #0a1f2f;
  color: #fff;
}

html[data-theme="coin"] .coin-window-head span,
html[data-theme="coin"] .coin-route-tile span,
html[data-theme="coin"] .coin-proof-kicker {
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html[data-theme="coin"] .coin-desk-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid rgba(10, 31, 47, 0.12);
}

html[data-theme="coin"] .coin-desk-metrics div {
  min-height: 92px;
  display: grid;
  gap: 3px;
  align-content: center;
  padding: 18px;
  border-right: 1px solid rgba(10, 31, 47, 0.1);
  border-bottom: 1px solid rgba(10, 31, 47, 0.1);
}

html[data-theme="coin"] .coin-desk-metrics strong {
  font-size: 1.6rem;
}

html[data-theme="coin"] .coin-desk-metrics span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

html[data-theme="coin"] .coin-desk-list {
  display: grid;
}

html[data-theme="coin"] .coin-desk-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(10, 31, 47, 0.09);
  color: inherit;
  text-decoration: none;
}

html[data-theme="coin"] .coin-desk-row:hover {
  background: rgba(0, 138, 122, 0.07);
}

html[data-theme="coin"] .coin-desk-row span {
  font-weight: 950;
}

html[data-theme="coin"] .coin-desk-row em {
  font-style: normal;
  font-weight: 900;
}

html[data-theme="coin"] .coin-hero-routes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="coin"] .coin-route-tile {
  min-height: 134px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  background: rgba(6, 24, 33, 0.72);
  color: #fff;
}

html[data-theme="coin"] .coin-route-tile:hover {
  background: rgba(0, 138, 122, 0.78);
}

html[data-theme="coin"] .coin-route-tile strong {
  font-size: 1.1rem;
}

html[data-theme="coin"] .coin-route-tile em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 0.92rem;
}

html[data-theme="coin"] .coin-ticker {
  background: #fff;
  border-bottom: 1px solid rgba(10, 31, 47, 0.1);
}

html[data-theme="coin"] .coin-section {
  padding: 90px 0;
}

html[data-theme="coin"] .coin-orbit {
  background: #fff;
}

html[data-theme="coin"] .coin-orbit-grid,
html[data-theme="coin"] .coin-vault-grid,
html[data-theme="coin"] .coin-operator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

html[data-theme="coin"] .coin-orbit h2,
html[data-theme="coin"] .coin-vault h2,
html[data-theme="coin"] .coin-operator h2 {
  max-width: 760px;
  font-size: 3.25rem;
  line-height: 1.02;
  margin-bottom: 18px;
}

html[data-theme="coin"] .coin-orbit p,
html[data-theme="coin"] .coin-operator p {
  color: var(--muted);
}

html[data-theme="coin"] .coin-process-window {
  display: grid;
  border-radius: 8px;
  border: 1px solid rgba(10, 31, 47, 0.12);
  background: #f7faf9;
  overflow: hidden;
}

html[data-theme="coin"] .coin-process-window article {
  min-height: 106px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid rgba(10, 31, 47, 0.1);
}

html[data-theme="coin"] .coin-process-window article > span {
  width: 14px;
  height: 14px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(242, 87, 63, 0.12);
}

html[data-theme="coin"] .coin-process-window h3 {
  margin-bottom: 5px;
}

html[data-theme="coin"] .coin-process-window p {
  margin: 0;
}

html[data-theme="coin"] .markets-section {
  background: #eef4f3;
}

html[data-theme="coin"] .market-shell {
  background: #fff;
  border-color: rgba(10, 31, 47, 0.12);
  box-shadow: 0 20px 62px rgba(10, 31, 47, 0.08);
}

html[data-theme="coin"] .market-table tbody tr:hover {
  background: rgba(0, 138, 122, 0.06);
}

html[data-theme="coin"] .trade-link {
  color: var(--secondary);
}

html[data-theme="coin"] .coin-vault {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #0a1f2f;
  background-size: 46px 46px, auto;
  color: #fff;
}

html[data-theme="coin"] .coin-device-shot {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="coin"] .coin-device-shot img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

html[data-theme="coin"] .coin-vault p {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="coin"] .coin-vault .eyebrow {
  color: #7de4d8;
}

html[data-theme="coin"] .coin-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

html[data-theme="coin"] .coin-check-grid span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

html[data-theme="coin"] .coin-operator {
  background: #fff;
}

html[data-theme="coin"] .coin-operator-grid {
  align-items: start;
}

html[data-theme="coin"] .coin-operator .legal-contact {
  margin: 0;
  background: #f7faf9;
  border-color: rgba(10, 31, 47, 0.12);
}

html[data-theme="coin"] .page-hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(135deg, #0a1f2f, #008a7a);
  background-size: 46px 46px, auto;
}

html[data-theme="coin"] .feature-card,
html[data-theme="coin"] .info-card,
html[data-theme="coin"] .step-card,
html[data-theme="coin"] .contact-form,
html[data-theme="coin"] .contact-aside,
html[data-theme="coin"] .legal-index,
html[data-theme="coin"] .legal-article,
html[data-theme="coin"] .thanks-card,
html[data-theme="coin"] .auth-card,
html[data-theme="coin"] .auth-footnotes article {
  border-color: rgba(10, 31, 47, 0.12);
  box-shadow: 0 16px 44px rgba(10, 31, 47, 0.07);
}

html[data-theme="coin"] .site-footer {
  background: #061821;
}

@media (max-width: 980px) {
  html[data-theme="coin"] .coin-hero-grid,
  html[data-theme="coin"] .coin-hero-routes,
  html[data-theme="coin"] .coin-orbit-grid,
  html[data-theme="coin"] .coin-vault-grid,
  html[data-theme="coin"] .coin-operator-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme="coin"] .coin-hero {
    min-height: auto;
    padding-top: 38px;
  }

  html[data-theme="coin"] .coin-hero h1 {
    font-size: 3.2rem;
  }

  html[data-theme="coin"] .coin-desk-window {
    max-width: 560px;
  }

  html[data-theme="coin"] .coin-orbit h2,
  html[data-theme="coin"] .coin-vault h2,
  html[data-theme="coin"] .coin-operator h2 {
    font-size: 2.45rem;
  }
}

@media (max-width: 640px) {
  html[data-theme="coin"] .coin-hero h1 {
    font-size: 2.45rem;
  }

  html[data-theme="coin"] .coin-section {
    padding: 58px 0;
  }

  html[data-theme="coin"] .coin-desk-metrics,
  html[data-theme="coin"] .coin-check-grid,
  html[data-theme="coin"] .coin-process-window article {
    grid-template-columns: 1fr;
  }

  html[data-theme="coin"] .coin-route-tile {
    min-height: 108px;
  }
}


@media (max-width: 980px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-grid,
  .process-grid,
  .split-grid,
  .split-grid.reverse,
  .auth-grid,
  .contact-grid,
  .legal-contact,
  .legal-contact.compact,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .feature-grid,
  .info-grid,
  .steps,
  .auth-footnotes,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .market-search {
    align-items: stretch;
    flex-direction: column;
  }

  .market-search input {
    width: 100%;
  }

  .trade-terminal {
    grid-template-columns: 1fr;
    grid-template-areas:
      "markets"
      "chart"
      "order"
      "book"
      "recent";
  }

  .trade-market-list {
    max-height: 360px;
  }

  .legal-index {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero-section,
  .section,
  .page-hero,
  .cta-section {
    padding-block: 54px;
  }

  .hero-copy h1,
  .page-hero h1,
  .thanks-card h1 {
    font-size: clamp(2.25rem, 13vw, 3.2rem);
  }

  .hero-stats,
  .feature-grid,
  .info-grid,
  .steps,
  .auth-row,
  .auth-footnotes,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .market-panel {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .preview-pairs div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .trade-chart-head,
  .trade-chart-footer,
  .trade-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .trade-price-stack {
    justify-items: start;
  }

  .trade-chart {
    min-height: 250px;
    gap: 7px;
    padding: 18px;
  }

  .recent-trades-list div,
  .order-book-head,
  .order-row {
    grid-template-columns: 1fr;
  }

  .legal-contact dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ticker-track {
    overflow-x: auto;
  }

  .button-row,
  .cookie-banner,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .cookie-actions a,
  .cookie-actions button {
    width: 100%;
  }

  .cookie-actions {
    width: 100%;
  }
}
