/* CapeDAG Southern Route visual layer.
 * This file intentionally changes presentation only. Existing page content,
 * interactions, and live-data behaviour remain owned by the base styles and JS.
 */

:root {
  --bg: #0a130f;
  --panel: #13241c;
  --panel-high: #172c22;
  --ink: #ede7d3;
  --muted: rgba(237, 231, 211, .66);
  --green: #3c9467;
  --bright-green: #67c690;
  --gold: #d6ae5c;
  --gold-soft: #f3d48a;
  --red: #c15a4a;
  --line: rgba(214, 174, 92, .22);
  --route-line-soft: rgba(237, 231, 211, .10);
  --route-shadow: 0 24px 65px rgba(0, 0, 0, .32);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 82% 2%, rgba(60, 148, 103, .17), transparent 28rem),
    radial-gradient(circle at 10% 28%, rgba(214, 174, 92, .08), transparent 24rem),
    linear-gradient(180deg, #0a130f 0%, #0b1712 48%, #08100d 100%);
  color: var(--ink);
  font-size: 16px;
  isolation: isolate;
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
}

body::before {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(237, 231, 211, .50), transparent),
    radial-gradient(1px 1px at 27% 76%, rgba(243, 212, 138, .45), transparent),
    radial-gradient(1.5px 1.5px at 44% 32%, rgba(237, 231, 211, .40), transparent),
    radial-gradient(1px 1px at 59% 84%, rgba(103, 198, 144, .38), transparent),
    radial-gradient(1.5px 1.5px at 72% 58%, rgba(237, 231, 211, .36), transparent),
    radial-gradient(1px 1px at 82% 8%, rgba(243, 212, 138, .42), transparent),
    radial-gradient(1.5px 1.5px at 92% 44%, rgba(237, 231, 211, .36), transparent);
  content: "";
  inset: 0;
  opacity: .7;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(214, 174, 92, .30);
  color: var(--ink);
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.018em;
}

p,
.state-message {
  color: var(--muted);
}

.hero,
main,
footer {
  width: min(1120px, calc(100% - 56px));
}

.hero {
  isolation: isolate;
  min-height: 680px;
  overflow: clip;
  padding-top: 18px;
  position: relative;
}

.hero-nav,
.wallet-header {
  align-items: center;
  background: rgba(10, 19, 15, .83);
  backdrop-filter: blur(16px);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  padding: 10px 12px;
  position: relative;
  z-index: 10;
}

.brand {
  font-size: 1.16rem;
  font-weight: 700;
  gap: 9px;
  letter-spacing: -.01em;
}

.mark {
  background: linear-gradient(145deg, #24563e, #153426);
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(214, 174, 92, .18), inset 0 1px rgba(255, 255, 255, .10);
  color: var(--gold-soft);
  height: 34px;
  width: 34px;
}

.nav-actions {
  gap: 3px;
}

.nav-actions > a,
.back-link {
  background: transparent;
  border-color: transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
  padding: 8px 11px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.nav-actions > a:hover,
.nav-actions > a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  background: rgba(214, 174, 92, .09);
  border-color: var(--line);
  color: var(--gold-soft);
}

.eyebrow {
  align-items: center;
  color: var(--gold);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: .18em;
}

.eyebrow::before {
  background: var(--gold);
  content: "";
  display: inline-block;
  height: 1px;
  width: 18px;
}

.hero-copy {
  padding-top: 120px;
}

.hero-copy h1,
.wallet-intro h1 {
  font-weight: 650;
  letter-spacing: -.045em;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 7.4vw, 6.3rem);
  line-height: .94;
  text-shadow: 0 18px 45px rgba(0, 0, 0, .36);
}

.hero-copy > p:last-child,
.wallet-intro > p:last-child {
  color: rgba(237, 231, 211, .76);
  line-height: 1.65;
}

.hero-art,
.community-hero-art {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  pointer-events: none;
}

.hero-art {
  bottom: -80px;
  height: auto;
  left: 18%;
  right: -10%;
  top: 54px;
  width: auto;
}

.hero-art::after {
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 2.5%, transparent 97.5%, var(--bg) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 2.5%, transparent 97.5%, var(--bg) 100%);
  display: block;
  pointer-events: none;
}

.hero-art img {
  filter: none;
  object-position: 58% center;
  opacity: 1;
}

