:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-deep: #0a0c12;
  --border: #2a2d3e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --orange: #f7931a;
  --orange-deep: #e25d28;
  --red: #ef4444;
  --gold: #ffc857;
  --steel: #8a93a3;
  --steel-deep: #6a7180;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: var(--bg);
  background-image: radial-gradient(ellipse at top, #1a1d27 0%, #0f1117 55%, #0a0c12 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }

/* ───── nav ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: filter .2s, transform .2s;
}
.brand:hover {
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.55));
  transform: translateY(-1px);
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.35));
}
@media (max-width: 1024px) {
  .brand-logo { height: 24px; }
}
@media (max-width: 720px) {
  .brand-logo { height: auto; max-width: min(70vw, 220px); }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color .15s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 2px;
}
.nav-links .external::after {
  content: " ↗";
  font-size: .75rem;
  opacity: .8;
}

/* ───── hamburger toggle (desktop hides; mobile shows) ───── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  width: 40px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: border-color .15s;
}
.nav-toggle:hover { border-color: var(--orange); }
.nav-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease, background .15s;
}
.nav-toggle:hover .nav-toggle-bar { background: var(--orange); }

/* ───── hero ───── */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  padding-bottom: 0.05em;
  background: linear-gradient(135deg, var(--text) 0%, var(--orange) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: .85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero > *:not(.sparks) { position: relative; z-index: 2; }

/* ───── buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #0a0c12;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(249, 115, 22, 0.5);
  color: #0a0c12;
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ───── sections ───── */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-divider h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0;
  color: var(--text);
}
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 100%);
}
.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: 720px;
}
.prose {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.prose p { margin: 0 0 1.25rem; }
.prose strong { color: var(--text); font-weight: 700; }

/* ───── grid / cards ───── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.12), 0 4px 20px rgba(0, 0, 0, 0.4);
}
.card-eyebrow {
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
  font-weight: 700;
}
.card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 .5rem;
  color: var(--text);
}
.card p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  flex-grow: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  align-self: flex-start;
}
.card-link::after { content: " →"; transition: transform .15s; display: inline-block; }
.card-link:hover::after { transform: translateX(3px); }

.card.featured {
  background: linear-gradient(135deg, #1a1d27 0%, #0f1117 100%);
  border-color: rgba(249, 115, 22, 0.3);
}
.card.featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 50%, var(--gold) 100%);
}

/* ───── values list ───── */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.value {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 3px solid var(--orange);
  background: rgba(26, 29, 39, 0.55);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.value h4 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 .4rem;
  color: var(--text);
}
.value p {
  color: var(--text-muted);
  font-size: .94rem;
  margin: 0;
}

/* ───── contact cards ───── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.12);
}
.contact-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
  margin-bottom: 1rem;
}
.contact-card .card-eyebrow {
  margin-bottom: .25rem;
}
.contact-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 .75rem;
  color: var(--text);
}
.contact-card .email {
  font-size: 1rem;
  font-weight: 600;
  word-break: break-all;
}
.contact-card .desc {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: .65rem;
  line-height: 1.45;
}

/* ───── legal block ───── */
.legal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.7;
}
.legal strong { color: var(--text); }

