:root {
  --bg: #080a0d;
  --panel: #11151b;
  --panel-soft: #171b22;
  --text: #f6f2e8;
  --muted: #a6adba;
  --quiet: #747d8d;
  --gold: #c9a24e;
  --gold-strong: #e0bd67;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    linear-gradient(180deg, #0d1015 0%, #090b0f 48%, #07080b 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 13, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1160px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand span {
  font-size: 21px;
  color: #fff6df;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(246, 242, 232, 0.78);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--gold-strong);
}

.nav-links .nav-donate {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 78, 0.42);
  background: linear-gradient(180deg, rgba(201, 162, 78, 0.22), rgba(201, 162, 78, 0.1));
  color: #fff1ca;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(201, 162, 78, 0.1);
}

.nav-links .nav-donate:hover {
  color: #181209;
  background: linear-gradient(180deg, #d9b55f, #b88f3c);
  border-color: transparent;
}

.wrap {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 58px 0 92px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.94), rgba(8, 10, 13, 0.68) 48%, rgba(8, 10, 13, 0.3)),
    linear-gradient(0deg, rgba(8, 10, 13, 0.96), rgba(8, 10, 13, 0.18) 34%),
    url("assets/images/home-page.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
  color: #fff7df;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(246, 242, 232, 0.82);
  font-size: 20px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 78, 0.34);
  background: rgba(201, 162, 78, 0.12);
  color: #fff1ca;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(180deg, #d9b55f, #b88f3c);
  color: #181209;
  border-color: transparent;
}

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

.note {
  margin-top: 18px;
  color: var(--quiet);
  font-size: 14px;
}

.section {
  padding: 74px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color: #fff7df;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

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

.tile {
  min-height: 180px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
}

.tile h3 {
  margin: 0 0 10px;
  color: #fff3cf;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.shot {
  margin: 0;
}

.shot button {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.shot img {
  display: block;
  width: 100%;
}

.shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.download-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.download-item strong {
  color: #fff3cf;
}

.download-item span {
  color: var(--muted);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.support-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid rgba(201, 162, 78, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.support-card.featured {
  border-color: rgba(201, 162, 78, 0.46);
  background: linear-gradient(180deg, rgba(201, 162, 78, 0.12), rgba(255, 255, 255, 0.035));
}

.support-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #fff3cf;
}

.support-card p {
  margin: 0;
  color: var(--muted);
}

.paypal-button-box {
  min-height: 90px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(8, 10, 13, 0.52);
}

.paypal-button-box > div {
  width: 100%;
  min-width: 260px;
}

.paypal-button-box iframe {
  width: 100% !important;
  min-width: 260px !important;
}

.footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 8px;
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-grid,
  .grid,
  .screenshot-grid,
  .download-list,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