.pill,
.live-status,
.community-hero-meta span {
  background: rgba(15, 28, 22, .88);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.section-heading,
.connect,
.community-section-intro {
  border-top: 0;
  position: relative;
}

.section-heading::before,
.connect::before,
.community-section-intro::before {
  background: linear-gradient(90deg, transparent, rgba(214, 174, 92, .52), transparent);
  content: "";
  height: 1px;
  left: 0;
  opacity: .38;
  position: absolute;
  top: -1px;
  width: 100%;
}

.metrics,
.charts {
  gap: 16px;
}

.metrics article,
.setup,
.chart-panel,
.landing-callout,
.system-status,
.wallet-step,
.community-question-item,
.request-item,
.request-frame,
.sitemap-group,
.network-field {
  backdrop-filter: blur(10px);
  background: linear-gradient(145deg, rgba(28, 52, 41, .72), rgba(12, 26, 20, .54));
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 70px -42px rgba(0, 0, 0, .9), inset 0 1px rgba(255, 255, 255, .045);
}

.metrics article {
  border-top: 0;
}

.metrics article:hover,
.chart-panel:hover,
.wallet-step:hover,
.landing-callout:hover {
  background: linear-gradient(145deg, rgba(31, 58, 46, .78), rgba(14, 31, 24, .58));
  transform: translateY(-2px);
}

.metrics strong,
.gold-emphasis,
code {
  color: var(--gold-soft);
}

.chart-panel canvas {
  filter: saturate(.88);
}

.landing-callout {
  border-top-color: var(--gold);
  padding: clamp(30px, 5vw, 58px);
}

.primary-action,
.copy-button,
.stratum-copy-button,
.community-request-submit-row button,
.request-download {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border: 1px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 13px 34px rgba(214, 174, 92, .18);
  color: #132018;
  font-weight: 750;
}

.primary-action:hover,
.primary-action:focus-visible,
.copy-button:hover,
.copy-button:focus-visible,
.stratum-copy-button:hover,
.stratum-copy-button:focus-visible,
.community-request-submit-row button:hover,
.community-request-submit-row button:focus-visible,
.request-download:hover,
.request-download:focus-visible {
  background: #f8dfa3;
  border-color: var(--gold-soft);
  color: #0a130f;
}

.wallet-page {
  max-width: 1120px;
  padding-top: 18px;
}

.wallet-intro {
  max-width: 820px;
  padding: 74px 0 40px;
}

.wallet-intro h1 {
  font-size: clamp(2.7rem, 6.7vw, 5.6rem);
  line-height: .96;
}

.wallet-add-action {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.wallet-add-button {
  cursor: pointer;
  font: inherit;
  padding: 12px 18px;
}

.wallet-add-button:disabled {
  cursor: wait;
  opacity: .7;
}

.wallet-add-status {
  color: var(--muted);
  flex: 1 0 100%;
  margin: 0;
  min-height: 1.4em;
}

.wallet-add-status[data-state="success"] {
  color: var(--bright-green);
}

.wallet-add-status[data-state="error"] {
  color: var(--red);
}

.wallet-step {
  padding: 24px;
}

.wallet-step::before {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.community-page {
  max-width: 1120px;
}

.community-hero {
  display: block;
  isolation: isolate;
  max-width: none;
  min-height: 440px;
  overflow: clip;
  padding: 56px 0 42px;
  position: relative;
}

.community-hero-copy {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.community-hero h1 {
  font-size: clamp(2.8rem, 6.7vw, 5.6rem);
  font-weight: 650;
}

.community-hero-art {
  background: transparent;
  bottom: -20%;
  left: 18%;
  min-height: 0;
  position: absolute;
  right: -14%;
  top: -8%;
  z-index: 0;
}

.community-hero-art::before {
  display: none;
}

.community-hero-art::after {
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 2.5%, transparent 97.5%, var(--bg) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 2.5%, transparent 97.5%, var(--bg) 100%);
  border: 0;
  border-radius: 0;
  content: "";
  display: block;
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: none;
  z-index: 1;
}

.hero-constellation-image {
  filter: none;
  object-position: 68% center;
  opacity: 1;
}

.community-links {
  gap: 14px;
}

.community-links .wallet-step {
  border-radius: 18px;
}

.community-links details > summary,
.community-question-title {
  color: var(--ink);
}

.community-links details > summary:hover,
.community-links details > summary:focus-visible,
.summary-hash-link,
.hash-copy-link,
.community-link-list a,
.endpoint-list a,
.request-actions a,
.sitemap-links a {
  color: var(--gold-soft);
}

.community-question-item,
.request-item {
  background: rgba(10, 19, 15, .30);
  box-shadow: none;
}

.network-field,
.request-frame {
  border: 0;
}

.site-footer {
  align-items: center;
  border-top: 0;
  font-size: .88rem;
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
}

.site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(214, 174, 92, .52), transparent);
  content: "";
  height: 1px;
  left: 0;
  opacity: .32;
  position: absolute;
  top: -1px;
  width: 100%;
}

.site-footer {
  position: relative;
}

.site-footer span:first-child,
.site-footer-tagline {
  color: var(--gold-soft);
}

@media (max-width: 900px) {
  .hero {
    min-height: 720px;
  }

  .hero-copy {
    padding-top: 96px;
  }

  .hero-art {
    bottom: -60px;
    left: 14%;
    right: -16%;
    top: 80px;
    width: auto;
  }

  .nav-actions > a {
    padding-inline: 8px;
  }
}

@media (max-width: 760px) {
  .hero,
  main,
  footer {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    min-height: 620px;
  }

  .hero-nav,
  .wallet-header {
    align-items: flex-start;
    border-radius: 10px;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav-actions > a {
    font-size: .77rem;
    padding: 6px 7px;
  }

  .hero-copy {
    padding-top: 70px;
  }

  .hero-art {
    aspect-ratio: auto;
    bottom: -40px;
    height: auto;
    left: -12%;
    margin: 0;
    position: absolute;
    right: -70%;
    top: 80px;
    width: auto;
  }

  .hero-art img {
    object-position: 65% center;
    opacity: 1;
  }

  .hero-art::after {
    background: linear-gradient(0deg, var(--bg) 0%, transparent 36%);
  }

  .wallet-intro {
    padding-top: 56px;
  }

  .community-hero {
    min-height: 420px;
    padding-top: 48px;
  }

  .community-hero-art {
    bottom: -10%;
    left: -20%;
    right: -70%;
    top: 4%;
  }

  .hero-constellation-image {
    object-position: 62% center;
    opacity: 1;
  }

  .metrics article:hover,
  .chart-panel:hover,
  .wallet-step:hover,
  .landing-callout:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero,
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .hero-nav,
  .wallet-header {
    gap: 10px;
  }

  .brand {
    font-size: 1rem;
  }

  .mark {
    height: 31px;
    width: 31px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .wallet-intro h1,
  .community-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .wallet-step,
  .metrics article,
  .setup,
  .chart-panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
