:root {
  --star-black: #071014;
  --deep-void: #0b1418;
  --surface: #101b20;
  --surface-2: #15242a;
  --platinum: #e8f1f4;
  --muted: #8fa2a8;
  --cyan: #28d9ff;
  --aurora: #5dffb2;
  --amber: #ffb64d;
  --danger: #ff6575;
  --line: rgba(232, 241, 244, 0.12);
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--star-black);
  color: var(--platinum);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px 44px;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(7, 16, 20, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 20px;
  font-weight: 820;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(93, 255, 178, 0.38);
  border-radius: 8px;
  background: rgba(17, 31, 36, 0.82);
  box-shadow: inset 0 0 22px rgba(40, 217, 255, 0.16);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--aurora);
  stroke-width: 2.1;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: rgba(232, 241, 244, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.ghost-link {
  transition: color 160ms ease;
}

.nav a:hover,
.ghost-link:hover {
  color: var(--platinum);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 760;
}

.button,
.signup-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(93, 255, 178, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--aurora), var(--cyan));
  color: #061015;
  font-weight: 820;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(40, 217, 255, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.signup-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(93, 255, 178, 0.22);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 31, 36, 0.82);
  color: var(--platinum);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.exchange-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 42px;
  align-items: center;
  padding: 122px 56px 74px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  z-index: -3;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 16, 20, 0.96) 0%, rgba(7, 16, 20, 0.82) 48%, rgba(7, 16, 20, 0.64) 100%),
    linear-gradient(0deg, rgba(7, 16, 20, 1), rgba(7, 16, 20, 0) 36%);
}

.hero-copy-block {
  max-width: 720px;
}

.market-pill {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 182, 77, 0.32);
  border-radius: 8px;
  background: rgba(255, 182, 77, 0.1);
  color: var(--amber);
  font-size: 13px;
  font-weight: 820;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 82px;
  line-height: 0.96;
  font-weight: 880;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: rgba(232, 241, 244, 0.76);
  font-size: 22px;
  line-height: 1.5;
}

.signup-box {
  display: flex;
  width: min(620px, 100%);
  margin-top: 32px;
  padding: 8px;
  border: 1px solid rgba(232, 241, 244, 0.14);
  border-radius: 8px;
  background: rgba(232, 241, 244, 0.08);
  backdrop-filter: blur(14px);
}

.signup-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--platinum);
  padding: 0 16px;
  font-size: 16px;
}

.signup-box input::placeholder {
  color: rgba(232, 241, 244, 0.48);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.quick-actions a,
.store-buttons a,
.market-tabs button,
.panel-tabs button,
.trade-ticket button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 241, 244, 0.07);
  color: rgba(232, 241, 244, 0.82);
  cursor: pointer;
  font-weight: 760;
}

.quick-actions a {
  padding: 11px 14px;
  font-size: 13px;
}

.hero-trade-panel {
  align-self: center;
  padding: 20px;
  border: 1px solid rgba(232, 241, 244, 0.14);
  border-radius: 8px;
  background: rgba(12, 23, 27, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-tabs,
.trade-ticket {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.panel-tabs button,
.trade-ticket button {
  min-height: 38px;
}

.panel-tabs .active,
.trade-ticket .buy,
.market-tabs .active {
  background: rgba(93, 255, 178, 0.16);
  border-color: rgba(93, 255, 178, 0.42);
  color: var(--aurora);
}

.pair-row,
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.pair-row {
  margin-top: 24px;
}

.pair-row span,
.order-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.pair-row strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
}

.pair-row em {
  color: var(--aurora);
  font-style: normal;
  font-weight: 840;
}

.mini-chart {
  height: 240px;
  margin: 18px 0;
}

.mini-chart svg {
  width: 100%;
  height: 100%;
}

.chart-grid {
  fill: none;
  stroke: rgba(232, 241, 244, 0.08);
  stroke-width: 1;
}

.chart-fill {
  fill: url(#heroChartFill);
}

.chart-line {
  fill: none;
  stroke: var(--aurora);
  stroke-width: 4;
  stroke-linecap: round;
}

.trade-ticket {
  grid-template-columns: 1fr 1fr;
}

.order-row {
  margin-top: 12px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--aurora);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2,
.quick-buy h2,
.app-copy h2,
.web3-section h2,
.institutional-strip h2 {
  margin-bottom: 16px;
  font-size: 46px;
  line-height: 1.06;
  font-weight: 860;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.quick-buy p,
.app-copy p,
.web3-section p {
  color: rgba(232, 241, 244, 0.7);
  line-height: 1.62;
}

.market-board {
  padding: 44px 56px 66px;
  background: #081115;
}

.market-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.market-tabs button {
  min-height: 38px;
  padding: 0 16px;
}

.market-table {
  display: none;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(17, 31, 36, 0.72);
}

.market-table.active {
  display: block;
}

.market-table article {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.market-table article:last-child {
  border-bottom: 0;
}

.market-table span {
  font-weight: 850;
}

.market-table strong {
  font-size: 18px;
}

.market-table em {
  font-style: normal;
  font-weight: 820;
}

.up {
  color: var(--aurora);
}

.down {
  color: var(--danger);
}

.market-table a,
.product-card a {
  color: var(--amber);
  font-weight: 820;
}

.quick-buy {
  padding: 0 56px 76px;
  background: #081115;
}

.buy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(255, 182, 77, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 182, 77, 0.13), rgba(40, 217, 255, 0.08)),
    rgba(17, 31, 36, 0.82);
}

.converter {
  display: grid;
  gap: 12px;
}

.converter label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.5);
}

.converter span {
  color: var(--muted);
}

.section {
  padding: 76px 56px;
}

.product-section {
  background: var(--star-black);
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.product-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 31, 36, 0.76);
}

