:root {
  --ink: #07100a;
  --panel: #0d1810;
  --panel-raised: #122115;
  --line: #1e3324;
  --spartan-green: #2dcc45;
  --spartan-green-dim: #1e8f30;
  --gold: #d4af6a;
  --gold-bright: #e8c98a;
  --text: #eef4ee;
  --text-dim: #9db3a3;
  --danger: #d45a4a;

  --font-display: "Cinzel", serif;
  --font-body: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

a { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--spartan-green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Landing gate
   ========================================================= */
.landing-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 6px solid var(--spartan-green);
  box-sizing: border-box;
}

.landing-frame {
  text-align: center;
  max-width: 90vw;
}

.landing-tag {
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--gold-bright);
  margin: 0 0 1.5rem;
}

.landing-art-btn {
  position: relative;
  padding: 0;
  border: 2px solid var(--spartan-green);
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  max-width: min(640px, 80vw);
  max-height: 60vh;
}

.landing-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.25s ease;
}

.landing-art-btn:hover .landing-art,
.landing-art-btn:focus-visible .landing-art {
  filter: brightness(1);
}

.landing-x-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 6rem);
  color: #fff;
  text-shadow: 0 0 18px rgba(45, 204, 69, 0.9), 0 0 40px rgba(45, 204, 69, 0.5);
  animation: xpulse 2.4s ease-in-out infinite;
}

@keyframes xpulse {
  0%, 100% { text-shadow: 0 0 18px rgba(45, 204, 69, 0.9), 0 0 40px rgba(45, 204, 69, 0.5); }
  50%      { text-shadow: 0 0 28px rgba(45, 204, 69, 1), 0 0 60px rgba(45, 204, 69, 0.75); }
}

.landing-cta {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* =========================================================
   Layout basics
   ========================================================= */
.main-site {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--gold-bright);
  margin: 0 0 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--spartan-green);
}

.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; }

.hero-banner {
  width: 100%;
  border-bottom: 3px solid var(--spartan-green);
}

.hero-statement {
  padding: 2rem 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--text);
  background: var(--panel);
}

/* =========================================================
   Token info
   ========================================================= */
.token-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mini-shield { width: 22px; height: 22px; }
.ticker-icon { width: 20px; height: 20px; }

.token-name-row h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
}

.token-ticker-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-bright);
  font-weight: 600;
  margin: 0.5rem 0 1.5rem;
}

.ca-block { margin-bottom: 1.75rem; }

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  overflow-x: auto;
}

.ca-chain {
  font-family: var(--font-display);
  color: var(--spartan-green);
  font-weight: 700;
  flex-shrink: 0;
}

.ca-row code {
  color: var(--text-dim);
  white-space: nowrap;
}

.copy-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn:hover { border-color: var(--spartan-green); color: var(--spartan-green); }

.lp-list h4 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.lp-list ul { list-style: none; margin: 0; padding: 0; }

.lp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.lp-price { color: var(--spartan-green); font-weight: 600; }

/* =========================================================
   Quick links
   ========================================================= */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.link-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-tile:hover, .link-tile:focus-visible {
  border-color: var(--spartan-green);
  transform: translateY(-2px);
}

.link-tile img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }

.pulsex-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--spartan-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--spartan-green);
}

/* =========================================================
   Feature art / gallery
   ========================================================= */
.feature-art img { border-radius: 8px; border: 1px solid var(--line); }

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-strip img {
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* =========================================================
   Stats — shield bars
   ========================================================= */
.stat-bar-block { margin-bottom: 2rem; }

.stat-bar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.shield-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 0.4rem;
}

.shield-bar img { width: 16px; height: 16px; }
.shield-bar img.shield-empty { opacity: 0.18; filter: grayscale(1); }
.shield-bar img.shield-filled { opacity: 1; }

.stat-value { font-size: 0.85rem; color: var(--text-dim); }

.sub-stat {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.refresh-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.refresh-btn:hover { border-color: var(--spartan-green); color: var(--spartan-green); }

/* =========================================================
   Spartan Fuel
   ========================================================= */
.fuel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.fuel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.fuel-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--gold-bright);
}

.fuel-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}

/* =========================================================
   Tax breakdown diagram
   ========================================================= */
.tax-diagram {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tax-source {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--spartan-green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-bright);
  background: var(--panel);
}

.tax-branches {
  display: flex;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.tax-branch {
  flex-shrink: 0;
  width: 160px;
  text-align: center;
}

.tax-arrow {
  display: block;
  color: var(--spartan-green);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.tax-pct {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-bright);
}

.tax-label {
  font-weight: 600;
  margin: 0.2rem 0 0.5rem;
}

.tax-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

/* =========================================================
   Connections
   ========================================================= */
.connection-block { margin-bottom: 2rem; }

.connection-label {
  font-family: var(--font-display);
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.connection-banner {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.scale-75 {
  width: 75%;
  height: auto;
}

.connection-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* =========================================================
   Disclaimer / footer
   ========================================================= */
.disclaimer p {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 2rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 960px;
  margin: 0 auto;
}

.footer-sym-icon { width: 22px; height: 22px; border-radius: 50%; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 640px) {
  .gallery-strip { grid-template-columns: 1fr; }
  .tax-diagram { flex-direction: column; align-items: stretch; }
  .tax-branches { flex-direction: column; }
  .tax-branch { width: 100%; }
}
