:root {
  color-scheme: dark;
  --ink: #f5f8ff;
  --muted: #9aa9c5;
  --dim: #6d7f9e;
  --navy-950: #061326;
  --navy-900: #091b35;
  --navy-800: #0d2749;
  --line: rgba(168, 194, 232, 0.15);
  --accent: #42e7d0;
  --accent-dark: #1ab9a6;
  --warm: #ffe19a;
  --font-sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Manrope", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-950);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(33, 112, 148, 0.24), transparent 30rem),
    radial-gradient(circle at 8% 78%, rgba(20, 65, 121, 0.28), transparent 28rem),
    var(--navy-950);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(1220px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 44px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 2%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(125, 169, 220, 0.14) 22%, transparent 80%);
  content: "";
}

.hero-glow {
  position: absolute;
  z-index: -2;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.hero-glow-one {
  top: 9%;
  right: -22%;
  background: radial-gradient(circle, rgba(40, 224, 197, 0.11), transparent 68%);
}

.hero-glow-two {
  bottom: -16%;
  left: -20%;
  background: radial-gradient(circle, rgba(62, 135, 244, 0.13), transparent 68%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(66, 231, 208, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(66, 231, 208, 0.2);
}

.brand-mark-inner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(28deg);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.topbar-note {
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(370px, 0.88fr);
  align-items: center;
  gap: 52px;
  min-height: 454px;
  padding: 78px 22px 28px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

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

h1 {
  max-width: 560px;
  margin: 20px 0 22px;
  font-family: var(--font-sans);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(105deg, #f4f8ff 3%, #8ddfd6 72%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 490px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.steps {
  display: flex;
  align-items: center;
  max-width: 460px;
}

.step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--dim);
}

.step.is-active {
  color: var(--ink);
}

.step-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
}

.step.is-active .step-index {
  color: var(--accent);
  box-shadow: 0 0 18px rgba(66, 231, 208, 0.14);
}

.step-label {
  font-size: 12px;
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 1px;
  margin: 0 15px;
  background: rgba(154, 169, 197, 0.2);
}

.visual-wrap {
  position: relative;
  display: grid;
  min-height: 384px;
  place-items: center;
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(113, 218, 211, 0.13);
  border-radius: 50%;
  transform: rotate(-23deg);
}

.visual-orbit-one {
  width: 405px;
  height: 180px;
}

.visual-orbit-two {
  width: 320px;
  height: 260px;
  border-color: rgba(139, 166, 215, 0.13);
  transform: rotate(52deg);
}

.energy-visual {
  position: relative;
  display: grid;
  width: 310px;
  height: 310px;
  place-items: center;
}

.energy-visual-ring {
  position: absolute;
  border: 1px solid rgba(70, 231, 211, 0.34);
  border-radius: 50%;
  transform: rotate(20deg);
}

.energy-visual-ring-back {
  width: 280px;
  height: 142px;
  border-color: rgba(110, 178, 237, 0.3);
  transform: rotate(-37deg);
}

.energy-visual-ring-front {
  width: 270px;
  height: 118px;
  transform: rotate(48deg);
}

.trx-coin {
  position: relative;
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  border: 1px solid rgba(255, 241, 184, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 26%, rgba(255, 250, 211, 0.9), transparent 10%),
    radial-gradient(circle at 38% 32%, #ffd96f, #d27b37 71%, #63392b 100%);
  box-shadow:
    inset -18px -19px 38px rgba(104, 41, 24, 0.46),
    inset 14px 12px 30px rgba(255, 246, 181, 0.37),
    0 0 0 12px rgba(255, 191, 99, 0.07),
    0 0 75px rgba(245, 155, 61, 0.25);
  transform: rotate(-12deg);
}

.trx-coin::before,
.trx-coin::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.trx-coin::before {
  inset: 10px;
  border: 1px solid rgba(255, 247, 196, 0.35);
}

.trx-coin::after {
  right: 18px;
  bottom: 22px;
  width: 28px;
  height: 11px;
  background: rgba(86, 34, 31, 0.25);
  filter: blur(6px);
}

.trx-coin-glow {
  position: absolute;
  top: 18px;
  left: 28px;
  width: 32px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 234, 0.58);
  filter: blur(6px);
}

.trx-symbol {
  position: relative;
  z-index: 1;
  color: #fff5c3;
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 2px 3px 0 rgba(132, 59, 26, 0.4);
}

.trx-coin-caption {
  position: absolute;
  bottom: 28px;
  z-index: 1;
  color: rgba(255, 243, 191, 0.82);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.31em;
  text-indent: 0.31em;
}

.visual-orbit::before,
.visual-orbit::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 3px rgba(66, 231, 208, 0.65);
  content: "";
}

.visual-orbit::before {
  top: 12%;
  left: 16%;
}

.visual-orbit::after {
  right: 11%;
  bottom: 15%;
  background: var(--warm);
  box-shadow: 0 0 14px 3px rgba(255, 225, 154, 0.55);
}

.visual-orbit-two::before {
  top: auto;
  right: 2%;
  bottom: 29%;
  left: auto;
}

.visual-orbit-two::after {
  top: 16%;
  right: auto;
  bottom: auto;
  left: 16%;
}

.energy-visual-rays {
  position: absolute;
  inset: 0;
  animation: float 5.5s ease-in-out infinite;
}

.energy-visual-rays i {
  position: absolute;
  display: block;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform-origin: left center;
}

.energy-visual-rays i:nth-child(1) {
  top: 26%;
  left: 5%;
  transform: rotate(-25deg);
}

.energy-visual-rays i:nth-child(2) {
  top: 13%;
  right: 18%;
  background: linear-gradient(90deg, var(--warm), transparent);
  transform: rotate(38deg);
}

.energy-visual-rays i:nth-child(3) {
  top: 52%;
  right: -4%;
  transform: rotate(8deg);
}

.energy-visual-rays i:nth-child(4) {
  bottom: 14%;
  right: 18%;
  background: linear-gradient(90deg, var(--warm), transparent);
  transform: rotate(-40deg);
}

.energy-visual-rays i:nth-child(5) {
  bottom: 8%;
  left: 15%;
  transform: rotate(24deg);
}

.energy-visual-rays i:nth-child(6) {
  top: 47%;
  left: -8%;
  background: linear-gradient(90deg, transparent, var(--warm));
  transform: rotate(-12deg);
}

.energy-label {
  position: absolute;
  color: rgba(152, 187, 225, 0.72);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.energy-label-top {
  top: 24px;
  right: 28px;
  color: var(--accent);
}

.energy-label-bottom {
  bottom: 29px;
  left: 7px;
}

.exchange-tag {
  position: absolute;
  top: 57px;
  left: 2px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 225, 154, 0.34);
  background: rgba(255, 225, 154, 0.08);
  color: var(--warm);
  font-family: var(--font-display);
  transform: rotate(-12deg);
}

.exchange-tag span {
  font-size: 16px;
  font-weight: 800;
}

.exchange-tag small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.energy-arrow {
  position: absolute;
  right: -4px;
  top: 146px;
  display: grid;
  gap: 4px;
  transform: rotate(-10deg);
}

.energy-arrow span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(66, 231, 208, 0.5);
}

