: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; font-size: 18px; }

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

/* Shield/sword/axe texture — using the supplied source image at full
   strength. It was already correctly toned/faint by design; reducing
   opacity on top of that (as tried previously) just washed it out. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("images/weapon-pattern-source.jpg");
  background-repeat: repeat;
  background-size: 350px 184px;
  pointer-events: none;
  z-index: 0;
}

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; }
}

/* Shared gold-lettering style, echoing the banner's TITANX SPARTANS text */
.gold-heading {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--gold-bright);
  background: linear-gradient(180deg, #f5ddab 0%, #d4af6a 55%, #a9793a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 3px rgba(0,0,0,0.5);
}

/* =========================================================
   Landing gate v2 — based on the KOL's own reference mockup
   ========================================================= */
.landing-gate-v2 {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 1.5rem;
  box-sizing: border-box;
}

.landing-frame-v2 {
  width: 100%;
  max-width: 900px;
  border: 3px solid var(--gold);
  border-radius: 14px;
  background: var(--ink);
  padding: 1.25rem;
  box-sizing: border-box;
}

.landing-hero-art img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.landing-action-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.landing-link-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.9rem 0.5rem;
  text-align: center;
}

.landing-link-box:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.landing-enter-btn {
  background: var(--spartan-green);
  color: #04140a;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 204, 69, 0.4);
}

.landing-stats-row {
  display: flex;
  justify-content: space-around;
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.landing-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.landing-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

@media (max-width: 640px) {
  .landing-action-row { grid-template-columns: 1fr; }
  .landing-stats-row { flex-direction: column; gap: 0.75rem; }
}

/* =========================================================
   Layout basics
   ========================================================= */
.main-site { position: relative; z-index: 1; }

.content-col {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.two-col-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.two-col-row .section { margin: 0; height: 100%; }

.section {
  padding: 2.25rem 1.75rem;
  margin: 1.5rem 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold-bright);
  margin: 0 0 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.stats-title { justify-content: flex-start; }

/* =========================================================
   Hero — contained width (original sizing), gold pattern shows
   in the flanking space around it rather than the banner going edge-to-edge
   ========================================================= */
.hero-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 3px solid var(--spartan-green);
  display: flex;
  justify-content: center;
}

.hero-edge-pattern {
  position: absolute;
  inset: 0;
  background-image: url("images/weapon-pattern-tile-gold.svg");
  background-repeat: repeat;
  background-size: 90px 90px;
  /* Strongest near the banner's own edges (center of the viewport, since
     the banner is contained/centered now), fading out toward the far
     left/right of the screen. */
  mask-image: radial-gradient(
    ellipse 900px 100% at center,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.15) 85%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 900px 100% at center,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.15) 85%,
    rgba(0,0,0,0) 100%
  );
}

.hero {
  position: relative;
  max-width: 1080px;
  width: 90%;
  margin: 0 auto;
}

.hero-banner {
  width: 100%;
  display: block;
}

.hero-tagline {
  text-align: center;
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  background: linear-gradient(180deg, #f5ddab 0%, #d4af6a 55%, #a9793a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 3px rgba(0,0,0,0.5);
}

/* =========================================================
   Nav bar — straddles the banner's bottom edge (half overlapping
   the image, half hanging below it)
   ========================================================= */
.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 92%;
  margin: -1.6rem auto 2rem;
  padding: 0.6rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); }

.nav-link.active {
  background: var(--spartan-green);
  color: #04140a;
}

/* =========================================================
   Page routing — only one .page visible at a time
   ========================================================= */
.page { display: none; }
.page.active { display: block; }

.page-stub-note {
  color: var(--text-dim);
  font-style: italic;
  padding: 3rem 0;
  text-align: center;
}

.buy-now-btn {
  display: block;
  margin: 2.5rem auto 0;
  padding: 0.9rem 2.5rem;
  background: var(--spartan-green);
  color: #04140a;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buy-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 204, 69, 0.35);
}

/* =========================================================
   Mission page
   ========================================================= */
.mission-layout {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
}