.product-card.primary-card {
  grid-row: span 2;
  min-height: 478px;
  background:
    linear-gradient(180deg, rgba(93, 255, 178, 0.16), rgba(40, 217, 255, 0.04)),
    rgba(17, 31, 36, 0.8);
}

.product-card span,
.ecosystem-grid span,
.web3-orbit span {
  color: var(--aurora);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 18px 0 12px;
  font-size: 26px;
  line-height: 1.12;
}

.product-card p,
.ecosystem-grid p {
  color: rgba(232, 241, 244, 0.66);
  line-height: 1.58;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 76px 56px;
  background: #081115;
}

.phone-stack {
  position: relative;
  min-height: 520px;
}

.phone {
  position: absolute;
  width: 240px;
  height: 430px;
  padding: 28px 20px;
  border: 8px solid #1c2d33;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(40, 217, 255, 0.12), rgba(93, 255, 178, 0.06)),
    #071014;
  box-shadow: var(--shadow);
}

.phone-left {
  left: 15%;
  top: 44px;
  transform: rotate(-8deg);
}

.phone-right {
  left: 42%;
  top: 10px;
  transform: rotate(7deg);
}

.phone span,
.phone i {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
}

.phone strong {
  display: block;
  margin-top: 22px;
  font-size: 30px;
}

.phone i {
  margin-top: 8px;
  color: var(--aurora);
}

.phone-bars {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 150px;
  margin-top: 70px;
}

.phone-bars b {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--aurora), rgba(40, 217, 255, 0.34));
}

.phone-line {
  height: 150px;
  margin-top: 80px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 30%, rgba(93, 255, 178, 0.16) 31%, rgba(93, 255, 178, 0.16) 54%, transparent 55%),
    linear-gradient(160deg, rgba(40, 217, 255, 0.3), rgba(93, 255, 178, 0.04));
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.store-buttons a {
  padding: 13px 18px;
}

.ecosystem {
  background: var(--star-black);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.ecosystem-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 31, 36, 0.76);
}

.ecosystem-grid strong {
  display: block;
  margin: 18px 0 12px;
  font-size: 30px;
}

.web3-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
  padding: 76px 56px;
  background: #081115;
}

.web3-orbit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.web3-orbit span {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px solid rgba(40, 217, 255, 0.22);
  border-radius: 8px;
  background: rgba(40, 217, 255, 0.08);
}

.institutional-strip {
  padding: 56px;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(93, 255, 178, 0.12), rgba(40, 217, 255, 0.08) 52%, rgba(255, 182, 77, 0.12)),
    #0b1519;
}

.institutional-strip h2 {
  max-width: 980px;
}

.institutional-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.institutional-strip span {
  padding: 11px 14px;
  border: 1px solid rgba(232, 241, 244, 0.16);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.42);
  color: rgba(232, 241, 244, 0.76);
  font-weight: 780;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: 46px;
  padding: 50px 56px 28px;
  color: rgba(232, 241, 244, 0.62);
  background: #050b0e;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-brand p {
  max-width: 330px;
  margin-top: 18px;
  color: rgba(232, 241, 244, 0.58);
  line-height: 1.65;
}

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