/* ───── footer ───── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: .85rem;
}
.footer-brand {
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}
.footer-anvil {
  height: 22px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.3));
}
footer .footer-links {
  margin-top: .75rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
footer .footer-links a {
  color: var(--text-dim);
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
footer .footer-links a:hover { color: var(--orange); }

/* ───── spark particles ───── */
.sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.spark {
  position: absolute;
  bottom: -6px;
  width: 3px; height: 3px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor, 0 0 12px var(--gold);
  animation: spark-rise linear infinite;
  opacity: 0;
}
@keyframes spark-rise {
  0%   { bottom: -6px;   transform: translateX(0) scale(1);                    opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { bottom: 100%;   transform: translateX(var(--drift, 20px)) scale(.4);  opacity: 0; }
}

/* ───── hero brand mark (full logo as page anchor) ───── */
.brand-hero {
  display: block;
  margin: 0 auto 1.75rem;
  width: 100%;
  max-width: 480px;
  height: auto;
  filter:
    drop-shadow(0 0 24px rgba(249, 115, 22, 0.40))
    drop-shadow(0 0 6px rgba(255, 200, 87, 0.25));
}
@media (max-width: 720px) {
  .brand-hero { max-width: 280px; margin-bottom: 1.25rem; }
}

/* ───── hero eyebrow (above h1 on flagship pages) ───── */
.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

/* ───── EMBER tier ladder ───── */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.tier {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tier::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 100%);
  opacity: .6;
}
.tier:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.12);
}
.tier-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .72rem;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: .35rem;
}
.tier-name {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 60%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .25rem;
}
.tier-range {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.tier-split {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 1.35rem;
}
.tier-split .finder { color: var(--text); }
.tier-split .embers { color: var(--gold); }
.tier-split .tier-sep { color: var(--text-dim); font-weight: 400; }
.tier-label {
  font-size: .68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .15rem;
}
.tier.tier-peak {
  border-color: rgba(255, 200, 87, 0.4);
  box-shadow: 0 0 32px rgba(255, 200, 87, 0.12);
}
.tier.tier-peak::before {
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 50%, var(--gold) 100%);
  opacity: 1;
  height: 4px;
}

/* ───── algorithm catalog (FenixPool page) ───── */
.algos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.algo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.algo::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 100%);
}
.algo:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.1);
}
.algo-eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: .35rem;
}
.algo h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .85rem;
}
.algo-coins {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.coin-chip strong {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .5px;
}
.catalog-foot {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ───── Fenix Fee Cycle ───── */
.ash {
  font-style: normal;
  font-weight: 600;
}
.ash-h, .phase1-pre { color: var(--orange); }
.ash-rest { color: var(--text); }
.phase1-h, .phase2-ashes { color: var(--orange); }
.phase1-rest { color: var(--text); }

.fee-cycle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  position: relative;
}
.fee-phase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fee-phase:hover { transform: translateY(-2px); }
.fee-phase::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.fee-phase-1::before { background: linear-gradient(90deg, var(--red) 0%, var(--orange) 100%); }
.fee-phase-2::before { background: linear-gradient(90deg, #4ade80 0%, var(--gold) 100%); }
.fee-phase-3::before { background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 100%); }
.fee-phase-2 {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.1);
}
.fee-eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .35rem;
}
.fee-name {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .5rem;
}
.fee-rate {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: .85rem;
}
.fee-rate.fee-free { color: #4ade80; }
.fee-phase-3 .fee-rate { color: var(--gold); }
.fee-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
}
.fee-foot {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: .85rem;
  font-style: italic;
}

