/* ============================================
   GLADIUS · $GLAD · gladiustoken.com
   Main Stylesheet
   ============================================ */

/* Fonts: Cinzel (display/headings), EB Garamond (body) */

:root {
  --gold:       #D4A853;
  --gold-light: #E8C882;
  --gold-dark:  #8B7355;
  --bronze:     #CD7F32;
  --bg:         #1A1712;
  --bg-2:       #221E18;
  --bg-3:       #2A2420;
  --bg-4:       #332D26;
  --text:       #F0E8D8;
  --text-muted: #9A8E7A;
  --text-dim:   #6A6058;
  --border:     rgba(212, 168, 83, 0.18);
  --border-mid: rgba(212, 168, 83, 0.32);
  --radius:     4px;
  --radius-lg:  8px;
  --transition: 0.25s ease;
  --max-width:  1100px;
  --narrow:     720px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ============ UTILITIES ============ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--narrow);
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  font-style: italic;
}

.section-body {
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.section-epigraph {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.section-callout {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  text-align: center;
  margin-top: 2.5rem;
  letter-spacing: 0.04em;
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 64px;
  background: rgba(26, 23, 18, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-icon { width: 32px; height: 32px; object-fit: contain; }

.nav-wordmark {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin-left: auto;
}

.nav-link {
  display: block;
  padding: 0.4rem 1rem;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--gold); }

.nav-cta {
  margin-left: 1rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: rgba(212, 168, 83, 0.12);
  border-color: var(--gold);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(139, 115, 85, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease both;
}

.hero-motto {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fadeIn 0.8s 0.2s ease both;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeIn 0.8s 0.5s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 0.8s 0.7s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
}

.btn-ghost:hover {
  background: rgba(212, 168, 83, 0.1);
  border-color: var(--gold);
}

.btn-full { width: 100%; text-align: center; }

/* ============ PAGE HERO (inner pages) ============ */

.page-hero {
  padding: 9rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.7;
}

/* ============ MANIFESTO ============ */

.manifesto { text-align: center; }
.manifesto .section-body { max-width: 600px; margin: 0 auto 1rem; }

/* ============ PILLARS ============ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}

.pillar-card:hover { border-color: var(--border-mid); }

.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}

.pillar-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.pillar-arts {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.pillar-desc { font-size: 0.92rem; color: var(--text-muted); }

/* ============ HOW IT WORKS ============ */

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  text-align: center;
}

.step-num {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.step-desc { font-size: 0.92rem; color: var(--text-muted); }

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  flex-shrink: 0;
}

/* ============ TOKEN SNAPSHOT ============ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
}

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

.token-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.token-link {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.token-link:hover { color: var(--gold); border-color: var(--gold-dark); }

/* ============ CTA SECTION ============ */

.cta-section { text-align: center; }

.cta-quote {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ DIGNITAS PAGE ============ */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.principle-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.principle-icon {
  font-size: 2rem;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 1rem;
}

.principle-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.principle-desc { font-size: 0.9rem; color: var(--text-muted); }

.categories-table {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.category-row {
  display: grid;
  grid-template-columns: 160px 160px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background var(--transition);
}

.category-row:last-child { border-bottom: none; }
.category-row:hover { background: rgba(212, 168, 83, 0.04); }

.category-name {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.category-arts {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

.category-desc { font-size: 0.9rem; color: var(--text-muted); }

.bands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.band-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  border: 1px solid;
}

.band-range {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.band-name {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.band-desc { font-size: 0.82rem; }

.band-exemplary { background: rgba(100, 180, 100, 0.08); border-color: rgba(100, 180, 100, 0.3); }
.band-exemplary .band-range, .band-exemplary .band-name { color: #7BC67A; }
.band-exemplary .band-desc { color: #5A9A58; }

.band-good { background: rgba(150, 200, 120, 0.06); border-color: rgba(150, 200, 120, 0.25); }
.band-good .band-range, .band-good .band-name { color: #9EC87A; }
.band-good .band-desc { color: #6A9A50; }

.band-adequate { background: rgba(212, 168, 83, 0.08); border-color: var(--border); }
.band-adequate .band-range, .band-adequate .band-name { color: var(--gold); }
.band-adequate .band-desc { color: var(--text-dim); }

.band-marginal { background: rgba(200, 140, 60, 0.08); border-color: rgba(200, 140, 60, 0.25); }
.band-marginal .band-range, .band-marginal .band-name { color: #C8823C; }
.band-marginal .band-desc { color: #9A6030; }

.band-failing { background: rgba(180, 60, 60, 0.08); border-color: rgba(180, 60, 60, 0.25); }
.band-failing .band-range, .band-failing .band-name { color: #B45050; }
.band-failing .band-desc { color: #8A3838; }

.potestas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.potestas-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.potestas-level {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.potestas-mult {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.potestas-desc { font-size: 0.88rem; color: var(--text-muted); }

.potestas-note {
  text-align: center;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 2rem;
  font-size: 0.92rem;
}

.sanctions-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.sanction {
  flex: 1;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
}

.sanction-roman {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 0.75rem;
}

.sanction-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.sanction-desc { font-size: 0.9rem; color: var(--text-muted); }

.sanction-divider {
  font-size: 1.5rem;
  color: var(--text-dim);
  margin-top: 2rem;
  flex-shrink: 0;
}

.api-section { text-align: center; }

.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.api-endpoint {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition);
  text-align: left;
}

.api-endpoint:hover { border-color: var(--border-mid); }

.api-method {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  background: rgba(212, 168, 83, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.api-path {
  font-family: monospace;
  font-size: 0.92rem;
  color: var(--text);
  flex: 1;
}

.api-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ============ CIVITAS PAGE ============ */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tier-card {
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid;
}

.tier-standard { background: rgba(212, 168, 83, 0.05); border-color: var(--border); }
.tier-bonus    { background: rgba(212, 168, 83, 0.08); border-color: rgba(212, 168, 83, 0.3); }
.tier-optimus  { background: rgba(212, 168, 83, 0.1);  border-color: rgba(212, 168, 83, 0.4); }
.tier-perpetuus { background: rgba(200, 220, 240, 0.06); border-color: rgba(180, 200, 220, 0.3); }

.tier-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.tier-perpetuus .tier-badge { color: #B8D4E8; }

.tier-desc { font-size: 0.9rem; color: var(--text-muted); }

/* ============ FORM ============ */

.civitas-form { margin-top: 2rem; }

.form-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.form-legend {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding: 0 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-required { color: var(--gold-dark); }

.form-input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus { border-color: var(--gold-dark); }
.form-input::placeholder { color: var(--text-dim); }

.form-select { cursor: pointer; appearance: none; }
.form-select option { background: var(--bg-3); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-group { margin-bottom: 1.25rem; }

.form-actions { text-align: center; margin-top: 1rem; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 1rem;
  font-style: italic;
}

.form-success {
  margin-top: 2rem;
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(100, 180, 100, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(100, 180, 100, 0.06);
}

.form-success-icon {
  display: block;
  font-size: 2rem;
  color: #7BC67A;
  margin-bottom: 0.75rem;
}

.form-success h3 {
  font-family: 'Cinzel', serif;
  color: #7BC67A;
  margin-bottom: 0.5rem;
}

.form-success p { color: var(--text-muted); }

.form-error {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(180, 60, 60, 0.3);
  border-radius: var(--radius);
  background: rgba(180, 60, 60, 0.06);
  color: #B45050;
  font-size: 0.9rem;
}

.form-error a { color: var(--gold); }

/* ============ TOKEN PAGE ============ */

.token-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}

.token-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.token-detail:nth-child(even) { border-right: none; }
.token-detail:nth-last-child(-n+2) { border-bottom: none; }

.td-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.td-value { font-size: 0.95rem; color: var(--text); }
.mono { font-family: monospace; font-size: 0.88rem; }

.dist-chart { margin-top: 3rem; }

.dist-bars { display: flex; flex-direction: column; gap: 0.75rem; }

.dist-bar { display: flex; flex-direction: column; gap: 0.4rem; }

.dist-fill {
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  position: relative;
  animation: growBar 1s ease both;
}

.dist-fill-2 { background: var(--gold-dark); }
.dist-fill-3 { background: var(--bronze); }
.dist-fill-4 { background: var(--text-dim); }

.dist-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dist-name { font-size: 0.9rem; color: var(--text); }
.dist-pct  { font-size: 0.82rem; color: var(--text-dim); text-align: right; }

.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.utility-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.utility-icon { font-size: 1.6rem; }

.utility-name {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.utility-desc { font-size: 0.9rem; color: var(--text-muted); flex: 1; }

.utility-status {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.status-live { background: rgba(100, 180, 100, 0.12); color: #7BC67A; }
.status-phase2 { background: rgba(212, 168, 83, 0.12); color: var(--gold-dark); }

.thresholds-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}

.threshold-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background var(--transition);
}

.threshold-row:hover:not(.threshold-header) { background: rgba(212, 168, 83, 0.04); }
.threshold-row:last-child { border-bottom: none; }

.threshold-header {
  background: var(--bg-3);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.threshold-val {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}

.threshold-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 1rem;
  text-align: center;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  position: relative;
  transition: border-color var(--transition);
}

.link-card:hover { border-color: var(--border-mid); }

.link-card-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.link-card-desc { font-size: 0.85rem; color: var(--text-muted); }

.link-card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.disclaimer {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-icon { width: 28px; height: 28px; object-fit: contain; opacity: 0.7; }

.footer-wordmark {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
}

.footer-motto {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover { color: var(--gold); }

.footer-legal {
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.6;
}

/* ============ ANIMATIONS ============ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes growBar {
  from { width: 0 !important; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0 1.5rem;
    z-index: 99;
  }
  .nav-burger { display: block; }
  .nav-cta { display: none; }

  .steps-row, .sanctions-row { flex-direction: column; }
  .step-arrow, .sanction-divider { transform: rotate(90deg); align-self: center; }

  .category-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .category-arts { margin-bottom: 0.25rem; }

  .form-row { grid-template-columns: 1fr; }

  .token-detail:nth-child(even) { border-right: 1px solid var(--border); }
  .token-detail:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .token-detail:last-child { border-bottom: none; }

  .threshold-row { grid-template-columns: 1fr; }
  .threshold-val { text-align: left; }
}
