:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #16314f;
  --muted: #60718a;
  --line: rgba(22, 49, 79, 0.08);
  --blue-1: #dfeeff;
  --blue-2: #eef5ff;
  --blue-3: #c5dcff;
  --accent: #ff8f00;
  --accent-soft: rgba(255, 143, 0, 0.14);
  --shadow: 0 18px 45px rgba(27, 54, 90, 0.12);
  --shadow-soft: 0 10px 28px rgba(27, 54, 90, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 580px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(77, 132, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #fdfefe 0%, var(--bg) 55%, #eef3fa 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Roboto, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(77, 132, 255, 0.08), transparent 20%),
    radial-gradient(circle at 85% 15%, rgba(255, 143, 0, 0.07), transparent 18%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 20px 16px 28px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  padding: 18px 18px 24px;
  display: grid;
  gap: 14px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 143, 0, 0.12), transparent 64%);
  pointer-events: none;
}

.hero__badge {
  justify-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 49, 79, 0.06);
  font-size: 0.92rem;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
}

.hero__orb {
  position: absolute;
  width: min(78vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), rgba(197, 220, 255, 0.5) 38%, rgba(77, 132, 255, 0.22) 66%, rgba(77, 132, 255, 0.05) 100%);
  filter: blur(1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.54),
    0 18px 40px rgba(72, 118, 198, 0.14);
}

.hero__image {
  position: relative;
  z-index: 1;
  width: min(72vw, 310px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(21, 38, 58, 0.2));
  animation: float 6s ease-in-out infinite;
  transform-origin: center;
}

.hero__copy {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #57708d;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

.search-card,
.donate-card {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading--stacked {
  flex-direction: column;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.55;
}

.status-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a96000;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid rgba(255, 143, 0, 0.2);
}

.search-form {
  display: grid;
  gap: 12px;
}

.search-form input,
.search-form button {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  font: inherit;
  font-size: 1rem;
}

.search-form input {
  border: 1px solid rgba(22, 49, 79, 0.1);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 18px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-form input::placeholder {
  color: #7c8ca3;
}

.search-form input:disabled,
.search-form button:disabled {
  cursor: not-allowed;
  opacity: 0.92;
}

.search-form button {
  border: none;
  background: linear-gradient(135deg, #2e6cff 0%, #2450c5 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(36, 80, 197, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: pulse 2.8s ease-in-out infinite;
}

.search-form button:disabled {
  background: linear-gradient(135deg, #86a1d7 0%, #7b92be 100%);
  animation: none;
}

.microcopy {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.future-copy {
  margin-top: 8px;
  font-size: 0.93rem;
  color: #4f6885;
  line-height: 1.5;
}

.donate-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.95)),
    var(--surface-strong);
}

.donate-grid {
  display: grid;
  gap: 14px;
}

.qr-box {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 170px;
  border-radius: 24px;
  border: 1.5px dashed rgba(22, 49, 79, 0.16);
  background:
    linear-gradient(135deg, rgba(77, 132, 255, 0.08), rgba(255, 143, 0, 0.05)),
    rgba(255, 255, 255, 0.74);
  color: #6e7f98;
}

.qr-box__image {
  width: min(100%, 220px);
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(22, 49, 79, 0.12);
}

.qr-box small {
  font-size: 0.95rem;
}

.donate-meta {
  display: grid;
  gap: 6px;
  align-content: start;
}

.donate-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.donate-amount {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #173457;
}

.footer {
  padding: 10px 8px 0;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.footer p {
  font-size: 0.88rem;
  color: #6e7f98;
}

.footer__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2e6cff 0%, #2450c5 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(36, 80, 197, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer__download:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(36, 80, 197, 0.24);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(36, 80, 197, 0.2);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 18px 38px rgba(36, 80, 197, 0.28);
    transform: translateY(-1px);
  }
}

@media (min-width: 700px) {
  .page-shell {
    padding: 30px 18px 40px;
    gap: 18px;
  }

  .hero {
    padding: 24px 28px 30px;
  }

  .hero__visual {
    min-height: 300px;
  }

  .hero__image {
    width: min(46vw, 330px);
  }

  .search-card,
  .donate-card {
    padding: 22px 24px;
  }

  .donate-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .qr-box {
    min-height: 190px;
  }
}
