:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: rgba(12, 18, 24, 0.76);
  --panel-strong: rgba(18, 25, 33, 0.9);
  --text: #f7fbff;
  --muted: #8b9aa8;
  --cyan: #80f7ff;
  --blue: #2294ff;
  --gold: #d8a75d;
  --green: #28e0a4;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 86% 12%, rgba(216, 167, 93, 0.16), transparent 28rem),
    radial-gradient(circle at 12% 30%, rgba(128, 247, 255, 0.12), transparent 26rem),
    #050607;
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.exchange-page {
  overflow: hidden;
}

.bottom-menu {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 78px;
  border-top: 1px solid rgba(216, 167, 93, 0.2);
  background:
    linear-gradient(180deg, rgba(22, 24, 25, 0.6), rgba(5, 6, 7, 0.76)),
    rgba(5, 6, 7, 0.66);
  box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.bottom-menu a {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 9px 2px;
  color: #8997a5;
  font-size: 12px;
  font-weight: 900;
}

.bottom-menu img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(1) saturate(0.2) brightness(1.45);
  opacity: 0.78;
}

.bottom-menu .active {
  color: var(--gold);
}

.bottom-menu .active img {
  filter: sepia(1) saturate(1.4) hue-rotate(350deg) brightness(1.25) drop-shadow(0 0 12px rgba(216, 167, 93, 0.42));
  opacity: 1;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 6, 7, 0.34);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
}

.site-nav nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #b6c4cf;
  font-weight: 800;
}

.nav-action,
.primary,
.ghost,
.trade-console button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 900;
}

.nav-action,
.primary,
.trade-console button {
  border: 0;
  background: linear-gradient(135deg, var(--gold), #ffe1a6);
  color: #101010;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: 100vh;
  padding: 118px clamp(16px, 5vw, 72px) 72px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 27%, rgba(128, 247, 255, 0.12) 29%, transparent 32% 62%, rgba(216, 167, 93, 0.12) 64%, transparent 67%),
    radial-gradient(circle at 72% 34%, rgba(128, 247, 255, 0.2), transparent 18rem);
  mix-blend-mode: screen;
  animation: heroScan 6.5s ease-in-out infinite;
}

.shuwon-style-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  background: #050607;
}

.bg-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.34), rgba(5, 6, 7, 0.02) 52%, rgba(5, 6, 7, 0.22)),
    linear-gradient(180deg, rgba(5, 6, 7, 0), #050607 96%);
  filter: saturate(1.08) contrast(1.04);
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 70% 42%, rgba(216, 167, 93, 0.14), transparent 20rem);
  mix-blend-mode: screen;
  opacity: 0.3;
}

.hero-copy {
  max-width: 760px;
  padding-top: clamp(120px, 22vh, 240px);
}

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

.hero h1,
.portfolio h2,
.markets h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.02;
  opacity: 0.92;
  text-shadow: 0 14px 46px rgba(0, 0, 0, 0.58);
}

.hero-copy > span,
.portfolio > div:first-child > span {
  display: block;
  max-width: 560px;
  margin-top: 16px;
  color: #c4d1dc;
  font-size: clamp(14px, 1.9vw, 18px);
  line-height: 1.85;
  opacity: 0.76;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.fx-ripple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.fx-ripple::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  opacity: 0;
  background:
    linear-gradient(120deg, transparent, rgba(128, 247, 255, 0.22), transparent),
    radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(128, 247, 255, 0.42), transparent 34%);
  transform: translateX(-30%) scale(0.88);
  transition:
    opacity 0.28s ease,
    transform 0.45s ease;
}

.fx-ripple:hover::before,
.fx-ripple:focus-visible::before {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.fx-ripple .ripple-wave {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(128, 247, 255, 0.36) 38%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleWave 0.72s ease-out forwards;
}

.primary,
.ghost {
  min-width: 150px;
  min-height: 50px;
}

.hero-actions .primary {
  background: rgba(216, 167, 93, 0.82);
  color: #111;
}

.hero-actions .ghost {
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.84);
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.68);
  backdrop-filter: blur(18px);
}

