/* Shared styles for the sub-pages (alliance landing pages and legal pages).
   The poll page keeps its own inline CSS so its first paint needs no extra
   round trip. */

:root {
  --bg: #06080d;
  --card-bg: rgba(15, 21, 34, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --brand-color: var(--accent);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  padding: 2.5rem 1rem 1.5rem;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.13), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.07), transparent 45%);
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; }

.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em;
}
.wordmark img { width: 30px; height: 30px; border-radius: 9px; }

.back { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.back:hover { color: var(--accent); }

.badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--brand-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-color) 30%, transparent);
  color: var(--brand-color);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}

h1 {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 0.85rem;
}
h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin: 2.5rem 0 0.85rem; }
h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }

.lede { font-size: 1.1rem; color: #e2e8f0; margin-bottom: 1.25rem; }
p { color: var(--muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }

.hero-logo {
  width: 76px; height: 76px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-color); margin-bottom: 1.5rem;
}
.hero-logo svg { width: 42px; height: 42px; fill: currentColor; }

.stat-card {
  background: var(--card-bg); backdrop-filter: blur(14px);
  border: 1px solid var(--card-border); border-radius: 18px;
  padding: 1.75rem; margin: 2rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.stat-label { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.35rem; }
.stat-value { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--brand-color); }
.stat-sub { color: var(--muted); font-size: 0.9rem; }

.cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brand-color); color: #06080d;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  padding: 0.95rem 1.6rem; border-radius: 11px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--brand-color); }
.cta svg { width: 18px; height: 18px; fill: currentColor; }

ul.strengths { list-style: none; display: grid; gap: 0.75rem; margin: 1.25rem 0; }
ul.strengths li { display: flex; gap: 0.75rem; color: var(--muted); }
ul.strengths li::before { content: '▸'; color: var(--brand-color); font-weight: 800; flex-shrink: 0; }

.rivals { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.rivals a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px; padding: 0.55rem 0.9rem;
  color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s ease;
}
.rivals a:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.rivals svg { width: 16px; height: 16px; fill: currentColor; }

.legal { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; padding: 2rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { color: var(--muted); margin: 0 0 1rem 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 2rem; }

footer {
  max-width: 760px; margin: 4rem auto 0; padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center; color: var(--muted); font-size: 0.85rem;
}
.footer-links { margin-top: 0.75rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  h1 { font-size: 1.95rem; }
  .stat-card { padding: 1.35rem; }
  body { padding-top: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
