:root {
  color-scheme: dark;
  --bg: #080b14;
  --bg-soft: #0d1220;
  --card: rgba(17, 23, 39, 0.82);
  --card-strong: rgba(21, 28, 47, 0.94);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f8fc;
  --muted: #9aa4bd;
  --muted-strong: #c1c9dc;
  --accent: #ff7a45;
  --accent-two: #ff4d6d;
  --accent-soft: rgba(255, 122, 69, 0.16);
  --success: #52d99a;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --font: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 122, 69, 0.09), transparent 32rem),
    radial-gradient(circle at 88% 16%, rgba(104, 89, 255, 0.1), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.34;
  pointer-events: none;
}

.ambient--one {
  top: -14rem;
  left: -12rem;
  background: #ff6a3d;
}

.ambient--two {
  right: -16rem;
  top: 18rem;
  background: #6d5cff;
  opacity: 0.2;
}

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.brand__name {
  font-size: 1.05rem;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 650;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.topbar__link:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  max-width: 800px;
  padding: 78px 0 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(82, 217, 154, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.gradient-text {
  background: linear-gradient(115deg, #ffb36b 8%, var(--accent) 42%, var(--accent-two) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
}

.goal-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 122, 69, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(26, 33, 55, 0.92), rgba(13, 18, 32, 0.9));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.goal-card::before {
  position: absolute;
  top: -12rem;
  right: -8rem;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.16), transparent 68%);
  content: "";
  pointer-events: none;
}

.goal-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.goal-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.live-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(82, 217, 154, 0.22);
  border-radius: 999px;
  background: rgba(82, 217, 154, 0.08);
  color: #a8f4ce;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.live-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  animation: pulse 2.4s ease-in-out infinite;
}

.live-pill.is-reached {
  border-color: rgba(82, 217, 154, 0.36);
  background: rgba(82, 217, 154, 0.14);
}

.live-pill.is-offline {
  border-color: rgba(255, 122, 69, 0.3);
  background: rgba(255, 122, 69, 0.1);
  color: #ffc0a5;
}

.live-pill.is-offline .live-pill__dot {
  background: var(--accent);
  animation: none;
}

.amount-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 30px;
}

.amount-row strong {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.amount-row > span {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.progress {
  position: relative;
  overflow: hidden;
  height: 16px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

.progress__fill {
  position: relative;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb36b, var(--accent) 46%, var(--accent-two));
  box-shadow: 0 0 22px rgba(255, 106, 61, 0.42);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress__fill::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 3.8s ease-in-out infinite;
}

.goal-card.is-reached .progress__fill {
  background: linear-gradient(90deg, #39d98a, #8ef0b8);
  box-shadow: 0 0 22px rgba(82, 217, 154, 0.36);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 0.83rem;
  font-weight: 600;
}

.meta-row__sep {
  color: rgba(255, 255, 255, 0.25);
}

.meta-row__updated {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
}

.goal-note {
  margin: 26px 0 0;
  padding: 14px 16px;
  border-left: 2px solid rgba(255, 122, 69, 0.55);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.topbar__link:focus-visible,
.brand:focus-visible {
  outline: 2px solid #ffb36b;
  outline-offset: 3px;
}

.button--primary {
  background: linear-gradient(135deg, #ff9a5c, var(--accent) 44%, var(--accent-two));
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.22);
  color: #1b0b08;
}

.button--primary:hover {
  box-shadow: 0 16px 38px rgba(255, 77, 109, 0.32);
}

.button--secondary,
.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.button--secondary:hover,
.button--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.button__icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.88rem;
}

.button--secondary .button__icon {
  background: rgba(255, 255, 255, 0.07);
}

.button__arrow {
  margin-left: auto;
  font-size: 1rem;
  opacity: 0.7;
}

.fineprint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

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

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  backdrop-filter: blur(18px);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.panel__tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cost-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.cost-list li:last-child {
  border-bottom: 0;
}

.cost-list li span:last-child {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel__note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.supporters {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.supporter {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.supporter:last-child {
  border-bottom: 0;
}

.supporter__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 122, 69, 0.2), rgba(109, 92, 255, 0.16));
  color: #ffd4bf;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.supporter__body {
  min-width: 0;
}

.supporter__name {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supporter__meta {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.69rem;
}

.supporter__message {
  margin: 5px 0 0;
  color: var(--muted-strong);
  font-size: 0.76rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.supporter__amount {
  align-self: start;
  padding-top: 2px;
  color: #ffd0b9;
  font-size: 0.73rem;
  font-weight: 750;
  white-space: nowrap;
}

.empty {
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.install-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(110deg, rgba(255, 122, 69, 0.08), transparent 55%),
    var(--card);
}

.install-card h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: -0.03em;
}

.install-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.install-card code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffd0b9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
}

.install-card .button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 11px 16px;
}

.footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.74rem;
}

.footer p {
  margin: 3px 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 122, 69, 0.28);
  border-radius: 12px;
  background: rgba(28, 19, 22, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  color: #ffd0b9;
  font-size: 0.8rem;
  backdrop-filter: blur(14px);
}

.toast[hidden] {
  display: none;
}

.noscript {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

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

@keyframes shimmer {
  0%, 55% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 800px) {
  .hero {
    padding-top: 54px;
  }

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

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

  .install-card .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .topbar,
  .page,
  .footer,
  .noscript {
    width: min(100% - 32px, 1120px);
  }

  .topbar {
    padding-top: 20px;
  }

  .hero {
    padding: 44px 0 32px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 15vw, 3.8rem);
  }

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

  .amount-row {
    margin-top: 24px;
  }

  .amount-row strong {
    font-size: clamp(2.5rem, 14vw, 3.6rem);
  }

  .meta-row {
    flex-wrap: wrap;
  }

  .meta-row__updated {
    width: 100%;
    margin-left: 0;
  }

  .button {
    min-height: 50px;
    font-size: 0.84rem;
  }

  .panel {
    padding: 20px;
  }

  .supporter {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .supporter__amount {
    grid-column: 2;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
