/* TRX Energy landing — mobile first */
:root {
  --bg: #08090c;
  --bg-elev: #10141c;
  --card: rgba(16, 20, 28, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f6;
  --muted: #8b93a3;
  --faint: #6a7280;
  --accent: #3dffb1;
  --accent-2: #1ac8ff;
  --accent-dim: rgba(61, 255, 177, 0.14);
  --warn: #ffc14d;
  --danger: #ff6b6b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1120px;
  --narrow: 760px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; position: relative; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

strong { font-weight: 650; color: #fff; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(26, 200, 255, 0.16), transparent 55%),
    radial-gradient(700px 480px at -10% 10%, rgba(61, 255, 177, 0.14), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(26, 200, 255, 0.07), transparent 55%),
    var(--bg);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.5;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.wrap.narrow { width: min(var(--narrow), calc(100% - 32px)); }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 9, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(61, 255, 177, 0.25), 0 0 20px rgba(61, 255, 177, 0.18);
}
.brand-name { font-size: 15px; letter-spacing: 0.04em; }
.top-nav {
  margin-left: auto;
  display: none;
  gap: 22px;
}
.top-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.top-nav a:hover { color: var(--text); }
.top .btn { flex-shrink: 0; }

.hero {
  padding: 36px 0 20px;
}
.hero-grid {
  display: grid;
  gap: 28px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 36em;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.pills li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-primary {
  color: #04150e;
  background: linear-gradient(180deg, #67ffc4, var(--accent));
  box-shadow: 0 8px 24px rgba(61, 255, 177, 0.22);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(61, 255, 177, 0.32); }
.btn-secondary,
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
}
.btn-secondary:hover,
.btn-ghost:hover { border-color: rgba(61, 255, 177, 0.45); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.card-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 22px;
  line-height: 1;
}
.price-num {
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 750;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, #c9ffe9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-unit {
  font-size: 20px;
  color: var(--muted);
  font-weight: 650;
}
.price-note {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
}
.price-warn {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 193, 77, 0.08);
  border: 1px solid rgba(255, 193, 77, 0.22);
  color: #f3d59a;
  font-size: 13px;
  line-height: 1.6;
}
.price-meta {
  margin: 14px 0 0;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

.section { padding: 64px 0; }
.section-alt {
  background: rgba(255,255,255,0.015);
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: 32px; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-head p { margin: 0; color: var(--muted); max-width: 38em; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
}
.step-num {
  display: inline-block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.steps h3, .benefits h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.steps p, .benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.benefits {
  display: grid;
  gap: 16px;
}
.benefits article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
}

.prose ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: svc;
  display: grid;
  gap: 14px;
}
.prose li {
  counter-increment: svc;
  position: relative;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--muted);
  font-size: 15px;
}
.prose li::before {
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 650;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 15px;
}

.foot {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: #07080b;
}
.foot-inner {
  display: grid;
  gap: 24px;
  padding-bottom: 28px;
}
.foot-note, .foot-copy p {
  color: var(--faint);
  font-size: 13px;
  margin: 8px 0 0;
  max-width: 52em;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.foot-links a, .linkish {
  color: var(--muted);
  font-size: 14px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.foot-links a:hover, .linkish:hover { color: var(--text); }
.foot-copy {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  border: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(94vh, 900px);
  overflow: auto;
  background: #12171f;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  padding: 28px 22px 28px;
  box-shadow: var(--shadow);
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-x:hover { background: rgba(255,255,255,0.12); }
.modal-dialog h2 {
  margin: 4px 28px 10px 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.modal-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.qr-frame {
  width: min(240px, 70%);
  margin: 0 auto 18px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
}
.qr-frame img { width: 100%; height: auto; }
.addr-label {
  display: block;
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.addr-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.addr-box input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0e14;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  letter-spacing: 0.01em;
}
.addr-box input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.copy-feedback {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 13px;
}
.modal-warn {
  margin: 14px 0 16px;
  color: #f3d59a;
  font-size: 13px;
}
body.modal-open { overflow: hidden; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  background: #173328;
  color: var(--accent);
  border: 1px solid rgba(61, 255, 177, 0.35);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.toast[hidden] { display: none; }

@media (min-width: 720px) {
  .top-nav { display: flex; }
  .hero { padding: 64px 0 28px; }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
  }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .modal { place-items: center; }
  .modal-dialog {
    border-radius: 24px;
    padding: 32px 28px 28px;
  }
  .foot-inner {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .wrap { width: min(var(--max), calc(100% - 64px)); }
  .section { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
