:root {
  --bg: #050505;
  --bg-secondary: #151515;
  --panel: rgba(20, 20, 20, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f7f7f7;
  --muted: #b8b8b8;
  --accent: #ff2a2a;
  --accent-strong: #c40000;
  --metal: #d7d7d7;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 42, 42, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(145deg, #030303 0%, #111111 48%, #1a1a1a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px clamp(24px, 5vw, 56px);
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(35, 35, 35, 0.86), rgba(8, 8, 8, 0.96)),
    linear-gradient(135deg, rgba(255, 42, 42, 0.08), transparent 42%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(255, 42, 42, 0.22), transparent 60%);
  clip-path: polygon(46% 0, 62% 0, 34% 100%, 18% 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 12% -120px auto;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--metal);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.brand-icon {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(255, 42, 42, 0.18);
}

h1,
h2 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ff3a3a 0%, #b50000 100%);
  box-shadow: 0 18px 36px rgba(255, 42, 42, 0.24);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.download-card {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 42, 42, 0.05));
  max-width: 100%;
}

.support-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

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

.feature-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 42, 42, 0.04));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.feature-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.showcase {
  margin-top: 26px;
}

.gallery-intro {
  margin-bottom: 18px;
  padding: 0 4px;
}

.gallery-intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
}

.gallery-intro p:last-child {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(10, 10, 10, 0.92));
  box-shadow: var(--shadow);
}

.screenshot-card-wide {
  grid-column: 1 / -1;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-card figcaption {
  padding: 14px 18px 18px;
  color: var(--metal);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.instagram {
  color: #ffffff;
  background: linear-gradient(135deg, #ff5f6d 0%, #d62976 42%, #962fbf 72%, #4f5bd5 100%);
  box-shadow: 0 16px 30px rgba(214, 41, 118, 0.2);
}

.donation-link {
  color: #1f1400;
  background: linear-gradient(135deg, #ffd54d 0%, #ffb300 100%);
  box-shadow: 0 16px 30px rgba(255, 179, 0, 0.22);
}

.github-soon {
  color: var(--metal);
  background: rgba(255, 255, 255, 0.04);
}

.download-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  color: var(--text);
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 20px 0 40px;
  }

  .hero {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .button {
    width: 100%;
  }

  .social-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}
