.donation-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  padding-block: clamp(64px, 9vw, 110px) 30px;
}

.donation-hero__copy h1 {
  max-width: none;
  font-size: clamp(3.7rem, 7vw, 6.2rem);
  letter-spacing: -.055em;
}

.donation-hero__copy h1 span {
  color: var(--gold);
  background: linear-gradient(180deg, #fff4b5 0%, #ffd86b 48%, #ff9f4d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.donation-lead {
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.72;
}

.donation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.donation-actions .btn,
.support-card__action .btn { gap: .48rem; }

.privacy-note {
  margin: 1.3rem 0 0;
  color: rgba(215, 197, 221, .78);
  font-size: .9rem;
}

.compute-vault {
  position: relative;
  padding: 4px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--gold) 48%, var(--pink));
  box-shadow: 0 18px 0 rgba(13, 8, 25, .42), 0 28px 75px rgba(13, 8, 25, .36);
}

.compute-vault::before,
.compute-vault::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  background: center / contain no-repeat url('../img/star.png');
  filter: drop-shadow(0 0 14px rgba(255, 216, 107, .8));
  animation: sparkle 1.5s ease-in-out infinite;
}

.compute-vault::before { top: -18px; right: 15%; }
.compute-vault::after { bottom: -13px; left: 12%; animation-delay: .6s; }

.compute-vault__inner {
  position: relative;
  min-height: 425px;
  padding: clamp(1.45rem, 4vw, 2.25rem);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 4%, rgba(114, 215, 255, .24), transparent 17rem),
    linear-gradient(145deg, rgba(52, 34, 86, .98), rgba(24, 16, 42, .98));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .035);
}

.compute-vault__rune {
  position: absolute;
  width: 225px;
  right: -56px;
  top: -45px;
  opacity: .09;
  transform: rotate(13deg);
  filter: saturate(.7);
}

.donation-kicker,
.metric-card > span,
.compute-totals span {
  margin: 0;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.compute-balance {
  position: relative;
  margin-top: .55rem;
  color: var(--text);
  font-size: clamp(3.25rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
  text-shadow: 0 5px 0 var(--shadow);
}

.compute-balance small {
  color: var(--muted);
  font-size: .24em;
  letter-spacing: .04em;
}

.compute-sync {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .7rem;
  color: var(--muted);
  font-size: .82rem;
}

.status-orb {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 2px solid #dfffb9;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(136, 224, 143, .78);
}

.compute-progress__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  color: var(--muted);
  font-size: .82rem;
}

.compute-progress__head strong { color: var(--gold); }

.compute-progress {
  height: 18px;
  margin-top: .65rem;
  padding: 3px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(9, 6, 16, .72);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45);
}

.compute-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--gold));
  box-shadow: 0 0 15px rgba(114, 215, 255, .54);
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

.compute-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-top: 1.6rem;
}

.compute-totals > div {
  padding: 1rem;
  border: 3px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .025);
}

.compute-totals span { color: var(--muted); font-size: .64rem; }
.compute-totals strong { display: block; margin-top: .38rem; color: var(--gold); font-size: 1.45rem; }

.fund-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: .7rem .85rem;
  border: 2px solid rgba(255, 216, 107, .24);
  border-radius: 8px;
  background: rgba(255, 216, 107, .07);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.fund-card-link:hover,
.fund-card-link:focus-visible { border-color: var(--gold); background: rgba(255, 216, 107, .14); outline: none; transform: translateY(-2px); }
.fund-card-link span { font-size: 1.1rem; transition: transform .18s ease; }
.fund-card-link:hover span { transform: translateX(4px); }

.donation-ticker { animation-duration: 32s; }

.donation-section { padding-block: clamp(68px, 9vw, 100px); }
.fund-section { padding-top: 30px; }
.donation-hero[id],
.donation-section[id] { scroll-margin-top: 110px; }

