:root {
  --bg: #061016;
  --bg-2: #0b1720;
  --panel: rgba(10, 18, 25, 0.92);
  --panel-soft: rgba(13, 23, 31, 0.86);
  --line: rgba(135, 191, 214, 0.16);
  --line-strong: rgba(135, 191, 214, 0.26);
  --text: #edf6fb;
  --muted: #a0b4c0;
  --teal: #76e0cf;
  --teal-strong: #9cf3e4;
  --amber: #f0b56d;
  --amber-soft: rgba(240, 181, 109, 0.12);
  --danger: #ff9d82;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(118, 224, 207, 0.12), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(240, 181, 109, 0.10), transparent 20%),
    linear-gradient(180deg, #050d12 0%, #09131b 46%, #060d11 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 95%);
  opacity: 0.26;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-glow-left {
  background: radial-gradient(circle at 16% 24%, rgba(118, 224, 207, 0.12), transparent 18%);
}

.page-glow-right {
  background: radial-gradient(circle at 84% 18%, rgba(240, 181, 109, 0.10), transparent 16%);
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  margin-top: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 20, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--teal-strong), var(--amber));
  color: #071015;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 32px rgba(118, 224, 207, 0.22);
}

.brand-copy strong,
h1,
h2,
h3,
p {
  margin: 0;
}

.brand-copy strong {
  font-size: 1.05rem;
}

.nav,
.hero-actions,
.support-actions,
.footer-links,
.modal-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav a,
.footer a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.footer a:hover {
  color: var(--text);
}

main {
  margin-top: 28px;
  margin-bottom: 70px;
  display: grid;
  gap: 24px;
}

.shell-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 25, 35, 0.95), rgba(8, 15, 21, 0.96));
  box-shadow: var(--shadow);
}

.shell-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent 34%);
}

.hero,
.section-card,
.donation-modal {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  padding: 34px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top right, rgba(118, 224, 207, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(11, 20, 28, 0.98), rgba(7, 13, 18, 0.98));
}

.eyebrow {
  color: var(--teal);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.7rem, 4vw, 4.8rem);
  line-height: 0.98;
  max-width: 10ch;
}

.lede,
.section-copy,
.info-card p,
.download-card p,
.footer p,
.modal-copy {
  color: var(--muted);
  line-height: 1.7;
}

.warning-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(240, 181, 109, 0.24);
  background: rgba(240, 181, 109, 0.10);
  color: #ffd3a4;
  max-width: 58ch;
}

.status-pill,
.coming-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.coming-pill {
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(240, 181, 109, 0.28);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(118, 224, 207, 0.72);
}

.hero-stats,
.section-grid,
.requirements-grid,
.examples-grid,
.downloads-grid,
.roadmap-grid {
  display: grid;
  gap: 16px;
}

.hero-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stats article,
.info-card,
.download-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-label,
.card-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-card {
  padding: 28px;
}

.wide-card {
  display: grid;
  gap: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.35rem);
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: var(--text);
}

.compact-list {
  gap: 10px;
}

.requirements-grid,
.examples-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.downloads-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-card.coming-soon {
  border-color: rgba(240, 181, 109, 0.22);
}

.roadmap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.support-card {
  align-items: start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #081014;
  background: linear-gradient(135deg, var(--teal-strong), var(--teal));
}

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

.button.ghost {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: rgba(240, 181, 109, 0.28);
}

.footer {
  margin-bottom: 30px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal-shell.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 10, 0.72);
  backdrop-filter: blur(10px);
}

.donation-modal {
  width: min(560px, calc(100% - 28px));
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.modal-warning {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(240, 181, 109, 0.22);
  background: rgba(240, 181, 109, 0.08);
}

.modal-warning h3 {
  margin-bottom: 10px;
}

@media (max-width: 1060px) {
  .hero,
  .section-grid,
  .requirements-grid,
  .examples-grid,
  .downloads-grid,
  .roadmap-grid,
  .section-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    display: grid;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar,
  .footer {
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    padding: 18px;
  }

  .hero,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .footer,
  .modal-actions,
  .support-actions {
    flex-direction: column;
  }
}
