@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --text: #ffffff;
  --muted: #d0d0d0;
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.22);
  --accent: #ff1f1f;
  --accent-dark: #a40000;
  --shadow: 0 18px 0 rgba(164,0,0,0.18);
  --radius: 0px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(255,31,31,0.18), transparent 28%),
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 18%),
    linear-gradient(180deg, #030303 0%, #080808 100%);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 2rem), 840px); margin: 0 auto; }
.center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.95);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 6px 0 rgba(255,31,31,0.15);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 #000, 7px 7px 0 var(--accent-dark);
  font-size: 0.75rem;
}
.brand-text { white-space: nowrap; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-nav a {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  text-shadow: 0 0 10px rgba(255,31,31,0.55);
}
.menu-toggle {
  display: none;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line-strong);
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
}

.hero,
.page-hero {
  padding: 6rem 0 4rem;
}
.hero-grid,
.split,
.footer-grid,
.card-grid.two,
.card-grid.three {
  display: grid;
  gap: 1.5rem;
}
.hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.footer-grid { grid-template-columns: 1.1fr 0.7fr 0.9fr; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.eyebrow {
  color: #ff8a8a;
  text-transform: uppercase;
  font-family: "Press Start 2P", monospace;
  font-size: 0.66rem;
  line-height: 1.8;
  margin: 0 0 1rem;
}

h1, h2, h3, h4, p, li { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: "Press Start 2P", monospace;
  text-transform: uppercase;
  line-height: 1.45;
}
h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  margin-bottom: 1.1rem;
}
h2 {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  margin-bottom: 0.9rem;
}
h4 {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  border: 3px solid #fff;
  box-shadow: 5px 5px 0 #000, 8px 8px 0 rgba(255,31,31,0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000, 10px 10px 0 rgba(255,31,31,0.8);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-secondary {
  background: #111;
  color: #fff;
}
.text-link {
  color: #ff8a8a;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.hero-card,
.info-card,
.stats-card,
.project-card,
.cta-banner {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.hero-card,
.info-card,
.project-card,
.cta-banner { padding: 1.7rem; }
.stats-card {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}
.stats-card div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.stats-card div:last-child { border-bottom: 0; padding-bottom: 0; }
.stats-card span,
.info-card p,
.project-card p,
.site-footer p,
.site-footer a,
.project-meta span,
.info-card li { color: var(--muted); }
.hero-badge,
.project-tag {
  display: inline-flex;
  padding: 0.55rem 0.8rem;
  background: var(--accent);
  color: #fff;
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  border: 2px solid #fff;
}
.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.feature-list li + li { margin-top: 0.6rem; }
.section { padding: 4.25rem 0; }
.section.alt {
  background: rgba(255,255,255,0.02);
  border-block: 2px solid rgba(255,31,31,0.28);
}
.section-head { margin-bottom: 1.6rem; }
.soft {
  background: linear-gradient(180deg, rgba(255,31,31,0.12), rgba(255,255,255,0.03));
}
.project-showcase { display: grid; gap: 1.4rem; }
.project-card.featured {
  background: linear-gradient(135deg, rgba(255,31,31,0.18), rgba(255,255,255,0.05));
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.project-meta span {
  border: 2px solid rgba(255,255,255,0.14);
  padding: 0.55rem 0.8rem;
}
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer {
  padding: 3rem 0 1.25rem;
  border-top: 3px solid var(--accent);
  background: #070707;
}
.site-footer h3,
.site-footer h4 { margin-bottom: 0.85rem; }
.site-footer a { display: block; margin-bottom: 0.55rem; }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 920px) {
  .hero-grid,
  .split,
  .footer-grid,
  .card-grid.two,
  .card-grid.three,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: #080808;
    border-bottom: 3px solid var(--accent);
  }

  .site-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .brand-text { white-space: normal; }
}

@media (max-width: 640px) {
  body { line-height: 1.7; }
  .hero,
  .page-hero,
  .section { padding-block: 3.5rem; }
  .nav-wrap { min-height: 76px; }
  .brand {
    font-size: 0.58rem;
    gap: 0.7rem;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 0.7rem;
  }
  .eyebrow,
  .btn,
  .hero-badge,
  .project-tag {
    font-size: 0.54rem;
  }
  .hero-card,
  .info-card,
  .project-card,
  .cta-banner,
  .stats-card {
    padding: 1.2rem;
  }
}