.energy-arrow span:nth-child(2) {
  width: 34px;
}

.energy-arrow span:nth-child(3) {
  width: 17px;
}

.exchange-panel {
  position: relative;
  max-width: 1046px;
  margin: 3px auto 0;
  padding: 25px 28px 21px;
  border: 1px solid rgba(135, 171, 218, 0.19);
  background: rgba(8, 28, 54, 0.78);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.panel-heading,
.address-card-header,
.address-row,
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-heading {
  gap: 20px;
  margin-bottom: 23px;
}

h2 {
  margin: 8px 0 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 11px rgba(255, 225, 154, 0.7);
}

.status-pill.is-ready {
  color: var(--accent);
}

.status-pill.is-ready .status-dot {
  background: var(--accent);
  box-shadow: 0 0 11px rgba(66, 231, 208, 0.7);
}

.exchange-content {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
}

.countdown-card,
.address-card {
  min-height: 152px;
  border: 1px solid var(--line);
  background: rgba(3, 16, 33, 0.44);
}

.countdown-card {
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 17px 24px;
}

.countdown-ring {
  position: relative;
  flex: 0 0 87px;
  width: 87px;
  height: 87px;
}

.countdown-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.countdown-track,
.countdown-progress {
  fill: none;
  stroke-width: 6;
}

.countdown-track {
  stroke: rgba(154, 169, 197, 0.13);
}

.countdown-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 5px rgba(66, 231, 208, 0.4));
  transition: stroke-dashoffset 0.9s linear;
}

