/* RESET & BASE ---------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

/* THEME TOKENS ---------------------------------------------------------- */

html[data-theme="dark"] {
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-card: #020617;
  --bg-card-grad: radial-gradient(circle at top left, #1e293b 0, #020617 60%);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #fbbf24;
  --accent-soft: #f59e0b;
  --border-subtle: #1f2933;
  --shadow-strong: 0 26px 60px rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] {
  --bg: #f3f4f6;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-grad: radial-gradient(circle at top left, #e5e7eb 0, #ffffff 60%);
  --text: #111827;
  --text-muted: #4b5563;
  --accent: #1f2937;
  --accent-soft: #111827;
  --border-subtle: #d1d5db;
  --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.2);
}

/* BODY ------------------------------------------------------------------ */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #082f49 0, #020617 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* PAGE LAYOUT ----------------------------------------------------------- */

main {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 16px 40px;
}

/* HEADER ---------------------------------------------------------------- */

.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--accent);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-text .title {
  font-size: 16px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BUTTONS --------------------------------------------------------------- */

.primary-btn,
.secondary-btn,
.ghost-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.primary-btn {
  background: var(--accent);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.primary-btn-lg {
  padding: 11px 22px;
  font-size: 15px;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.secondary-btn {
  background: transparent;
  border-color: var(--accent-soft);
  color: var(--accent);
}

.secondary-btn:hover {
  background: rgba(248, 250, 252, 0.04);
}

.ghost-btn {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  padding-inline: 12px;
}

.ghost-btn:hover {
  background: rgba(148, 163, 184, 0.15);
}

/* CARDS & SECTIONS ------------------------------------------------------ */

.card {
  background: var(--bg-card-grad);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 26px 24px 26px;
  margin-top: 22px;
  box-shadow: var(--shadow-strong);
}

/* HERO ------------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 28px;
}

.hero-text h1 {
  font-size: 28px;
  margin: 0 0 10px;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 520px;
}

/* HERO MEDIA ------------------------------------------------------------ */

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-banner {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7);
}

.hero-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* SIGNATURE WIDGET ------------------------------------------------------ */

.signature-widget {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(31, 41, 55, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.sig-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sig-counts {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 6px;
}

#sigCurrent {
  font-size: 20px;
  font-weight: 700;
}

#sigGoal {
  font-size: 14px;
  color: var(--text-muted);
}

.sig-divider {
  font-size: 16px;
  color: var(--text-muted);
}

.sig-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
}

.sig-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.sig-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 0.9s cubic-bezier(0.22, 0.91, 0.24, 1);
}

.sig-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* GRID / UTILITIES ------------------------------------------------------ */

.grid.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
}

/* QR PANEL -------------------------------------------------------------- */

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7);
}

.qr-img {
  display: block;
  width: 150px;
  height: 150px;
}

.qr-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* TYPOGRAPHY & LISTS ---------------------------------------------------- */

h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

.bullet-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.bullet-list li + li {
  margin-top: 6px;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* FOOTER ---------------------------------------------------------------- */

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px 26px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer .small {
  font-size: 11px;
}

/* ANIMATIONS ------------------------------------------------------------ */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.5s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.1s; }
.fade-in.delay-2 { animation-delay: 0.18s; }
.fade-in.delay-3 { animation-delay: 0.26s; }
.fade-in.delay-4 { animation-delay: 0.34s; }
.fade-in.delay-5 { animation-delay: 0.42s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE ------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .grid.two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    align-self: stretch;
    justify-content: space-between;
  }

  .card {
    padding: 22px 18px 22px;
  }

  .hero-text h1 {
    font-size: 24px;
  }
}
