:root {
  --bg: #020705;
  --bg-deep: #04361d;
  --green: #ccff00;
  --green-bright: #ccff00;
  --green-glow: #79f1a8;
  --ivory: #f3eed9;
  --muted: #c7d5c6;
  --panel: rgba(4, 19, 11, 0.78);
  --panel-strong: rgba(3, 11, 8, 0.9);
  --line: rgba(121, 241, 168, 0.18);
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #031008 0%, #020705 100%);
  color: var(--ivory);
  font-family: "Archivo Black", "Inter", "Arial Black", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.scene-page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at top, rgba(48, 181, 102, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(4, 19, 11, 0.94), rgba(2, 7, 5, 1));
}

.scene-page::before,
.scene-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-page::before {
  background:
    linear-gradient(90deg, rgba(48, 181, 102, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(48, 181, 102, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.scene-page::after {
  background: radial-gradient(circle at center, transparent 62%, rgba(0, 0, 0, 0.24) 100%);
}

.site-dimmer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.3) 34%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.18));
  transition: opacity 180ms ease;
}

.site-dimmed .site-dimmer-overlay {
  opacity: 1;
}

.site-dimmer-toggle {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 5;
  border: 1px solid rgba(2, 14, 7, 0.16);
  border-radius: 50%;
  background: rgba(204, 255, 0, 0.08);
  color: #020705;
  width: 42px;
  height: 42px;
  padding: 0;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(2px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.site-dimmer-toggle:hover {
  transform: translateY(-1px);
  background: rgba(204, 255, 0, 0.18);
  border-color: rgba(2, 14, 7, 0.28);
}

.site-dimmer-toggle[aria-pressed="false"] {
  opacity: 0.68;
}

.site-dimmer-toggle[aria-pressed="true"] {
  background: rgba(2, 7, 5, 0.12);
  border-color: rgba(2, 14, 7, 0.24);
  opacity: 0.9;
}

.dimmer-bulb {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 17px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 50% 50% 44% 44%;
  color: #020705;
}

.dimmer-bulb::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -5px;
  height: 5px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.dimmer-bulb::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.city-scene,
.manor-scene,
.tracker-scene,
.bureau-scene {
  background:
    linear-gradient(180deg, rgba(204, 255, 0, 0.02) 0%, rgba(1, 7, 4, 0.04) 100%),
    url("strategy-header-no-word-4k.png?v=20260813-no-strategy-word") left bottom / cover no-repeat,
    #ccff00;
}

.city-scene .scene-illustration,
.manor-scene .scene-illustration,
.tracker-scene .scene-illustration,
.bureau-scene .scene-illustration {
  display: none;
}

.scene-illustration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-illustration::before,
.scene-illustration::after {
  content: "";
  position: absolute;
}

.city-scene .hero-copy {
  background: rgba(204, 255, 0, 0.18);
  border-color: rgba(204, 255, 0, 0.08);
  box-shadow: none;
  backdrop-filter: none;
}

.city-scene .scene-illustration::before {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(121, 241, 168, 0.08) 45px, transparent 47px),
    repeating-linear-gradient(180deg, transparent 0 88px, rgba(121, 241, 168, 0.035) 89px, transparent 92px);
  opacity: 0.34;
  filter: blur(0.3px);
  animation: matrix-code-fall 9s linear infinite;
  clip-path: none;
}

.city-scene .scene-illustration::after {
  inset: 0;
  background:
    radial-gradient(circle at 69% 25%, rgba(121, 241, 168, 0.18), transparent 8%),
    radial-gradient(circle at 82% 22%, rgba(121, 241, 168, 0.12), transparent 11%),
    linear-gradient(180deg, transparent, rgba(2, 7, 5, 0.52));
  animation: skyline-glow 5.5s ease-in-out infinite;
}

.manor-scene .scene-illustration::before {
  left: 14%;
  right: 14%;
  bottom: 10%;
  height: 55%;
  background:
    linear-gradient(180deg, rgba(121, 241, 168, 0.12), rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, transparent 0 18%, rgba(121, 241, 168, 0.15) 18% 19%, transparent 19% 31%, rgba(121, 241, 168, 0.12) 31% 32%, transparent 32% 50%, rgba(121, 241, 168, 0.14) 50% 51%, transparent 51% 68%, rgba(121, 241, 168, 0.12) 68% 69%, transparent 69% 82%, rgba(121, 241, 168, 0.15) 82% 83%, transparent 83% 100%);
  clip-path: polygon(0 100%, 0 63%, 10% 54%, 18% 54%, 22% 44%, 32% 44%, 38% 22%, 50% 6%, 62% 22%, 68% 44%, 78% 44%, 82% 54%, 90% 54%, 100% 63%, 100% 100%);
}

.tracker-scene .scene-illustration::before {
  left: 7%;
  right: 7%;
  top: 20%;
  bottom: 14%;
  border: 1px solid rgba(121, 241, 168, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(121, 241, 168, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(121, 241, 168, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 26, 17, 0.6), rgba(2, 7, 5, 0.1));
  background-size: 36px 36px, 36px 36px, auto;
  box-shadow: inset 0 0 90px rgba(121, 241, 168, 0.04);
}

.tracker-scene .scene-illustration::after {
  left: 10%;
  right: 10%;
  top: 44%;
  height: 18%;
  background:
    linear-gradient(90deg,
      rgba(121, 241, 168, 0.12) 0%,
      rgba(121, 241, 168, 0.35) 8%,
      rgba(121, 241, 168, 0.08) 17%,
      rgba(121, 241, 168, 0.42) 29%,
      rgba(121, 241, 168, 0.16) 39%,
      rgba(121, 241, 168, 0.55) 48%,
      rgba(121, 241, 168, 0.22) 58%,
      rgba(121, 241, 168, 0.34) 68%,
      rgba(121, 241, 168, 0.14) 79%,
      rgba(121, 241, 168, 0.48) 90%,
      rgba(121, 241, 168, 0.08) 100%);
  clip-path: polygon(0 88%, 8% 72%, 14% 76%, 23% 41%, 31% 60%, 39% 34%, 48% 40%, 58% 14%, 68% 26%, 78% 11%, 87% 21%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 16px rgba(121, 241, 168, 0.25));
}

.bureau-scene .scene-illustration::before {
  left: 12%;
  right: 12%;
  bottom: 10%;
  height: 48%;
  background:
    linear-gradient(180deg, rgba(121, 241, 168, 0.08), rgba(0, 0, 0, 0.82)),
    linear-gradient(90deg, transparent 0 12%, rgba(121, 241, 168, 0.12) 12% 12.4%, transparent 12.4% 36%, rgba(121, 241, 168, 0.13) 36% 36.4%, transparent 36.4% 64%, rgba(121, 241, 168, 0.11) 64% 64.4%, transparent 64.4% 88%, rgba(121, 241, 168, 0.12) 88% 88.4%, transparent 88.4% 100%);
  clip-path: polygon(0 100%, 0 38%, 18% 38%, 18% 0, 82% 0, 82% 38%, 100% 38%, 100% 100%);
}

.bureau-scene .scene-illustration::after {
  left: 20%;
  right: 20%;
  top: 24%;
  height: 20%;
  border: 1px solid rgba(121, 241, 168, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 40%, rgba(121, 241, 168, 0.16), transparent 10%),
    radial-gradient(circle at 57% 55%, rgba(121, 241, 168, 0.14), transparent 11%),
    radial-gradient(circle at 78% 25%, rgba(121, 241, 168, 0.18), transparent 9%),
    linear-gradient(180deg, rgba(5, 18, 12, 0.85), rgba(2, 7, 5, 0.25));
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.manor-scene .topbar,
.tracker-scene .topbar,
.bureau-scene .topbar {
  padding-top: 86px;
  justify-content: flex-end;
}

.home-topbar-hidden {
  visibility: hidden;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.brand {
  font-family: "Archivo Black", "Inter", "Arial Black", sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
}

.home-brand-hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #020705;
  font-weight: 800;
}

.nav-links a {
  transition: color 160ms ease, transform 160ms ease;
}

.nav-links a:hover {
  color: #020705;
  transform: translateY(-1px);
}

.hero-wrap,
.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-wrap {
  width: 100%;
  min-height: calc(100vh - 88px);
  min-height: calc(100dvh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 64px;
}

.hero-copy {
  width: min(820px, calc(100vw - 88px));
  max-width: 100%;
  padding: 18px 30px 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(4, 19, 11, 0.54), rgba(3, 11, 8, 0.66));
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(8px);
  animation: fade-up 900ms ease;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-glow);
  text-transform: none;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Archivo Black", "Inter", "Arial Black", sans-serif;
}

.hero-title {
  margin: 0;
  font-family: "Archivo Black", "Inter", "Arial Black", sans-serif;
  font-weight: 400;
  font-size: clamp(2.65rem, 4.65vw, 3.5rem);
  line-height: 0.92;
  text-transform: none;
  letter-spacing: -0.055em;
  color: #020705;
  max-width: 100%;
  margin-inline: auto;
  overflow-wrap: normal;
  white-space: normal;
  min-width: 0;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.hero-logo {
  width: clamp(82px, 7vw, 116px);
  height: clamp(82px, 7vw, 116px);
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-subtitle {
  margin: 0 0 12px;
  font-family: "Archivo Black", "Inter", "Arial Black", sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  color: #020705;
  font-weight: 400;
}

.hero-support {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-inline: auto;
}

.button-row {
  display: flex;
  max-width: 100%;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(2, 14, 7, 0.34);
  background: rgba(204, 255, 0, 0.16);
  color: #020705;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 14, 7, 0.58);
  background: rgba(204, 255, 0, 0.28);
}

.button-primary {
  background: rgba(204, 255, 0, 0.32);
  border-color: rgba(2, 14, 7, 0.48);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(2, 14, 7, 0.28);
  border-radius: 999px;
  background: rgba(204, 255, 0, 0.06);
  color: #020705;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.social-button:hover {
  transform: translateY(-1px);
  background: rgba(204, 255, 0, 0.16);
  border-color: rgba(2, 14, 7, 0.44);
  opacity: 1;
}

.social-icon {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
  opacity: 0.96;
}

.social-icon-plane {
  width: 20px;
  height: 20px;
  opacity: 1;
}

.social-icon-x {
  width: 16px;
  height: 16px;
}

.page-wrap {
  padding: 44px 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 88px);
}

.page-hero {
  width: min(940px, 100%);
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: #020705;
}

.page-hero p {
  margin: 0;
  color: #020705;
  line-height: 1.75;
}

.tracker-scene .page-hero .eyebrow {
  color: #020705;
}

.content-card {
  width: min(940px, 100%);
  max-width: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(4, 19, 11, 0.78), rgba(3, 11, 8, 0.9));
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(8px);
  text-align: center;
  font-family: "Inter", sans-serif;
}

.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: break-word;
}

.content-card strong {
  color: var(--ivory);
}

.content-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: "Cinzel", serif;
  font-size: 1.45rem;
}