.footer-links h2 {
  margin: 0 0 16px;
  color: var(--platinum);
  font-size: 14px;
  font-weight: 840;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-top: 11px;
  color: rgba(232, 241, 244, 0.58);
  line-height: 1.45;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--aurora);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.copyright {
  text-align: right;
}

.content-page {
  min-height: 100vh;
  padding: 118px 56px 76px;
  background:
    linear-gradient(180deg, rgba(40, 217, 255, 0.08), rgba(7, 16, 20, 0) 320px),
    var(--star-black);
}

.content-hero {
  max-width: 960px;
  margin: 0 auto 38px;
}

.content-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: 58px;
  line-height: 1.02;
}

.content-hero p {
  max-width: 760px;
  color: rgba(232, 241, 244, 0.72);
  font-size: 18px;
  line-height: 1.65;
}

.updated {
  display: inline-flex;
  margin-top: 4px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: rgba(232, 241, 244, 0.62);
  font-size: 13px;
  font-weight: 760;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
}

.content-sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 31, 36, 0.72);
}

.content-sidebar a {
  display: block;
  padding: 11px 10px;
  border-radius: 8px;
  color: rgba(232, 241, 244, 0.64);
  font-size: 13px;
  font-weight: 760;
  transition: background 160ms ease, color 160ms ease;
}

.content-sidebar a:hover {
  background: rgba(93, 255, 178, 0.1);
  color: var(--aurora);
}

.content-stack {
  display: grid;
  gap: 18px;
}

.policy-section {
  scroll-margin-top: 94px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 31, 36, 0.74);
}

.policy-section h2 {
  margin-bottom: 18px;
  font-size: 30px;
  line-height: 1.12;
}

.policy-section h3 {
  margin: 24px 0 10px;
  color: var(--platinum);
  font-size: 18px;
}

.policy-section p,
.policy-section li {
  color: rgba(232, 241, 244, 0.68);
  line-height: 1.72;
}

.policy-section p:last-child,
.policy-section ul:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  padding-left: 20px;
}

.fee-table {
  display: grid;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fee-table div {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.fee-table div:last-child {
  border-bottom: 0;
}

.fee-table span {
  padding: 13px 14px;
  color: rgba(232, 241, 244, 0.72);
}

.fee-table div:first-child span {
  color: var(--platinum);
  font-weight: 820;
  background: rgba(93, 255, 178, 0.08);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 14px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav,
  .header-actions {
    position: fixed;
    left: 16px;
    right: 16px;
    display: none;
    background: rgba(7, 16, 20, 0.97);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .nav {
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 8px 8px 0 0;
    border-bottom: 0;
  }

  .nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .header-actions {
    top: 392px;
    justify-content: space-between;
    padding: 16px;
    border-radius: 0 0 8px 8px;
  }

  .site-header.menu-active .nav,
  .site-header.menu-active .header-actions {
    display: flex;
  }

  .exchange-hero,
  .buy-card,
  .app-section,
  .web3-section {
    grid-template-columns: 1fr;
  }

  .hero-copy-block {
    max-width: 820px;
  }

  .hero-trade-panel {
    width: min(620px, 100%);
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-card.primary-card {
    grid-row: auto;
    min-height: 230px;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .exchange-hero {
    min-height: auto;
    padding: 104px 20px 48px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .signup-box {
    flex-direction: column;
  }

  .signup-box input {
    min-height: 48px;
  }

  .pair-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pair-row strong {
    font-size: 28px;
  }

  .market-board,
  .quick-buy,
  .section,
  .app-section,
  .web3-section,
  .institutional-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h2,
  .quick-buy h2,
  .app-copy h2,
  .web3-section h2,
  .institutional-strip h2 {
    font-size: 34px;
  }

  .market-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .market-tabs button {
    min-width: max-content;
  }

  .market-table article {
    grid-template-columns: 0.8fr 1.1fr 0.7fr;
    padding: 16px;
  }

  .market-table a {
    display: none;
  }

  .buy-card {
    padding: 22px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    min-height: 430px;
  }

  .phone {
    width: 200px;
    height: 360px;
  }

  .phone-left {
    left: 0;
  }

  .phone-right {
    left: 34%;
  }

  .web3-orbit {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 38px 20px 28px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .content-page {
    padding: 104px 20px 56px;
  }

  .content-hero h1 {
    font-size: 42px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

  .copyright {
    text-align: left;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 44px;
  }

  .phone-right {
    left: 28%;
  }

  .web3-orbit {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
