@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Manrope:wght@400;500;700;800&display=swap");

:root {
  --bg-ink: #040308;
  --bg-deep: #0d0b19;
  --bg-panel: rgba(14, 12, 24, 0.88);
  --gold: #c48c51;
  --gold-soft: rgba(196, 140, 81, 0.28);
  --red: #9a1107;
  --red-soft: rgba(154, 17, 7, 0.2);
  --text-main: #f4efe8;
  --text-soft: rgba(244, 239, 232, 0.76);
  --line: rgba(196, 140, 81, 0.24);
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.ecosystem-page {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% -12%, rgba(196, 140, 81, 0.22), transparent 40%),
    radial-gradient(circle at 86% 18%, rgba(154, 17, 7, 0.22), transparent 36%),
    linear-gradient(180deg, #171230 0%, var(--bg-deep) 46%, var(--bg-ink) 100%);
  overflow-x: hidden;
}

body.ecosystem-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 97%, rgba(196, 140, 81, 0.05) 100%),
    radial-gradient(circle at 15% 70%, rgba(196, 140, 81, 0.07), transparent 32%),
    radial-gradient(circle at 88% 62%, rgba(154, 17, 7, 0.08), transparent 34%);
  z-index: 0;
}

a {
  color: inherit;
}

.site-shell,
.topbar {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 3, 8, 0.76);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.path-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.path-nav a {
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-soft);
  border: 1px solid rgba(196, 140, 81, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  transition: color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.path-nav a:hover,
.path-nav a[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(196, 140, 81, 0.2);
}

main.site-shell {
  padding: 20px clamp(16px, 3vw, 40px) 70px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 72px);
  background:
    linear-gradient(130deg, rgba(13, 11, 25, 0.94), rgba(4, 3, 8, 0.78)),
    var(--hero-image, none) center/cover no-repeat;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(196, 140, 81, 0.23), transparent 40%),
    radial-gradient(circle at 78% 80%, rgba(154, 17, 7, 0.2), transparent 36%);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.14;
}

.page-hero p {
  margin: 14px 0 0;
  max-width: 680px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.hero-actions,
.inline-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kicker {
  margin: 0 0 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
}

.section {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
  background: var(--bg-panel);
}

.section h2 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.3rem, 3.7vw, 2.1rem);
  line-height: 1.2;
}

.section > p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card,
.info-card,
.option-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(28, 23, 44, 0.82), rgba(6, 5, 11, 0.88));
  padding: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.card h3,
.info-card h3,
.option-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--gold);
}

.card p,
.info-card p,
.option-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.primary-btn,
.secondary-btn,
.danger-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  border-radius: 999px;
  border: 1px solid rgba(196, 140, 81, 0.45);
  padding: 11px 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.primary-btn {
  background: linear-gradient(95deg, rgba(154, 17, 7, 0.9), rgba(192, 75, 45, 0.95));
  color: var(--text-main);
}

.secondary-btn {
  background: rgba(4, 3, 8, 0.3);
  color: var(--text-main);
}

.danger-btn {
  background: linear-gradient(95deg, #7e130a, #9a1107);
  color: var(--text-main);
  border-color: rgba(154, 17, 7, 0.68);
}

.link-btn {
  min-width: 0;
  font-weight: 700;
  background: transparent;
  border-color: var(--gold-soft);
  color: var(--gold);
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover,
.link-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:hover,
.danger-btn:hover {
  box-shadow: 0 0 20px rgba(154, 17, 7, 0.5);
}

.secondary-btn:hover,
.link-btn:hover {
  box-shadow: 0 0 18px rgba(196, 140, 81, 0.35);
}

.form-wrap {
  margin-top: 16px;
}

form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

label,
legend {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(196, 140, 81, 0.32);
  border-radius: 10px;
  background: rgba(7, 6, 13, 0.84);
  color: var(--text-main);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.92rem;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 1px solid rgba(196, 140, 81, 0.32);
  border-radius: 12px;
  padding: 12px;
  margin: 0;
}

.choice-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.choice-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  color: var(--text-soft);
}

.choice-group input[type="radio"],
.choice-group input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.choice-card {
  position: relative;
  min-height: clamp(280px, 42vw, 480px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(4, 3, 8, 0.14), rgba(4, 3, 8, 0.86)),
    var(--choice-image, none) center/cover no-repeat;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
}

.choice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 45%, rgba(154, 17, 7, 0.18));
}

.choice-inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.choice-inner h2 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.4rem, 3.3vw, 2.4rem);
  line-height: 1.14;
  text-transform: uppercase;
}

.choice-inner p {
  margin: 9px 0 0;
  color: var(--text-soft);
}

.benefit-list,
.needed-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li,
.needed-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 10, 19, 0.74);
}

.benefit-list li::before,
.needed-list li::before {
  content: "\2022";
  color: var(--gold);
  margin-right: 8px;
}

.support-options {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.support-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 10, 20, 0.82);
  padding: 14px;
}

.support-option h3 {
  margin: 0;
  color: var(--gold);
}

.support-option p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.funding-block {
  margin-top: 18px;
}

.funding-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(13, 10, 22, 0.8);
}

.funding-item + .funding-item {
  margin-top: 10px;
}

.funding-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.funding-head h3 {
  margin: 0;
  color: var(--gold);
  font-size: 1rem;
}

.funding-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.meter {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(244, 239, 232, 0.08);
  border: 1px solid rgba(196, 140, 81, 0.2);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(154, 17, 7, 0.92), rgba(196, 140, 81, 0.95));
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.direct-contact {
  margin-top: 16px;
  border-left: 3px solid var(--gold);
  padding: 12px 14px;
  background: rgba(9, 8, 16, 0.8);
  border-radius: 10px;
}

.direct-contact p {
  margin: 0;
  color: var(--text-soft);
}

.direct-contact strong {
  color: var(--text-main);
}

.subtle-note {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-note {
  margin-top: 24px;
  text-align: center;
  color: rgba(244, 239, 232, 0.56);
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .path-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .path-nav {
    gap: 8px;
  }

  .path-nav a {
    font-size: 0.66rem;
    padding: 7px 10px;
  }

  .primary-btn,
  .secondary-btn,
  .danger-btn {
    width: 100%;
  }

  .hero-actions,
  .inline-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .primary-btn,
  .secondary-btn,
  .danger-btn,
  .link-btn,
  .path-nav a {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
