:root {
  --bg-top: #0a1f14;
  --bg-bot: #05110b;
  --ink-strong: #f2f8f2;
  --ink: #d3e1d5;
  --ink-soft: #a8bea9;
  --line: rgba(188, 224, 193, 0.22);
  --line-strong: rgba(196, 236, 205, 0.42);
  --glass: rgba(8, 24, 14, 0.56);
  --glass-strong: rgba(7, 22, 13, 0.72);
  --accent: #74d489;
  --accent-strong: #54bf6d;
}

* {
  box-sizing: border-box;
}

a,
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
.nav-social,
.nav-donate,
.cta-primary,
.cta-secondary,
.ca-emoji-btn,
.ca-pill {
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
.nav-social:focus,
.nav-social:focus-visible,
.nav-donate:focus,
.nav-donate:focus-visible,
.cta-primary:focus,
.cta-primary:focus-visible,
.cta-secondary:focus,
.cta-secondary:focus-visible,
.ca-emoji-btn:focus,
.ca-emoji-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

a::selection,
button::selection,
.nav-social::selection,
.nav-donate::selection,
.cta-primary::selection,
.cta-secondary::selection,
.ca-emoji-btn::selection,
.ca-pill::selection {
  background: transparent;
  color: inherit;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink-strong);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(120% 140% at 20% -20%, #1f6038 0%, var(--bg-top) 30%, var(--bg-bot) 76%);
}

.page {
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
}

.topbar {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 72px;
  padding: 0.85rem 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 13, 0.84), rgba(8, 20, 13, 0.56));
  backdrop-filter: blur(8px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-logo {
  display: inline-block;
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
  text-decoration: none;
}

.brand-logo:hover {
  color: #ffffff;
}

.nav-links {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #f0faf1;
}

.nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.nav-social-group {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.nav-social {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(132, 213, 149, 0.5);
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: rgba(9, 30, 18, 0.52);
  color: #d8f7de;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
}

.nav-social:hover {
  color: #ecfff0;
  border-color: rgba(160, 229, 174, 0.8);
  background: rgba(12, 37, 22, 0.72);
}

.nav-social-x {
  width: auto;
  height: 40px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0 0.2rem;
  color: #d8f7de;
  font-size: 1.26rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-social-x:hover {
  border: none;
  background: transparent;
  color: #ecfff0;
}

.nav-social-telegram {
  width: auto;
  height: 40px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

.nav-social-telegram::before {
  content: "";
  width: 21px;
  height: 21px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M21.4 4.6L18.2 20c-.2.9-.8 1.1-1.5.7l-5-3.7-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.3-8.4c.4-.4-.1-.6-.6-.2L6.1 13 1.2 11.5c-.9-.3-.9-.9.2-1.3l19-7.3c.8-.3 1.4.2 1 1.7z'/%3E%3C/svg%3E");
}

.nav-social-telegram:hover {
  background: transparent;
  opacity: 1;
}

.nav-social-telegram {
  margin-right: 0;
}

.is-hidden {
  display: none !important;
}

.nav-donate {
  appearance: none;
  border: 1px solid rgba(132, 213, 149, 0.6);
  background: linear-gradient(180deg, #71cf86, #5dbb73);
  color: #13301d;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.62rem 1.08rem;
  cursor: pointer;
  width: auto;
  justify-self: end;
}

.viz-section {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 66vh, 760px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.viz-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(56% 50% at 50% 12%, rgba(84, 171, 104, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(5, 15, 9, 0.16), rgba(5, 15, 9, 0.36) 56%, rgba(5, 15, 9, 0.62));
  z-index: 1;
}

.scene-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#tree-scene {
  width: 100%;
  height: 100%;
  display: block;
}

.viz-overlay {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.viz-overlay h2 {
  margin: 0.6rem 0 0;
  max-width: 18ch;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.viz-count-inline {
  color: var(--accent);
}

.viz-count-highlight {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  padding: 0.02em 0.2em;
  border-radius: 0.28em;
  color: var(--accent);
  background: rgba(116, 212, 137, 0.12);
  box-shadow: 0 0 18px rgba(116, 212, 137, 0.18);
}

.viz-overlay p {
  margin: 0.9rem 0 0;
  max-width: 60ch;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.25vw, 1.15rem);
  line-height: 1.55;
}

.viz-ca {
  margin-top: 0.8rem;
  display: grid;
  justify-items: center;
  gap: 0.38rem;
}

.viz-ca span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.viz-ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.36rem 0.54rem;
  background: rgba(8, 23, 14, 0.68);
}

.viz-ca-pill code {
  color: #bbf7cb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.viz-counter {
  margin-top: 1rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  background: rgba(8, 23, 14, 0.6);
}

.viz-counter span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.viz-counter strong {
  font-size: 1.42rem;
  font-family: "Sora", "Manrope", sans-serif;
}

.shell {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 2rem));
  margin: 1rem auto 1.2rem;
  display: grid;
  gap: 1rem;
}

.hero {
  min-height: clamp(430px, 62vh, 700px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.1rem, 2.2vw, 2rem);
  display: grid;
  grid-template-columns: 1.2fr minmax(320px, 0.72fr);
  gap: 1rem;
  background: linear-gradient(145deg, rgba(8, 24, 14, 0.58), rgba(8, 24, 14, 0.34));
  backdrop-filter: blur(6px);
}

.hero-copy-block {
  max-width: 760px;
}

.eyebrow {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.ca-wrap {
  margin-top: 0.55rem;
  margin-bottom: 0.8rem;
}

.ca-label {
  margin: 0 0 0.26rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.ca-pill {
  width: 100%;
  max-width: 780px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 19, 11, 0.62);
  color: var(--ink-strong);
  border-radius: 11px;
  padding: 0.65rem 0.74rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ca-pill code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.78rem, 1.1vw, 0.99rem);
  letter-spacing: 0.03em;
  color: #bbf7cb;
  word-break: break-all;
}

.ca-emoji-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 9px;
  min-width: 30px;
  height: 30px;
  padding: 0 0.35rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  line-height: 1;
}

.copy-toast {
  margin: 0.34rem 0 0;
  color: #abebb9;
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.copy-toast.show {
  opacity: 1;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-copy {
  margin: 1rem 0 0;
  color: var(--ink);
  max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

.cta-primary,
.cta-secondary {
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.66rem 1rem;
}

.cta-primary {
  appearance: none;
  border: 1px solid #77d88c;
  background: linear-gradient(180deg, #7ed993, #63bf78);
  color: #12311c;
  cursor: pointer;
}

.cta-secondary {
  border: 1px solid var(--line-strong);
  color: #d4ead8;
  text-decoration: none;
  background: rgba(8, 25, 15, 0.5);
  cursor: pointer;
}

.status-note {
  margin: 0.84rem 0 0;
  color: #c2dfc9;
  font-size: 0.9rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 13, 8, 0.72);
  backdrop-filter: blur(4px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(680px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(7, 22, 13, 0.94), rgba(6, 18, 11, 0.9));
  padding: 1rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.modal-card h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.36rem;
}

.modal-card p {
  margin: 0.68rem 0 0;
  color: var(--ink);
  line-height: 1.5;
}

.modal-vault-wrap {
  margin-top: 0.88rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 24, 14, 0.72);
  padding: 0.74rem;
}

.modal-label {
  margin: 0 0 0.38rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.modal-vault-wrap code {
  color: #bbf7cb;
  font-size: 0.9rem;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.modal-actions {
  margin-top: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
}

.hero-impact {
  align-self: stretch;
  min-height: 100%;
  display: flex;
}

.hero-impact-grid {
  flex: 1;
  min-height: 100%;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.hero-impact-grid div {
  border: 1px solid rgba(189, 232, 198, 0.22);
  border-radius: 10px;
  background: rgba(8, 26, 15, 0.38);
  padding: 0.66rem 0.74rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-impact-grid span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-impact-grid strong {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
}

.hero-impact-grid small {
  display: block;
  margin-top: 0.12rem;
  color: var(--ink);
  font-size: 0.85rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 0.9rem;
}

.how-section {
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.how-section h2 {
  margin: 0;
  text-align: center;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.how-section h2 span {
  color: #24e36b;
}

.how-intro {
  margin: 0.8rem auto 0;
  max-width: 70ch;
  text-align: center;
  color: var(--ink);
  font-size: clamp(0.96rem, 1.25vw, 1.17rem);
  line-height: 1.6;
}

.how-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.how-card {
  border: 1px solid rgba(69, 157, 89, 0.4);
  border-radius: 13px;
  padding: 1rem;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(6, 19, 11, 0.45);
}

.how-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: #5ef28f;
  background: rgba(32, 94, 49, 0.4);
  border: 1px solid rgba(81, 181, 104, 0.42);
}

.how-card h3 {
  margin: 0.78rem 0 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.how-card p {
  margin: 0.72rem 0 0;
  color: var(--ink);
  line-height: 1.55;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--glass), rgba(6, 19, 11, 0.44));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.21);
  backdrop-filter: blur(6px);
}

.panel {
  padding: 0.92rem;
}

.panel-head {
  margin-bottom: 0.68rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.panel-head h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
}

.panel-head small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

#donation-chart {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  border: 1px solid rgba(178, 228, 188, 0.22);
  background: linear-gradient(180deg, rgba(7, 25, 14, 0.74), rgba(4, 15, 9, 0.78));
}

.table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(179, 230, 190, 0.2);
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(132, 213, 149, 0.66) rgba(8, 24, 14, 0.5);
}

.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(8, 24, 14, 0.5);
  border-left: 1px solid rgba(179, 230, 190, 0.14);
}

.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(132, 213, 149, 0.9), rgba(93, 187, 115, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(8, 24, 14, 0.72);
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(145, 224, 162, 0.95), rgba(108, 198, 128, 0.95));
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

th,
td {
  padding: 0.57rem 0.48rem;
  text-align: left;
  border-bottom: 1px solid rgba(158, 215, 170, 0.16);
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(8, 24, 14, 0.96);
}

tbody tr:hover {
  background: rgba(73, 150, 89, 0.18);
}

td code {
  color: #9ae8ad;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

a {
  color: #9de6b0;
  text-decoration: none;
}

a:hover {
  color: #d6f6de;
}

@media (max-width: 1160px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-impact {
    max-width: 560px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  #donation-chart,
  .table-wrap {
    height: auto;
    max-height: 360px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0.72rem 0.7rem;
    min-height: 64px;
  }

  .brand-logo {
    font-size: 1.04rem;
  }

  .nav-donate {
    font-size: 0.74rem;
    padding: 0.54rem 0.72rem;
  }

  .nav-actions {
    gap: 0.8rem;
  }

  .nav-social-group {
    gap: 0.36rem;
  }

  .nav-social {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 0.92rem;
  }

  .nav-social-x {
    width: auto;
    height: 36px;
    border-radius: 0;
    font-size: 1.12rem;
  }

  .nav-social-telegram::before {
    width: 19px;
    height: 19px;
  }

  .nav-social-telegram {
    width: auto;
    height: 36px;
    border-radius: 0;
    margin-left: 0.42rem;
  }

  .nav-social-telegram {
    margin-right: 0;
  }

  .viz-section {
    min-height: 62vh;
  }

  .viz-overlay {
    width: calc(100% - 1rem);
  }

  .viz-overlay h2 {
    font-size: clamp(1.45rem, 8.6vw, 2.3rem);
    max-width: none;
  }

  .viz-overlay p {
    margin-top: 0.68rem;
    font-size: 0.92rem;
  }

  .viz-counter strong {
    font-size: 1.22rem;
  }

  .shell {
    width: calc(100% - 0.8rem);
    margin: 0.55rem auto 0.8rem;
    gap: 0.7rem;
  }

  .hero {
    padding: 0.85rem;
    border-radius: 13px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.65rem, 9vw, 2.5rem);
  }

  .hero-copy {
    margin-top: 0.7rem;
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-wrap: wrap;
    margin-top: 0.74rem;
  }

  .hero-impact {
    padding: 0.68rem;
  }

  .hero-impact-grid strong {
    font-size: 1.65rem;
  }

  .panel {
    padding: 0.66rem;
    border-radius: 13px;
  }

  .how-card {
    min-height: 0;
  }

  .panel-head h2 {
    font-size: 1.04rem;
  }

  #donation-chart,
  .table-wrap {
    max-height: 300px;
  }

  th,
  td {
    font-size: 0.74rem;
    padding: 0.48rem 0.34rem;
  }
}
