/* ============ aerbuf.com ============ */
:root {
  --bg: #0b0e14;
  --panel: #121721;
  --panel-2: #171d29;
  --text: #e8ecf3;
  --muted: #9aa5b5;
  --line: rgba(255, 255, 255, 0.08);
  --xvo-red: #ff2d55;
  --xvo-blue: #2e86ff;
  --tq-gold: #d9a93c;
  --tq-green: #1c2b1e;
  --five-green: #3fa34d;
  --five-blue: #3f6fd8;
  --radius: 18px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img { border-radius: 9px; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.6rem);
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}

.site-header nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--panel-2);
}

.nav-cta:hover { border-color: var(--five-green); }

/* ---------- hero ---------- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7.5rem) 1.25rem clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.lede {
  margin: 1.4rem auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.chip {
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.15s, border-color 0.15s;
}

.chip:hover { transform: translateY(-2px); }
.chip-xvo:hover { border-color: var(--xvo-red); }
.chip-tq:hover { border-color: var(--tq-gold); }
.chip-five:hover { border-color: var(--five-green); }

/* ---------- games ---------- */
.games {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 1.6rem;
}

.games > .section-title { text-align: center; }

.game {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: var(--panel);
}

.game-banner img { width: 100%; height: auto; }

.game-body {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.game-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: sticky;
  top: 96px;
}

.game-media > img { border-radius: 14px; }

.game-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0.7rem 0 0.15rem;
}

.tagline {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.game-text p + p { margin-top: 0.8rem; }

.features {
  margin: 1.1rem 0 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text);
}

.features li::marker { color: var(--muted); }

.fine { color: var(--muted); font-size: 0.92rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.badge-dev { color: #ffc861; border-color: rgba(255, 200, 97, 0.35); }
.badge-live { color: #5fd97a; border-color: rgba(95, 217, 122, 0.4); }

/* per-game theming */
.game-xvo { background: #07080c; }
.game-xvo .tagline { color: var(--xvo-red); }
.game-xvo .features strong { color: #7db4ff; }

.game-tq { background: var(--tq-green); border-color: rgba(217, 169, 60, 0.25); }
.game-tq .tagline { color: var(--tq-gold); }
.game-tq .features strong { color: #ecc65f; }
.game-tq .fine { color: #b9c4ae; }
.game-tq .features li::marker { color: var(--tq-gold); }

.item-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(217, 169, 60, 0.25);
}

.item-strip img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.game-five { background: #16233f; border-color: rgba(63, 163, 77, 0.3); }
.game-five .tagline { color: var(--five-green); }
.game-five .game-media img { max-width: 260px; }

.five-games { list-style: none; padding-left: 0; }

.five-games li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.five-games span { flex-shrink: 0; }

.cta {
  display: inline-block;
  margin-top: 0.9rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #07130a;
  background: var(--five-green);
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.cta:hover { transform: translateY(-2px); filter: brightness(1.1); }

.cta-steam {
  color: #e8ecf3;
  background: linear-gradient(90deg, #1b2838, #2a475e);
  border: 1px solid rgba(102, 192, 244, 0.4);
}

/* ---------- screenshot albums ---------- */
.game-gallery {
  padding: 0 clamp(1.5rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.75rem);
}

.gallery-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.shots { position: relative; margin: 0 auto; }
.shots--wide { max-width: 940px; }
.shots--tall { max-width: 430px; }

.shots-viewport {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #05070c;
  border: 1px solid var(--line);
}

.shots--wide .shots-viewport { aspect-ratio: 16 / 9; }
.shots--tall .shots-viewport { aspect-ratio: 768 / 840; }

.shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.shot.is-active { opacity: 1; pointer-events: auto; }

.shot img { width: 100%; height: 100%; object-fit: contain; display: block; }

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem 0.7rem;
  font-size: 0.85rem;
  color: #eef2f8;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.shots-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(8, 11, 17, 0.72);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.shots-arrow:hover { background: rgba(8, 11, 17, 0.95); transform: translateY(-50%) scale(1.06); }
.shots-prev { left: 0.6rem; }
.shots-next { right: 0.6rem; }

.shots-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.shots-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.shots-dot.is-active { background: var(--text); transform: scale(1.25); }

/* per-game accents */
.game-xvo .shots-dot.is-active { background: var(--xvo-blue); }
.game-xvo .shots-arrow:hover { border-color: var(--xvo-blue); }
.game-tq .shots-dot.is-active { background: var(--tq-gold); }
.game-tq .shots-arrow:hover { border-color: var(--tq-gold); }

.is-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .shot { transition: none; }
}

/* ---------- about ---------- */
.about {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.about-text p + p { margin-top: 0.9rem; }
.about-text a { color: #7db4ff; }

/* ---------- contact ---------- */
.contact {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem;
  text-align: center;
}

.contact-lede {
  color: var(--muted);
  max-width: 560px;
  margin: -0.5rem auto 2.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  width: 100%;
}

.contact-form textarea { resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--five-green);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-form .cta { justify-self: start; margin-top: 0; }
.contact-form .fine a { color: #7db4ff; }

.honey { display: none; }

.contact-quick {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-self: start;
}

.quick-title { font-weight: 600; color: var(--muted); font-size: 0.95rem; }

.quick-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  transition: transform 0.15s, border-color 0.15s;
}

.quick-btn:hover { transform: translateY(-2px); }
.qb-bug:hover { border-color: var(--xvo-red); }
.qb-idea:hover { border-color: var(--tq-gold); }
.qb-hi:hover { border-color: var(--five-green); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.foot-brand img { border-radius: 7px; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

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

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

/* ---------- simple pages (thanks / 404) ---------- */
.simple-page {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.25rem;
}

.simple-page h1 { font-family: var(--font-display); font-size: 2.2rem; }
.simple-page p { color: var(--muted); }
.simple-page img { margin: 0 auto; border-radius: 16px; }
.simple-page .cta { justify-self: center; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .game-body { grid-template-columns: 1fr; }
  .game-media { position: static; }
  .game-media > img { max-width: 300px; }
  .about { grid-template-columns: 1fr; }
  .about-media img { max-width: 380px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .site-header nav a:not(.nav-cta) { display: none; }
}
