/* TRX Energy · free claim landing page */

:root {
  --bg: #06070a;
  --bg-soft: #0b0d13;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f7fb;
  --muted: #9aa2b2;
  --muted-dim: #6f7788;
  --red: #ef0027;
  --red-soft: #ff4d63;
  --orange: #ff7a45;
  --gold: #ffb020;
  --radius: 22px;
  --maxw: 1120px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html.is-embed, html.is-embed body { min-height: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 7, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #ff2b43, #b3001d);
  box-shadow: 0 6px 16px rgba(239, 0, 39, 0.4);
}

.brand__name { font-size: 15px; }

.nav__right { display: flex; align-items: center; gap: 8px; }

/* ---------- language ---------- */
.lang { position: relative; }

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd6e2;
  font: 600 12px/1 var(--font);
  cursor: pointer;
}

.lang__btn:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.lang__btn:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 2px; }

.lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 50;
  margin: 0;
  padding: 6px;
  min-width: 150px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #14161d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lang__menu li {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: #d9dfe9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.lang__menu li:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.lang__menu li.is-active::after { content: "✓"; color: var(--red-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  height: 50px;
  font: 700 15px/1 var(--font);
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff7a45 0%, #ef0027 52%, #c20022 100%);
  box-shadow: 0 14px 34px rgba(239, 0, 39, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 18px 42px rgba(239, 0, 39, 0.42); }
.btn:active { transform: translateY(0) scale(0.995); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.btn--sm { height: 36px; padding: 0 15px; border-radius: 10px; font-size: 13px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16.5px; border-radius: 16px; }
.btn--block { width: 100%; margin-top: 14px; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
  color: #dfe4ee;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 20px 40px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px -20vw auto;
  height: 620px;
  background:
    radial-gradient(45% 50% at 50% 22%, rgba(239, 0, 39, 0.32), transparent 70%),
    radial-gradient(35% 40% at 78% 18%, rgba(255, 122, 69, 0.16), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 69, 0.4);
  background: rgba(239, 0, 39, 0.14);
  color: #ffb3a0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(38px, 7.6vw, 74px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -2px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #fff 10%, #ffb020 45%, #ff4d63 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 0 auto 26px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(14px, 2.4vw, 17px);
}

.price {
  display: flex;
  width: fit-content;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 auto 26px;
  padding: 16px 34px;
  border-radius: 20px;
  border: 1px solid rgba(239, 0, 39, 0.28);
  background: linear-gradient(180deg, rgba(239, 0, 39, 0.16), rgba(239, 0, 39, 0.04));
}

.hero > .btn {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.price__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(40px, 8vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}

.price__num small { font-size: 16px; font-weight: 700; letter-spacing: 0; color: #ffb9a8; }
.price__note { margin: 4px 0 0; font-size: 12.5px; color: #d3a99f; }

.trust {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted-dim);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: clamp(18px, 3vw, 24px); font-weight: 800; letter-spacing: -0.5px; }
.stat span { font-size: 12px; color: var(--muted-dim); }

/* ---------- sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 20px;
}

.section__title {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 850;
  letter-spacing: -1px;
}

.section__sub {
  margin: 0 auto 34px;
  max-width: 42em;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.section__cta { margin-top: 34px; text-align: center; }
.section__cta .trust { margin-top: 12px; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.card {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: rgba(255, 255, 255, 0.18); background: var(--panel-strong); transform: translateY(-2px); }

.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 750; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------- table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 14px 18px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

.table thead th {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

.table tbody th { font-weight: 600; color: #c9d0dc; }
.table tbody td { color: var(--muted); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }

.table .table__hi {
  color: #ff8f79;
  font-weight: 700;
  background: rgba(239, 0, 39, 0.08);
}

.table thead .table__hi { color: #ff8f79; }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.steps__no {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  color: #ffb9a8;
  background: rgba(239, 0, 39, 0.16);
  border: 1px solid rgba(239, 0, 39, 0.32);
}

.steps h3 { margin: 0 0 6px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  font-weight: 650;
  font-size: 14.5px;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq details[open] summary::after { content: "−"; color: var(--red-soft); }
.faq summary:hover { color: #fff; }

.faq details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- footer ---------- */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 56px;
  text-align: center;
  color: var(--muted-dim);
  font-size: 12.5px;
  border-top: 1px solid var(--line);
}

.foot__brand { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #dfe4ee; }
.foot p { margin: 0; }
.foot__sub { margin-top: 4px; color: #5b6373; }

/* 数字 / 币种在 RTL 下保持从左到右，避免 "0 TRX" 被显示成 "TRX 0" */
.price__num,
.stat b {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 7, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}

.modal__dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 18px 22px 24px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: #12141b;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: popIn 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal.is-shake .modal__dialog { animation: shake 0.3s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal__brand { font-size: 13px; font-weight: 700; color: #cfd6e2; letter-spacing: 0.3px; }

.modal__close {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #b7bfcd;
  font: 600 12px/1 var(--font);
  cursor: pointer;
}

.modal__close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.modal__close:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 2px; }

.modal__close:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: #8b93a3;
  background: rgba(255, 255, 255, 0.03);
}

.modal__title { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.modal__desc { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.mstage { animation: fadeIn 0.22s ease; }
.mstage:not(.is-active) { display: none; }

/* ---------- ring ---------- */
.ring {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 6px auto 16px;
  display: grid;
  place-items: center;
}

.ring__halo {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 0, 39, 0.42), transparent 66%);
  filter: blur(12px);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.05); }
}

.ring__svg { position: relative; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 7; }
.ring__bar {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(239, 0, 39, 0.5));
}

.ring__center { position: absolute; display: flex; align-items: baseline; gap: 3px; }

.ring__num {
  font-size: 44px;
  font-weight: 850;
  letter-spacing: -2px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff; /* 兜底：不支持 background-clip:text 的浏览器也能看到数字 */
}

/* 仅当支持文字渐变时才覆盖成渐变色 */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ring__num {
    background: linear-gradient(180deg, #fff, #ffb9a8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.ring__unit { font-size: 12px; color: #8b93a3; font-weight: 600; }

#stageClaiming, #stageDone { text-align: center; }
#stageClaiming .modal__desc, #stageDone .modal__desc { margin-bottom: 0; }

.done__icon {
  width: 60px; height: 60px;
  margin: 4px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ff97a4;
  background: radial-gradient(circle at 30% 25%, rgba(239, 0, 39, 0.32), rgba(239, 0, 39, 0.08));
  border: 1px solid rgba(239, 0, 39, 0.32);
}


#stageDone .btn { margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 44px 18px 28px; }
  .section { padding: 48px 18px; }
  .stats { margin-top: 34px; gap: 14px 8px; }
  .nav__inner { padding: 10px 16px; }
  .hero__title { letter-spacing: -1px; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav .btn--sm { padding: 0 12px; font-size: 12.5px; }
  .brand__name { font-size: 14px; }
  .price { padding: 14px 26px; }
  .table { min-width: 480px; font-size: 13px; }
  .table th, .table td { padding: 12px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