.content-card h3 {
  margin-bottom: 8px;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.treasury-holdings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tracker-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.tracker-label {
  margin: 0 0 10px;
  color: var(--green-glow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.tracker-value {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  color: var(--ivory);
}

.tracker-status {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.tracker-note {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--green-glow);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes matrix-code-fall {
  from {
    background-position: 0 -120px, 0 -240px;
  }
  to {
    background-position: 0 320px, 0 160px;
  }
}

@keyframes skyline-glow {
  0%, 100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .tracker-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .hero-copy,
  .page-hero,
  .content-card {
    padding: 24px;
  }

  .hero-copy {
    width: min(100%, calc(100% - 36px));
  }

  .hero-title {
    font-size: 2.65rem;
    line-height: 0.92;
    letter-spacing: -0.055em;
  }

  .hero-title-row {
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .city-scene,
  .manor-scene,
  .tracker-scene,
  .bureau-scene {
    background-size: cover;
    background-position: left bottom;
  }

  .hero-wrap {
    width: 100%;
    overflow-x: hidden;
    padding-inline: 14px;
  }

  .hero-copy {
    width: 100%;
    max-width: 270px;
    min-width: 0;
    overflow: hidden;
    padding: 20px 16px 22px;
    border-radius: 24px;
  }

  .hero-title-row {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: clamp(1.16rem, 5.4vw, 1.38rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  .hero-logo {
    width: 74px;
    height: 74px;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.3;
  }

  .button-row {
    max-width: 250px;
    margin-inline: auto;
    gap: 8px 6px;
    margin-top: 14px;
  }

  .social-row {
    gap: 7px;
    margin-top: 12px;
  }

  .social-button {
    width: 32px;
    height: 28px;
  }

  .content-card {
    padding: 22px;
    border-radius: 22px;
  }

  .topbar {
    width: min(100%, calc(100% - 24px));
    padding-top: 16px;
  }

  .manor-scene .topbar,
  .tracker-scene .topbar,
  .bureau-scene .topbar {
    padding-top: 72px;
  }

  .brand {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    gap: 8px 12px;
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .page-wrap {
    width: 100%;
    min-height: auto;
    padding: 28px 12px 52px;
    justify-content: flex-start;
  }

  .content-card {
    border-radius: 22px;
    text-align: left;
  }

  .page-hero {
    text-align: left;
  }

  .button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .site-dimmer-toggle {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