/* ───── live FenixPool stats banner (fenixpool.html) ───── */
.live-stats-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.live-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.live-stats-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.live-stats-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--text);
  margin: 0 0 clamp(0.75rem, 2vw, 1.5rem);
  letter-spacing: 1px;
}
.live-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 2vw, 1.5rem);
}
.live-stats-label {
  color: var(--text-dim);
  font-size: clamp(0.62rem, 1.5vw, 0.75rem);
  margin-bottom: 4px;
}
.live-stats-value {
  font-size: clamp(1rem, 3vw, 1.75rem);
  font-weight: 800;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.live-stats-orange { color: #f97316; }
.live-stats-green  { color: #4ade80; }
.live-stats-blue   { color: #38bdf8; }
.live-stats-gold   { color: #fbbf24; }
.live-stats-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  color: var(--text-dim);
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .live-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .live-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Ember particles — drifting orange dots, ported from fenixpool.com */
.ember-particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #f7931a;
  z-index: 0;
  pointer-events: none;
  bottom: -4px;
  box-shadow: 0 0 4px #f7931a;
}
.ember-particle:nth-child(1)  { left: 4%;  animation: ember-float-a 6.5s 0.0s ease-in infinite; }
.ember-particle:nth-child(2)  { left: 12%; animation: ember-float-b 7.8s 1.2s ease-in infinite; }
.ember-particle:nth-child(3)  { left: 22%; animation: ember-float-a 5.8s 2.5s ease-in infinite; }
.ember-particle:nth-child(4)  { left: 32%; animation: ember-float-b 7.2s 0.7s ease-in infinite; }
.ember-particle:nth-child(5)  { left: 44%; animation: ember-float-a 6.9s 3.1s ease-in infinite; }
.ember-particle:nth-child(6)  { left: 55%; animation: ember-float-b 6.1s 1.8s ease-in infinite; }
.ember-particle:nth-child(7)  { left: 66%; animation: ember-float-a 7.5s 0.3s ease-in infinite; }
.ember-particle:nth-child(8)  { left: 76%; animation: ember-float-b 5.6s 2.9s ease-in infinite; }
.ember-particle:nth-child(9)  { left: 86%; animation: ember-float-a 6.8s 1.5s ease-in infinite; }
.ember-particle:nth-child(10) { left: 95%; animation: ember-float-b 7.1s 3.6s ease-in infinite; }
@keyframes ember-float-a {
  0%   { bottom: -4px; opacity: 0; transform: translateX(0) scale(1); }
  15%  { opacity: 0.85; }
  80%  { opacity: 0.25; }
  100% { bottom: 100%; opacity: 0; transform: translateX(10px) scale(0.35); }
}
@keyframes ember-float-b {
  0%   { bottom: -4px; opacity: 0; transform: translateX(0) scale(1); }
  15%  { opacity: 0.75; }
  80%  { opacity: 0.2; }
  100% { bottom: 100%; opacity: 0; transform: translateX(-8px) scale(0.25); }
}

/* EMBER promo banner (ember.html) — ported from fenixpool.com hero slide */
.ember-promo-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.ember-promo-card {
  background: linear-gradient(135deg, #1a0500 0%, #2d0a00 30%, #1a0500 60%, #0f0300 100%);
  border: 1px solid #f9731633;
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 2.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ember-promo-content {
  position: relative;
  z-index: 1;
}
.ember-promo-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}
.ember-promo-flame {
  width: clamp(56px, 10vw, 72px);
  height: clamp(56px, 10vw, 72px);
  object-fit: contain;
  margin-top: -8px;
  margin-bottom: -8px;
}
.ember-promo-title {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #ffc857 0%, #f7931a 45%, #ef4444 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ember-promo-acronym {
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  color: #ffc857;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.ember-promo-tagline {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: #e2e8f0;
  margin: 0 0 0.75rem;
  line-height: 1.55;
}
.ember-promo-tagline .finder { color: #4ade80; font-weight: 700; }
.ember-promo-tagline .embers { color: #ffc857; font-weight: 700; }
.ember-promo-coins {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.ember-coin {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ember-coin img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.ember-coin span {
  font-weight: 700;
  font-size: 0.9rem;
}
.ember-promo-cta {
  display: inline-block;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, #ef4444, #f7931a, #ffc857);
  color: #000;
  padding: 8px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform .15s, box-shadow .15s;
}
.ember-promo-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.4);
  color: #000;
}

/* Ember wave text — left-to-right color sweep through ember palette */
@keyframes ember-wave {
  0%, 100% { color: #ef4444; }
  25%      { color: #f97316; }
  50%      { color: #ffc857; }
  75%      { color: #f97316; }
}
.ember-wave-text span {
  display: inline-block;
  animation: ember-wave 2.5s ease infinite;
}

/* ───── reusable inline accents ───── */
.optional-flag {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}

/* ───── final CTA section ───── */
.cta-final {
  text-align: center;
  padding-bottom: 4rem;
}
.cta-line {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 1.5rem;
}
.cta-line strong {
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 60%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

/* ───── responsive ───── */
@media (max-width: 720px) {
  /* Mobile nav: brand + hamburger on row 1, links wrap below when open */
  .nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: .9rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
  }
  .nav-inner.is-open .nav-links { display: flex; }
  .nav-links a {
    padding: .8rem .5rem;
    font-size: .9rem;
    width: 100%;
    border-radius: 6px;
  }
  .nav-links a.active { background: rgba(249, 115, 22, 0.08); }
  .nav-links a.active::after { display: none; }

  /* Hamburger → X when open */
  .nav-inner.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-inner.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-inner.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Section + card spacing */
  .hero { padding: 1.5rem 1.25rem 1rem; }
  section { padding: 2.25rem 1.25rem; }
  .card, .contact-card { padding: 1.5rem; }
}
