/* StakingTRX - global stylesheet
   Mobile-first. Header/footer prefixed h-/f- to avoid collisions across pages. */

:root {
  --bg: #0b0d12;
  --panel: #14171f;
  --panel-2: #1a1e28;
  --border: #232734;
  --text: #e8eaf0;
  --muted: #8b91a4;
  --accent: #ff0042;
  --accent-2: #ff5274;
  --accent-deep: #c70035;
  --success: #2ecc71;
  --max: 1180px;
  --r: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== Header ===== */

.h-main {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.h-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.h-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.h-logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 0, 66, 0.6);
}
.h-logo-accent { color: var(--accent); }

.h-nav { display: none; align-items: center; gap: 22px; }
.h-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.h-nav-list a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.h-nav-list a:hover { color: var(--text); }
.h-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.h-cta:hover { background: var(--accent-deep); color: #fff; }

.h-hamburger {
  background: transparent;
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.h-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.h-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.98);
}
.h-mobile.h-open { display: flex; }
.h-mobile a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.h-mobile a:last-child { border-bottom: 0; }
.h-cta-mobile {
  margin-top: 8px;
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
}

/* ===== Buttons ===== */

.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  text-align: center;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.05s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(255, 0, 66, 0.55);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* ===== Hero ===== */

.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(800px 300px at 50% -10%, rgba(255, 0, 66, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255,0,66,0.04), transparent 60%);
}
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 0, 66, 0.12);
  color: var(--accent-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 0, 66, 0.3);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.hero-figure {
  margin: 36px auto 0;
  max-width: 1100px;
  padding: 0 8px;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(255, 0, 66, 0.35), 0 10px 30px -15px rgba(0,0,0,0.6);
}

/* ===== Metrics ===== */

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 32px 0;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 18px;
  text-align: center;
}
.metric-value {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 30px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.metric-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ===== Sections ===== */

section { padding: 36px 0; }

section h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
.section-lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 760px;
  margin: 0 0 28px;
}

/* How */

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.how-steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.how-steps h3 { margin: 0 0 6px; font-size: 17px; }
.how-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.step-n {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  background: rgba(255, 0, 66, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
}

/* Benefits */

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.benefit {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
}
.benefit h3 { margin: 0 0 8px; font-size: 17px; }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; }

/* Terms table */

.terms-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  font-size: 14px;
}
.terms-table th, .terms-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.terms-table tr:last-child th, .terms-table tr:last-child td { border-bottom: 0; }
.terms-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  width: 42%;
  background: #11131a;
}
.terms-table a { color: var(--accent-2); }

/* FAQ */

.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  color: var(--accent);
  margin-left: 12px;
  transition: transform 0.15s;
}
.faq details[open] summary::after { content: '-'; }
.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 15px;
}

/* CTA bottom */

.cta-bottom {
  text-align: center;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(255, 0, 66, 0.15), transparent 70%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 20px;
  margin: 36px 0;
}
.cta-bottom h2 { margin-bottom: 10px; }
.cta-bottom p { color: var(--muted); max-width: 540px; margin: 0 auto 22px; }

/* ===== Footer ===== */

.f-main {
  border-top: 1px solid var(--border);
  background: #08090d;
  margin-top: 30px;
  padding: 40px 18px 24px;
  color: var(--muted);
  font-size: 14px;
}
.f-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.f-col h4 {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin-bottom: 8px; }
.f-col a { color: var(--muted); }
.f-col a:hover { color: var(--text); }
.f-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}
.f-logo-accent { color: var(--accent); }
.f-tag { margin: 0; max-width: 280px; }
.f-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.f-disclaimer { opacity: 0.85; }

/* ===== Desktop ===== */

@media (min-width: 760px) {
  .h-nav { display: flex; }
  .h-hamburger { display: none; }
  .h-mobile { display: none !important; }
  .hero { padding: 80px 0 56px; }
  .hero h1 { font-size: 52px; }
  .hero-sub { font-size: 19px; }
  .metrics { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 40px 0; }
  .metric-value { font-size: 38px; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .how-steps { gap: 16px; }
  .how-steps li { padding: 24px 26px; grid-template-columns: 60px 1fr; }
  section { padding: 56px 0; }
  section h2 { font-size: 34px; }
  .f-inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
  .f-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 60px; }
}
