﻿:root {
  --bg: #070b14;
  --panel: #101a2b;
  --panel-2: #111b2e;
  --panel-3: #141e32;
  --line: #24314a;
  --line-2: #3a4d72;
  --text: #edf2f9;
  --white: #f4f8ff;
  --muted: #98aedb;
  --muted-2: #859ac9;
  --blue: #b7cbff;
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --green: #34d399;
  --shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.exchange-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 44px;
}
.exchange-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #1f2a40;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0b0f1a;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(251, 191, 36, .22);
}
.brand strong {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 25px;
  letter-spacing: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-actions a,
.nav-actions button {
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  text-decoration: none;
}
.nav-actions [hidden] { display: none; }
.nav-actions a {
  border: 1px solid #3d5277;
  color: #c6d6ff;
  background: transparent;
}
.nav-actions button,
.primary-action {
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0b0f1a;
  box-shadow: 0 4px 14px rgba(251, 191, 36, .25);
}

.hero-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 64px 0 48px;
}
.hero-copy { flex: 1 1 440px; }
.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c2842;
  border: 1px solid var(--line-2);
  color: var(--gold);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.network-pill i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}
.hero-band h1 {
  margin: 0;
  max-width: 720px;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
  color: var(--white);
}
.hero-band h1 span,
.section-kicker,
.metric-card strong,
.level-row .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-band p {
  color: var(--muted);
  font-size: 18px;
  max-width: 610px;
  margin: 24px 0 30px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid #3d5277;
  color: #c6d6ff;
  background: transparent;
}
.hero-card {
  flex: 1 1 390px;
  background: var(--panel-2);
  border: 1px solid #293b58;
  border-radius: 40px;
  padding: 32px 29px;
  box-shadow: var(--shadow);
}
.exchange-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.matrix-node {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: #1c2942;
  border: 1px solid #31476b;
  border-radius: 16px;
  color: var(--blue);
  font-weight: 800;
  text-align: center;
}
.matrix-node span { font-size: 15px; }
.matrix-node small { opacity: .78; font-size: 11px; }
.matrix-node.highlight {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0f1a;
  box-shadow: 0 0 20px rgba(251, 191, 36, .2);
}
.matrix-label {
  margin-top: 20px;
  color: #8aa0d2;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 6px 0 42px;
}
.metric-card,
.swap-card,
.info-card,
.levels-preview {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.metric-card {
  padding: 26px 22px;
  transition: background .2s, border-color .2s;
}
.metric-card:hover,
.info-card:hover { background: #131e32; border-color: #3f5a84; }
.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #1f2d49;
  border: 1px solid #3a527a;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 14px;
}
.metric-card span:not(.metric-icon) {
  display: block;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 7px;
}
.metric-card strong { display: block; font-size: 22px; margin-bottom: 5px; overflow-wrap: anywhere; }
.metric-card small { color: var(--muted-2); font-size: 13px; }

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(360px, .52fr) minmax(0, .48fr);
  gap: 22px;
  align-items: start;
  padding: 28px 0;
}
.swap-card,
.info-card { padding: 32px 28px; }
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-kicker { font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.section-title h2,
.info-card h3 {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 34px;
  line-height: 1.12;
}
.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  background: #0b1220;
  border: 1px solid #26344e;
  border-radius: 999px;
  min-width: 235px;
}
.mode-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b0c4ec;
  font-weight: 900;
}
.mode-tabs button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0b0f1a;
}
.amount-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  border: 1px solid #2a3d5e;
  border-radius: 20px;
  padding: 17px 18px;
  background: var(--panel-3);
}
.amount-box span {
  grid-column: 1 / -1;
  color: #b0c4ec;
  font-size: 13px;
  font-weight: 800;
}
.amount-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}
.amount-box input::placeholder { color: #4f6a94; }
.amount-box strong {
  align-self: center;
  border-radius: 999px;
  background: #1f2d49;
  border: 1px solid #3a527a;
  color: var(--gold);
  padding: 10px 13px;
  font-size: 14px;
}
.swap-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 12px auto;
  border-radius: 999px;
  background: #1f2d49;
  border: 1px solid #3a527a;
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}
.quote-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.quote-strip div {
  border: 1px solid #26344e;
  border-radius: 18px;
  padding: 14px;
  background: #0f182a;
}
.quote-strip span { color: #6b83b5; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.quote-strip strong { display: block; color: #dbe7ff; margin-top: 6px; }
.primary-action {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}
.primary-action:disabled { opacity: .55; cursor: not-allowed; }
.status-line { min-height: 24px; color: var(--muted); line-height: 1.55; font-weight: 700; }
.info-column { display: grid; gap: 22px; }
.info-card span { color: var(--gold); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.info-card p { color: var(--muted-2); line-height: 1.7; margin: 12px 0 0; }
.contracts { display: grid; gap: 10px; }
.contracts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  border: 1px solid #26344e;
  border-radius: 18px;
  padding: 14px;
  color: #dbe7ff;
  background: #0f182a;
}
.contracts small { color: var(--gold); font-weight: 900; }

@media (max-width: 1040px) {
  .hero-band,
  .workspace-grid { display: grid; grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .exchange-shell { width: min(100% - 24px, 1280px); }
  .exchange-nav,
  .section-title { align-items: stretch; flex-direction: column; }
  .hero-band { padding: 40px 0 32px; }
  .hero-band h1 { font-size: 38px; }
  .hero-band p { font-size: 16px; }
  .exchange-matrix,
  .metrics-grid,
  .quote-strip { grid-template-columns: 1fr; }
  .hero-card,
  .swap-card,
  .info-card { padding: 28px 22px; border-radius: 28px; }
  .section-title h2,
  .info-card h3 { font-size: 28px; }
}