.mission-image {
  flex: 1 1 42%;
  min-width: 0;
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.mission-text {
  flex: 1 1 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mission-body {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* =========================================================
   Coin page — per-LP link rows
   ========================================================= */
.lp-row-full {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}

.lp-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.lp-link-icon img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }

/* =========================================================
   Token info
   ========================================================= */
.field-label {
  font-family: var(--font-display);
  color: var(--text-dim);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.token-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mini-shield { width: 28px; height: 28px; }
.ticker-icon { width: 24px; height: 24px; }

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

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

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

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  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.3rem 0.7rem;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.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: 1.25rem;
  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;
  font-size: 1.05rem;
}

.lp-row-full .lp-row { padding: 0; border-bottom: none; }

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

/* =========================================================
   Quick links — rectangular icon-left / label-right buttons
   ========================================================= */
.link-row-label {
  font-family: var(--font-display);
  color: var(--text-dim);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0.6rem;
}

.link-row-label:first-of-type { margin-top: 0.5rem; }

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

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

.link-btn span { white-space: nowrap; }

.link-btn img { width: 27px; height: 27px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.link-btn img.wordmark-icon { width: auto; height: 16px; border-radius: 0; }

.link-list-secondary { margin-top: 0.75rem; }

.link-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.show-chart-link {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  cursor: pointer;
}

.show-chart-link:hover { color: var(--spartan-green); }

/* =========================================================
   Feature art / gallery
   ========================================================= */
.feature-art-title {
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  white-space: nowrap;
}
.feature-art.section {
  display: flex;
  flex-direction: column;
}
.feature-art img {
  border-radius: 8px;
  border: 1px solid var(--line);
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  object-fit: cover;
}

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

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

/* =========================================================
   Stats — shield bars (100 total, 1 per %)
   ========================================================= */
.stat-bar-block { margin-bottom: 2.25rem; }

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

.progress-bar {
  position: relative;
  height: 26px;
  margin-bottom: 0.6rem;
}

.progress-bar-small {
  height: 13px;
}

.progress-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line);
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--spartan-green);
  width: 0%;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-icon {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  transition: left 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-bar-small .progress-icon {
  width: 13px;
  height: 13px;
}

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

.sub-stat-block {
  margin-top: 1.25rem;
  padding-top: 2.25rem;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pulsechain-logo {
  width: 30%;
  max-width: 130px;
  height: auto;
  flex-shrink: 0;
}

.sub-stat-content {
  flex: 1 1 auto;
  min-width: 0;
}

.sub-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.sub-stat-row span:first-child {
  color: var(--text);
}

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

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

.updating-indicator {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--spartan-green);
  letter-spacing: 0.05em;
}

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

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

.fuel-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  color: var(--gold-bright);
  white-space: nowrap;
}

.fuel-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  white-space: nowrap;
}

/* =========================================================
   Tax breakdown diagram — larger, shield-shaped 100% icon
   ========================================================= */
.tax-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tax-source {
  flex-shrink: 0;
  position: relative;
  width: 130px;
  height: 143px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tax-shield-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tax-source-text {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-bright);
}

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

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

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

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

.tax-label {
  font-weight: 600;
  font-size: 0.75rem;
  margin: 0.2rem 0 0.3rem;
}

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

/* =========================================================
   Connections
   ========================================================= */
.connections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 3.5rem;
}

.connection-block { margin-bottom: 0; }
.connection-block-empty { visibility: hidden; }

.connection-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.connection-banner {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}

/* =========================================================
   Disclaimer / footer
   ========================================================= */
.disclaimer-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.disclaimer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 2.5rem 1.5rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 1080px;
  margin: 0 auto;
}

.footer-sym-link { display: block; flex-shrink: 0; }
.footer-sym-icon { width: 30px; height: 30px; border-radius: 50%; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .two-col-row { grid-template-columns: 1fr; }
  .connections-grid { grid-template-columns: 1fr; }
  .connection-block-empty { display: none; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .gallery-strip { grid-template-columns: 1fr; }
  .tax-diagram { flex-direction: column; align-items: stretch; }
  .tax-branches { flex-direction: column; }
  .tax-branch { width: 100%; }
  .tax-source { margin: 0 auto; }
  .link-list { flex-direction: column; }
  .link-btn { width: 100%; }
  .sub-stat-block { flex-direction: column; align-items: flex-start; }
  .pulsechain-logo { width: 80px; margin: 0 auto 1rem; }
}