.countdown-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.countdown-value strong {
  align-self: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.countdown-value span {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
}

.countdown-copy {
  display: grid;
  gap: 7px;
}

.countdown-copy strong {
  font-size: 15px;
}

.countdown-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.address-card {
  padding: 17px 20px 13px;
  transition: border-color 300ms ease, background 300ms ease, opacity 300ms ease;
}

.address-card.is-locked {
  opacity: 0.63;
}

.address-card.is-ready {
  border-color: rgba(66, 231, 208, 0.43);
  background: rgba(13, 52, 65, 0.46);
  opacity: 1;
}

.address-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.address-hint {
  display: block;
  color: var(--dim);
  font-size: 11px;
}

.lock-icon {
  color: var(--dim);
  font-size: 21px;
  transform: rotate(45deg);
}

.address-card.is-ready .lock-icon {
  color: var(--accent);
}

.address-row {
  gap: 12px;
  margin-top: 18px;
}

.address-row code {
  min-width: 0;
  overflow: hidden;
  color: #dce7fa;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.15vw, 14px);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(66, 231, 208, 0.5);
  border-radius: 0;
  background: rgba(66, 231, 208, 0.09);
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.copy-button:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(66, 231, 208, 0.18);
  transform: translateY(-1px);
}

.copy-button:active:not(:disabled) {
  transform: translateY(0);
}

.copy-button:disabled {
  border-color: rgba(154, 169, 197, 0.18);
  background: rgba(154, 169, 197, 0.06);
  color: var(--dim);
  cursor: not-allowed;
}

.copy-button:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

.copy-icon {
  position: relative;
  display: block;
  width: 13px;
  height: 14px;
  border: 1.5px solid currentColor;
}

.copy-icon::before {
  position: absolute;
  top: -4px;
  left: 3px;
  width: 9px;
  height: 10px;
  border: 1.5px solid currentColor;
  background: var(--navy-800);
  content: "";
}

.address-note {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.6;
}

.address-note code {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
}

.panel-footer {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 17px;
  color: var(--dim);
  font-size: 10px;
}

.footer-check {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid rgba(66, 231, 208, 0.32);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 9px;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px 31px;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer-divider {
  width: 24px;
  height: 1px;
  background: rgba(154, 169, 197, 0.25);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 1px solid rgba(66, 231, 208, 0.35);
  background: #102f45;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 900;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

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

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    width: min(100% - 36px, 720px);
  }

  .hero-grid {
    display: contents;
  }

  .topbar {
    order: 1;
  }

  .hero-copy {
    order: 2;
    max-width: 620px;
    padding: 64px 22px 0;
  }

  .exchange-panel {
    order: 3;
    width: 100%;
    margin-top: 8px;
  }

  .visual-wrap {
    order: 4;
    min-height: 330px;
    margin-top: 24px;
  }
}

@media (max-width: 620px) {
  .hero {
    width: min(100% - 28px, 500px);
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .topbar-note {
    display: none;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-copy {
    padding: 54px 0 0;
  }

  h1 {
    margin-top: 16px;
    font-size: clamp(38px, 12vw, 56px);
  }

  .hero-description {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .steps {
    width: 100%;
  }

  .step {
    gap: 6px;
  }

  .step-label {
    font-size: 10px;
  }

  .step-line {
    margin: 0 8px;
  }

  .visual-wrap {
    min-height: 275px;
    margin-top: 20px;
  }

  .visual-orbit-one {
    width: 310px;
    height: 138px;
  }

  .visual-orbit-two {
    width: 250px;
    height: 205px;
  }

  .energy-visual {
    width: 265px;
    height: 265px;
    transform: scale(0.88);
  }

  .exchange-panel {
    padding: 20px 15px 17px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 21px;
  }

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

  .countdown-card {
    min-height: 128px;
    padding: 14px 16px;
  }

  .countdown-ring {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
  }

  .countdown-value strong {
    font-size: 27px;
  }

  .address-card {
    min-height: 153px;
    padding: 15px 15px 13px;
  }

  .address-row {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .address-row code {
    padding: 3px 0;
    font-size: 11px;
  }

  .copy-button {
    width: 100%;
  }

  .panel-footer {
    align-items: flex-start;
    line-height: 1.6;
  }

  .page-footer {
    flex-wrap: wrap;
    padding-bottom: 24px;
    font-size: 8px;
    text-align: center;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: center;
  }
}