.fund-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.fund-showcase__copy h2 { font-size: clamp(2.4rem, 5vw, 4.15rem); }
.fund-showcase__copy > p:not(.eyebrow) { max-width: 650px; margin: 1rem 0 0; color: var(--muted); line-height: 1.7; }
.fund-showcase__facts { display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.fund-showcase__facts span { padding: .65rem .8rem; border: 2px solid rgba(114, 215, 255, .2); border-radius: 8px; background: rgba(9, 6, 16, .24); color: var(--muted); font-size: .75rem; }
.fund-showcase__facts b { margin-right: .35rem; color: var(--blue); }
.hosting-vault { background: linear-gradient(135deg, var(--green), var(--blue) 48%, var(--gold)); }
.hosting-vault__inner {
  min-height: 425px;
  background:
    radial-gradient(circle at 84% 4%, rgba(136, 224, 143, .19), transparent 17rem),
    linear-gradient(145deg, rgba(42, 40, 79, .98), rgba(22, 20, 45, .98));
}
.hosting-vault__rune { opacity: .075; transform: rotate(-10deg); }
.hosting-balance span { color: var(--text); }
.hosting-orb { border-color: #d8f8ff; background: var(--blue); box-shadow: 0 0 16px rgba(114, 215, 255, .78); }
.hosting-vault .compute-progress span { background: linear-gradient(90deg, var(--green), var(--blue), var(--gold)); }
.hosting-vault .fund-card-link { border-color: rgba(114, 215, 255, .25); background: rgba(114, 215, 255, .07); color: var(--blue); }
.hosting-vault .fund-card-link:hover,
.hosting-vault .fund-card-link:focus-visible { border-color: var(--blue); background: rgba(114, 215, 255, .14); }

.donation-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.donation-section__heading h2 { font-size: clamp(2.5rem, 5vw, 4.35rem); }
.donation-section__heading p { margin-block: 0; }
.donation-section__heading > p { max-width: 510px; color: var(--muted); line-height: 1.65; text-align: right; }

.donation-panel {
  border: 4px solid rgba(255, 216, 107, .25);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(114, 215, 255, .08), transparent 15rem),
    var(--panel-strong);
  box-shadow: 0 12px 0 rgba(13, 8, 25, .34), inset 0 0 0 2px rgba(255, 255, 255, .035);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.metric-card { min-height: 138px; padding: 1.25rem; }
.metric-card > span { color: var(--blue); }
.metric-card > strong { display: block; margin-top: .75rem; color: var(--gold); font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1; }
.metric-card small { display: block; margin-top: .65rem; color: rgba(215, 197, 221, .68); line-height: 1.4; }
.metric-card .mode-wrap { margin-top: .9rem; font-size: 1rem; }

.data-mode {
  display: inline-flex;
  padding: .45rem .7rem;
  border: 2px solid rgba(255, 216, 107, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.data-mode.is-live { color: #cfff9d; border-color: rgba(136, 224, 143, .42); }

.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, .78fr);
  gap: .9rem;
  margin-top: .9rem;
}

.chart-card,
.model-card { padding: clamp(1.15rem, 3vw, 1.5rem); }

.donation-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.donation-panel__heading h3 { font-size: 1.4rem; }
.donation-panel__heading span { color: rgba(215, 197, 221, .62); font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

#chart { display: block; width: 100%; height: 290px; margin-top: 1.1rem; overflow: visible; }
.chart-grid-line { stroke: rgba(255, 255, 255, .085); stroke-width: 1; }
.chart-area { fill: url(#chartGradient); opacity: .52; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 4; filter: drop-shadow(0 0 7px rgba(114, 215, 255, .4)); }
.chart-point { fill: var(--gold); stroke: #201630; stroke-width: 4; }
.chart-axis { fill: rgba(215, 197, 221, .66); font: 11px Georgia, 'Times New Roman', serif; }

.model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem;
  padding-block: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, .07);
}

.model-row:last-child { border-bottom: 0; }
.model-name { overflow: hidden; color: var(--text); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.model-bar { height: 8px; margin-top: .55rem; overflow: hidden; border-radius: 999px; background: rgba(9, 6, 16, .72); }
.model-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--blue), var(--gold)); }
.model-cost { align-self: center; color: var(--gold); font-size: .82rem; font-weight: 900; }
.model-empty { padding-block: 2rem; color: var(--muted); line-height: 1.6; }

.support-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr);
  gap: clamp(1.6rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.4rem);
  overflow: hidden;
  border: 4px solid var(--gold);
  border-radius: 16px;
  background:
    radial-gradient(circle at 87% 24%, rgba(114, 215, 255, .24), transparent 20rem),
    radial-gradient(circle at 10% 100%, rgba(255, 107, 155, .16), transparent 20rem),
    linear-gradient(145deg, rgba(63, 40, 98, .98), rgba(25, 16, 43, .98));
  box-shadow: 0 16px 0 rgba(13, 8, 25, .4), 0 0 50px rgba(255, 216, 107, .14), inset 0 0 0 3px rgba(255, 255, 255, .05);
}

.support-card__sparkles span {
  position: absolute;
  color: var(--gold);
  font-size: 1.5rem;
  text-shadow: 0 0 18px rgba(255, 216, 107, .75);
  animation: donateSparkle 1.7s ease-in-out infinite;
}

.support-card__sparkles span:nth-child(1) { top: 12%; left: 52%; }
.support-card__sparkles span:nth-child(2) { right: 5%; top: 15%; animation-delay: .5s; }
.support-card__sparkles span:nth-child(3) { left: 4%; bottom: 10%; animation-delay: .9s; }
.support-card__copy { grid-column: 1; }
.support-card__copy h2 { font-size: clamp(2.55rem, 5vw, 4.6rem); }
.support-card__copy > p:not(.eyebrow) { max-width: 670px; margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.72; }
.support-assurances { display: grid; gap: .65rem; margin-top: 1.5rem; }
.support-assurances span { display: flex; align-items: center; gap: .65rem; color: var(--text); font-size: .86rem; }
.support-assurances b { display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid rgba(136, 224, 143, .42); border-radius: 50%; background: rgba(136, 224, 143, .1); color: var(--green); font-size: .7rem; }

.support-card__action {
  position: relative;
  grid-column: 2;
  display: grid;
  width: min(440px, 100%);
  justify-self: end;
  gap: 1rem;
  padding: 1.15rem;
  border: 3px solid rgba(255, 255, 255, .11);
  border-radius: 14px;
  background: rgba(12, 8, 25, .58);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .025), 0 14px 34px rgba(9, 6, 18, .28);
  text-align: left;
}