.hero-metrics div {
  padding: 16px;
}

.hero-metrics div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metrics strong {
  display: block;
  font-size: clamp(24px, 4vw, 36px);
}

.hero-metrics small {
  color: var(--muted);
  font-weight: 800;
}

.trade-console,
.asset-panel,
.quick-row a,
.market-list article {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(12, 18, 24, 0.68);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.trade-console {
  margin-bottom: clamp(0px, 4vh, 42px);
  padding: 22px;
}

.console-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.console-head span,
.trade-console label span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.console-head strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(30px, 5vw, 44px);
}

.console-head em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  height: 126px;
  margin: 26px 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.mini-chart span {
  height: var(--h);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--gold), var(--cyan));
}

.trade-console form {
  display: grid;
  gap: 12px;
}

.trade-console label {
  display: grid;
  gap: 8px;
}

.trade-console input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0 14px;
  outline: 0;
}

.trade-console button {
  min-height: 54px;
  cursor: pointer;
}

.quick-row,
.markets,
.portfolio {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 34px 0;
}

.quick-row a {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
}

.quick-row img {
  width: 38px;
  height: 38px;
}

.quick-row strong {
  font-size: 20px;
}

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

.markets,
.portfolio {
  padding: 34px 0 64px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.markets h2,
.portfolio h2 {
  font-size: clamp(32px, 6vw, 62px);
}

.tabs {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
}

.tabs .active {
  background: #f9fbff;
  color: #0b0d11;
  font-weight: 900;
}

.market-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.market-list article {
  padding: 18px;
}

.market-list span {
  color: #dce7ef;
  font-weight: 900;
}

.market-list strong {
  display: block;
  margin-top: 12px;
  font-size: 26px;
}

.market-list em {
  display: block;
  margin-top: 20px;
  color: var(--green);
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
}

.portfolio {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: center;
}

.asset-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.asset-panel small {
  color: var(--muted);
  font-weight: 900;
}

.asset-panel strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(34px, 6vw, 52px);
}

.rings {
  position: relative;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 42%, var(--cyan) 42% 73%, var(--green) 73% 91%, #4d5b6a 91%);
}

.rings::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #101820;
}

.asset-panel ul {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asset-panel li {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  color: var(--muted);
}

.asset-panel b {
  display: block;
  color: #fff;
  font-size: 22px;
}

@media (max-width: 920px) {
  .site-nav nav,
  .nav-action {
    display: none;
  }

  .hero,
  .portfolio {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    min-height: 112vh;
  }

  .hero-copy {
    padding-top: 170px;
  }

  .trade-console {
    max-width: 520px;
    margin-top: 18px;
  }

  .quick-row,
  .market-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .hero {
    padding-right: 220px;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 78px;
  }

  .site-nav {
    min-height: 66px;
  }

  .hero {
    min-height: 1120px;
    padding-top: 76px;
  }

  .hero-copy {
    padding-top: 230px;
  }

  .hero h1 {
    max-width: 300px;
    font-size: 34px;
  }

  .hero-copy > span {
    max-width: 300px;
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    width: calc(100% - 62px);
  }

  .hero-metrics div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .hero-actions a {
    width: 100%;
  }

  .quick-row,
  .market-list,
  .asset-panel ul {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .asset-panel {
    grid-template-columns: 1fr;
  }

  .template-dock {
    right: 6px;
    top: 63%;
    width: 52px;
    transform: translateY(-50%);
  }

  .template-dock a {
    justify-items: center;
    padding: 10px 6px;
  }

  .template-dock strong {
    display: none;
  }
}

@media (min-width: 760px) {
  .bottom-menu {
    right: 50%;
    left: 50%;
    width: min(560px, calc(100% - 36px));
    transform: translateX(-50%);
    bottom: 18px;
    overflow: hidden;
    border: 1px solid rgba(216, 167, 93, 0.18);
    border-radius: 12px;
  }
}

@keyframes rippleWave {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes heroScan {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(-2%, 0, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(2%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .fx-ripple .ripple-wave {
    animation: none;
  }
}
