:root {
  --bg: #08080c;
  --panel: #121219;
  --panel-2: #1a1a23;
  --text: #f5f0e5;
  --muted: #b6b1aa;
  --red: #e72d24;
  --red-dark: #8e1614;
  --gold: #ffc43d;
  --line: #353540;
  --shadow: #000;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
    var(--bg);
  background-size: 16px 16px;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; }
code { color: var(--gold); }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.pixel-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  z-index: 20;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.02) 4px);
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--red);
  background:
    radial-gradient(circle at 50% 30%, rgba(231,45,36,.24), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.94));
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background: var(--red-dark);
  opacity: .08;
  transform: rotate(45deg);
}
.hero::before { left: -120px; top: 35%; }
.hero::after { right: -120px; top: 20%; }

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
  border-bottom: 2px solid var(--line);
}
.brand {
  text-decoration: none;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .08em;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 700; color: var(--muted); }
.nav-links a:hover { color: #fff; }

.hero-content {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 40px 0 64px;
  position: relative;
  z-index: 1;
}
.hero-logo {
  width: min(640px, 90vw);
  max-height: 440px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 0 rgba(0,0,0,.46));
}
.eyebrow {
  margin: 20px 0 6px;
  color: var(--gold);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .18em;
}
h1, h2, h3 { line-height: 1.1; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 5rem); text-shadow: 5px 5px 0 var(--red-dark), 9px 9px 0 #000; }
h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 4vw, 3.4rem); }
h3 { margin-top: 0; }
.hero-copy { max-width: 760px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 20px;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  text-decoration: none;
  font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 #000; }
.primary { background: var(--red); color: #fff; }
.secondary { background: var(--gold); color: #17130a; }
.disabled { opacity: .55; cursor: not-allowed; background: #585862; }

.section { padding: 92px 0; }
.section-heading { max-width: 850px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow) { color: var(--muted); }
.pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pack-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 #000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 370px;
  position: relative;
}
.pack-card::before {
  content: "";
  position: absolute;
  inset: -3px -3px auto -3px;
  height: 7px;
  background: var(--accent, var(--red));
}
.pack-icon { font-size: 3.4rem; line-height: 1; margin: 8px 0 18px; image-rendering: pixelated; }
.pack-card h3 { margin-bottom: 8px; font-size: 1.42rem; }
.pack-description { color: var(--muted); flex: 1; }
.pack-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag { border: 2px solid var(--line); background: #0b0b10; padding: 4px 8px; font-size: .76rem; color: #d8d5ce; }
.pack-actions { display: grid; gap: 10px; }
.pack-actions .button { width: 100%; }
.release-link { text-align: center; color: var(--muted); font-size: .82rem; }
.release-link:hover { color: #fff; }

.install-section { border-top: 3px solid var(--line); background: #0d0d13; }
.install-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 52px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; }
.steps li > span { width: 54px; height: 54px; display: grid; place-items: center; background: var(--red); border: 3px solid #000; box-shadow: 4px 4px 0 #000; font-weight: 900; font-size: 1.4rem; }
.steps strong { font-size: 1.08rem; text-transform: uppercase; }
.steps p { margin: 4px 0 0; color: var(--muted); }
.warning-box { padding: 28px; background: #1b1406; border: 3px solid var(--gold); box-shadow: 8px 8px 0 #000; }
.warning-box h3 { color: var(--gold); }
.warning-box p { margin-bottom: 0; color: #ded5bb; }

footer { border-top: 3px solid var(--line); background: #050507; }
.footer-inner { padding: 34px 0; text-align: center; }
.footer-small { color: #85858d; font-size: .75rem; }

@media (max-width: 900px) {
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav { align-items: flex-start; padding: 16px 0; }
  .nav-links { flex-direction: column; gap: 5px; text-align: right; }
  .pack-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  h1 { text-shadow: 3px 3px 0 var(--red-dark), 6px 6px 0 #000; }
}

/* Enhanced automatic phone and tablet layout */
html, body { max-width: 100%; overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 24px), var(--max)); }

  .hero { min-height: auto; }
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: center;
    flex-wrap: wrap;
  }
  .brand { font-size: .9rem; }
  .nav-links {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .nav-links a {
    flex: 1;
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 8px 6px;
    border: 2px solid var(--line);
    background: rgba(0,0,0,.28);
    text-align: center;
    font-size: .82rem;
  }

  .hero-content { padding: 28px 0 48px; }
  .hero-logo {
    width: min(100%, 500px);
    max-height: 310px;
    filter: drop-shadow(0 9px 0 rgba(0,0,0,.46));
  }
  .eyebrow { margin-top: 14px; font-size: .72rem; letter-spacing: .12em; }
  h1 { font-size: clamp(1.9rem, 10vw, 3.25rem); }
  h2 { font-size: clamp(1.65rem, 8vw, 2.6rem); }
  .hero-copy { font-size: .96rem; line-height: 1.55; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; min-height: 54px; }

  .section { padding: 54px 0; }
  .section-heading { margin-bottom: 24px; }
  .pack-grid { grid-template-columns: 1fr; gap: 18px; }
  .pack-card { min-height: 0; padding: 20px; box-shadow: 5px 5px 0 #000; }
  .pack-icon { font-size: 2.8rem; margin-bottom: 14px; }
  .pack-card h3 { font-size: 1.25rem; }
  .pack-actions .button { min-height: 54px; }

  .install-grid { gap: 32px; }
  .steps li { grid-template-columns: 46px 1fr; gap: 12px; }
  .steps li > span { width: 46px; height: 46px; font-size: 1.15rem; }
  .warning-box { padding: 22px; box-shadow: 5px 5px 0 #000; }
  .footer-inner { padding: 28px 0; }
}

@media (max-width: 380px) {
  .wrap { width: min(calc(100% - 18px), var(--max)); }
  .nav-links a { font-size: .72rem; padding-inline: 3px; }
  .button { padding-inline: 12px; }
  .pack-card { padding: 17px; }
  .tag { font-size: .7rem; }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover { transform: none; box-shadow: 5px 5px 0 #000; }
  .button:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