.checkout-heading { display: flex; align-items: center; gap: .9rem; padding-bottom: .9rem; border-bottom: 2px solid rgba(255, 255, 255, .08); }
.support-card__action .checkout-heading img { width: 64px; flex: 0 0 auto; filter: drop-shadow(0 7px 0 rgba(0, 0, 0, .2)); animation: hop 1.6s ease-in-out infinite; }
.checkout-heading div { display: grid; gap: .25rem; }
.checkout-heading span { color: var(--blue); font-size: .64rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.checkout-heading strong { color: var(--text); font-size: 1.15rem; }

.stripe-donation-form { width: 100%; }
.stripe-donation-form[hidden],
#donationFallback[hidden] { display: none !important; }
.stripe-donation-form fieldset {
  display: grid;
  gap: .85rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.checkout-step { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.checkout-step span { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid rgba(114, 215, 255, .35); border-radius: 6px; color: var(--blue); font-size: .68rem; }
.donation-purposes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.donation-purpose { position: relative; display: block; cursor: pointer; }
.donation-purpose input { position: absolute; opacity: 0; pointer-events: none; }
.donation-purpose__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .65rem; height: 100%; padding: .8rem; border: 3px solid rgba(114, 215, 255, .2); border-radius: 10px; background: rgba(9, 6, 16, .56); text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.donation-purpose__card > span { display: grid; gap: .3rem; }
.donation-purpose__icon { display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid rgba(114, 215, 255, .3); border-radius: 7px; color: var(--blue); font-size: .78rem; }
.donation-purpose__check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #32152d; font-size: .6rem; opacity: 0; transform: scale(.65); transition: opacity .18s ease, transform .18s ease; }
.donation-purpose strong { color: var(--text); font-size: .8rem; }
.donation-purpose small { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.donation-purpose:hover .donation-purpose__card,
.donation-purpose:focus-within .donation-purpose__card,
.donation-purpose.is-selected .donation-purpose__card { border-color: var(--gold); background: rgba(255, 216, 107, .12); transform: translateY(-2px); }
.donation-purpose.is-selected strong { color: var(--gold); }
.donation-purpose.is-selected .donation-purpose__check { opacity: 1; transform: scale(1); }
.support-card[data-purpose="ai"] .donation-purpose.is-selected .donation-purpose__card { border-color: var(--blue); background: rgba(114, 215, 255, .11); }
.support-card[data-purpose="ai"] .donation-purpose.is-selected strong { color: var(--blue); }
.support-card[data-purpose="ai"] .donation-purpose.is-selected .donation-purpose__check { background: var(--blue); }
.donation-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.donation-amount {
  min-height: 44px;
  padding: .55rem .4rem;
  border: 3px solid rgba(255, 216, 107, .28);
  border-radius: 9px;
  background: rgba(19, 13, 38, .64);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.donation-amount:hover,
.donation-amount:focus-visible,
.donation-amount.is-selected {
  border-color: var(--gold);
  background: rgba(255, 216, 107, .14);
  color: var(--gold);
  outline: none;
  transform: translateY(-2px);
}
.custom-amount { display: grid; gap: .42rem; color: var(--muted); font-size: .78rem; font-weight: 900; text-align: left; }
.custom-amount__control {
  display: flex;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 3px solid rgba(114, 215, 255, .32);
  border-radius: 10px;
  background: rgba(9, 6, 16, .68);
  color: var(--gold);
  font-size: 1rem;
}
.custom-amount__control > span { padding-left: .85rem; }
.custom-amount input {
  min-width: 0;
  width: 100%;
  padding: .68rem .85rem .68rem .35rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.custom-amount__control:focus-within { border-color: var(--blue); box-shadow: 0 0 18px rgba(114, 215, 255, .18); }
.stripe-checkout-button { width: 100%; }
.stripe-checkout-button:disabled { cursor: wait; filter: grayscale(.25); opacity: .72; transform: none; }
.checkout-status { min-height: 2.5em; margin: 0; color: rgba(215, 197, 221, .74); font-size: .74rem; line-height: 1.45; text-align: center; }
.checkout-status.is-error { color: #ffb1c7; }
.checkout-status.is-success { color: #cfff9d; }

.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.step-card { padding: 1.5rem; }
.step-card h3 { margin-top: 1.15rem; }
.step-card p { margin: .7rem 0 0; color: var(--muted); line-height: 1.65; }
.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #fff0a8;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  box-shadow: 0 5px 0 #5b2749;
  color: #32152d;
  font-weight: 900;
}

.donation-notice {
  display: none;
  max-width: 650px;
  margin-top: 1rem;
  padding: .8rem 1rem;
  border: 3px solid rgba(255, 216, 107, .42);
  border-radius: 10px;
  background: rgba(24, 16, 42, .88);
  color: var(--gold);
  line-height: 1.5;
}

.donation-notice.is-visible { display: block; }
.donation-notice.is-success { border-color: rgba(136, 224, 143, .58); color: #cfff9d; }
.donation-footer { display: flex; justify-content: center; gap: .5rem 1.25rem; flex-wrap: wrap; }
.donation-footer p { margin: 0; }
.donation-footer a { color: var(--gold); }

@media (max-width: 980px) {
  .donation-hero,
  .ledger-grid,
  .support-card,
  .fund-showcase { grid-template-columns: 1fr; }
  .donation-hero { text-align: center; }
  .donation-lead,
  .privacy-note,
  .donation-notice { margin-inline: auto; }
  .donation-actions { justify-content: center; }
  .compute-vault { width: min(620px, 100%); margin-inline: auto; text-align: left; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-card__copy { text-align: center; }
  .support-card__copy > p:not(.eyebrow) { margin-inline: auto; }
  .support-assurances { width: fit-content; margin-inline: auto; text-align: left; }
  .fund-showcase__copy { text-align: center; }
  .fund-showcase__copy > p:not(.eyebrow) { margin-inline: auto; }
  .support-card__copy,
  .support-card__action { grid-column: 1; }
  .support-card__action { justify-self: center; }
}

@media (max-width: 680px) {
  .donation-hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .donation-hero__copy h1 { font-size: clamp(3.25rem, 17vw, 5.3rem); }
  .donation-section__heading { align-items: flex-start; flex-direction: column; }
  .donation-section__heading > p { text-align: left; }
  .metric-grid,
  .steps-grid,
  .compute-totals { grid-template-columns: 1fr; }
  .compute-vault__inner { min-height: 0; padding: 1.35rem; }
  .compute-balance { font-size: clamp(2.6rem, 13vw, 4rem); }
  .donation-panel__heading { align-items: flex-start; flex-direction: column; }
  #chart { height: 230px; }
  .support-card { padding: 1.4rem; }
  .fund-showcase__facts { justify-content: center; }
}

@media (max-width: 580px) {
  .donation-hero[id],
  .donation-section[id] { scroll-margin-top: 180px; }
  .site-header .nav-links a { flex: 1 1 0; min-width: 0; }
  .site-header .nav-links a[href="#usage"],
  .site-header .nav-links a[href="#how"] { display: none; }
}

@media (max-width: 430px) {
  .site-header .nav-links a { flex: 1 1 0; min-width: 0; }
  .donation-hero { min-height: auto; padding-top: 42px; row-gap: 3rem; }
  .donation-hero__copy { min-width: 0; }
  .donation-hero__copy h1 { max-width: 100%; font-size: clamp(3rem, 16vw, 4.2rem); }
  .compute-vault__inner { padding: 1.1rem; }
  .donation-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donation-purposes { grid-template-columns: 1fr; }
}
