@charset "UTF-8";

:root {
  --paper: #0b0d0a;
  --paper-deep: #12160f;
  --ink: #f2f4ec;
  --muted: #a2aa9b;
  --line: rgba(242, 244, 236, 0.17);
  --white: #151812;
  --header: rgba(11, 13, 10, 0.88);
  --card-shadow: rgba(217, 255, 99, 0.18);
  --button-hover: #e4e8dc;
  --accent-text: #bde73f;
  --community-bg: #182012;
  --community-text: #f2f4ec;
  --fixed-black: #11130f;
  --fixed-white: #fffef9;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --paper: #f4f3ed;
  --paper-deep: #e9e8df;
  --ink: #11130f;
  --muted: #62665d;
  --line: rgba(17, 19, 15, 0.18);
  --white: #fffef9;
  --header: rgba(244, 243, 237, 0.9);
  --card-shadow: rgba(17, 19, 15, 1);
  --button-hover: #272b23;
  --accent-text: #537500;
  --community-bg: #e8eed4;
  --community-text: #11130f;
  color-scheme: light;
}

body { transition: background-color 180ms ease, color 180ms ease; }
.site-header { background: var(--header); }
.site-nav a, .hero-lead, .legacy-card > p, .step-content > p:last-child { color: var(--muted); }
.button-primary:hover { background: var(--button-hover); }
.header-cta:hover, .button-secondary:hover { color: #11130f; }
.hero-assurances li::before, .source-links a:hover { color: var(--accent-text); }
.legacy-card { box-shadow: 8px 8px 0 var(--card-shadow); }

h1 span, .community-statement h2 span {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.ticker, .vision, .site-footer { background: var(--fixed-black); color: var(--fixed-white); }
.roadmap-step.is-active { --ink: #11130f; --muted: #4f5a43; --white: #fffef9; color: #11130f; }
.community { background: var(--community-bg); color: var(--community-text); }
.community-statement h2 span { color: var(--community-text); }
.closing { --ink: #11130f; --white: #fffef9; color: #11130f; }
.closing .button-primary:hover { background: #272b23; color: #fffef9; }
.safety-icon, details[open] summary span { color: #11130f; border-color: #11130f; }
.scene-caption { color: #11130f; }
.tag-open { color: #11130f; border-color: #11130f; box-shadow: 3px 3px 0 #11130f; }

:root:not([data-theme="light"]) .coin-scene {
  background: radial-gradient(circle at 50% 42%, #27351a 0%, #151c10 55%, #10150d 100%);
  border-color: rgba(217, 255, 99, 0.45);
}
:root:not([data-theme="light"]) .coin-scene::before { border-color: rgba(217, 255, 99, 0.2); }
:root:not([data-theme="light"]) .network-lines { stroke: rgba(217, 255, 99, 0.28); }
:root:not([data-theme="light"]) .coin-orbit {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 18px rgba(217, 255, 99, 0.22)) drop-shadow(18px 24px 0 rgba(0, 0, 0, 0.3));
}
:root:not([data-theme="light"]) .scene-caption { color: var(--lime); }
:root:not([data-theme="light"]) .brand img { filter: invert(1); }
:root:not([data-theme="light"]) .legacy-mark img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 9px rgba(217, 255, 99, 0.16));
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 82px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 180ms, color 180ms, transform 180ms;
}
.theme-toggle:hover { background: var(--lime); color: #11130f; transform: translateY(-1px); }
.theme-icon { font-size: 17px; line-height: 1; }
.theme-label { min-width: 30px; }

@media (max-width: 1080px) {
  .header-inner { gap: 24px; }
}

@media (max-width: 780px) {
  .theme-toggle { margin-left: auto; min-width: 44px; padding-inline: 10px; }
  .theme-label { display: none; }
  .menu-toggle { margin-left: 0; }
  .legacy-card { box-shadow: 5px 5px 0 var(--card-shadow); }
}

@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .theme-toggle { width: 42px; height: 42px; min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}
