/* HomeArcade.co.uk — hand-built custom arcade machines */

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/press-start-2p.woff2') format('woff2');
}

:root {
  --bg: #0b0b10;
  --panel: #14141c;
  --panel-2: #1b1b26;
  --line: #262634;
  --text: #e8e8ee;
  --muted: #9a9aa8;
  --cyan: #3be8f0;
  --pink: #ff2d78;
  --yellow: #ffd23f;
  --radius: 10px;
  --pixel: 'Press Start 2P', 'Courier New', monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  background-color: var(--bg);
  /* arcade backdrop: neon glows + faint pixel invaders, all inline (no requests) */
  background-image:
    radial-gradient(900px 480px at 88% -120px, rgba(255, 45, 120, .08), transparent 60%),
    radial-gradient(1100px 620px at 4% 480px, rgba(59, 232, 240, .06), transparent 60%),
    radial-gradient(800px 500px at 70% 1600px, rgba(255, 210, 63, .04), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='%233be8f0' fill-opacity='.05'%3E%3Cg transform='translate(38 44)'%3E%3Crect x='12' y='0' width='6' height='6'/%3E%3Crect x='48' y='0' width='6' height='6'/%3E%3Crect x='18' y='6' width='30' height='6'/%3E%3Crect x='6' y='12' width='54' height='12'/%3E%3Crect x='0' y='24' width='66' height='6'/%3E%3Crect x='12' y='30' width='12' height='6'/%3E%3Crect x='42' y='30' width='12' height='6'/%3E%3Crect x='6' y='36' width='12' height='6'/%3E%3Crect x='48' y='36' width='12' height='6'/%3E%3C/g%3E%3Cg transform='translate(210 210) scale(.75)' fill='%23ff2d78' fill-opacity='.9'%3E%3Crect x='12' y='0' width='6' height='6'/%3E%3Crect x='48' y='0' width='6' height='6'/%3E%3Crect x='18' y='6' width='30' height='6'/%3E%3Crect x='6' y='12' width='54' height='12'/%3E%3Crect x='0' y='24' width='66' height='6'/%3E%3Crect x='12' y='30' width='12' height='6'/%3E%3Crect x='42' y='30' width='12' height='6'/%3E%3Crect x='6' y='36' width='12' height='6'/%3E%3Crect x='48' y='36' width='12' height='6'/%3E%3C/g%3E%3Ccircle cx='150' cy='120' r='3' fill='%23ffd23f' fill-opacity='.5'/%3E%3Ccircle cx='90' cy='260' r='3' fill='%23ffd23f' fill-opacity='.5'/%3E%3Ccircle cx='268' cy='70' r='3' fill='%23ffd23f' fill-opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 16, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.logo {
  font-family: var(--pixel); font-size: .8rem; color: var(--text);
  letter-spacing: .5px; white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .hi { color: var(--cyan); }
.logo .lo { color: var(--pink); }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .cta {
  color: #0b0b10; background: var(--yellow); font-weight: 700;
  padding: 8px 16px; border-radius: 6px;
}
.nav .cta:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 6px; padding: 8px 10px; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--panel);
    border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 24px; width: 100%; }
  .nav .cta { margin: 10px 24px 12px; width: auto; text-align: center; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 52px; border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.kicker {
  font-family: var(--pixel); font-size: .7rem; color: var(--yellow);
  letter-spacing: 1px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--pixel); font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.55; margin-bottom: 24px;
  text-shadow: 0 0 24px rgba(59, 232, 240, .35);
}
.hero h1 .accent { color: var(--cyan); }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 34em; margin-bottom: 34px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 8px;
  font-weight: 700; font-size: 1rem; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--yellow); color: #0b0b10; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-shot { position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  max-width: 360px; margin: 0 auto; justify-self: center; }
.hero-shot img, .hero-shot video { width: 100%; height: auto; display: block; }
.hero-shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-shot { max-width: 420px; }
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-label {
  font-family: var(--pixel); font-size: .7rem; color: var(--pink);
  letter-spacing: 1px; margin-bottom: 14px;
}
.sec-label::before { content: '\25B8 '; color: var(--cyan); }
h2 {
  font-family: var(--pixel); font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  line-height: 1.6; margin-bottom: 18px;
}
.sec-intro { color: var(--muted); max-width: 44em; margin-bottom: 44px; }

/* ---------- machine cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-family: var(--pixel); font-size: .78rem; line-height: 1.7; color: var(--cyan); }
.card p { color: var(--muted); font-size: .98rem; }
.card ul { list-style: none; margin-top: auto; padding-top: 10px; }
.card li { font-size: .92rem; color: var(--text); padding: 4px 0 4px 22px; position: relative; }
.card li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 8px; height: 8px; background: var(--yellow); border-radius: 2px;
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } .card img { aspect-ratio: 4 / 3; } }

/* ---------- videos ---------- */
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.clip { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.clip .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .25); border: 0; cursor: pointer; width: 100%;
}
.clip .play span {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 11, 16, .78); border: 2px solid var(--cyan);
  color: var(--cyan); font-size: 1.5rem; padding-left: 5px;
  transition: transform .15s ease;
}
.clip .play:hover span { transform: scale(1.08); }
.clip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
  font-size: .85rem; color: var(--text); pointer-events: none;
}
@media (max-width: 1000px) { .clips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .clips { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.grid a { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: block; }
.grid a:hover { border-color: var(--pink); }
.grid img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform .25s ease; }
.grid a:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }

/* lightbox */
.lightbox {
  border: none; background: rgba(5, 5, 9, .93); padding: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
}
.lightbox::backdrop { background: rgba(5, 5, 9, .93); }
.lightbox img {
  max-width: min(92vw, 1000px); max-height: 88vh; margin: auto;
  position: absolute; inset: 0; object-fit: contain;
}
.lightbox .close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  background: none; border: 1px solid var(--line); color: var(--text);
  font-size: 1.4rem; line-height: 1; padding: 10px 14px; border-radius: 8px; cursor: pointer;
}
.lightbox .close:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- build section ---------- */
.build { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.spec {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.spec b { display: block; font-family: var(--pixel); font-size: .7rem; color: var(--yellow); margin-bottom: 8px; line-height: 1.6; }
.spec span { color: var(--muted); font-size: .95rem; }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }
.build-media { display: grid; gap: 18px; align-content: start; }
.build-media figure { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.build-media a { display: block; }
.build-media img { width: 100%; height: auto; display: block; background: #fff; }
.build-media figcaption { padding: 11px 15px; font-size: .85rem; color: var(--muted); }
.dl {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  border: 1px solid var(--line); padding: 12px 18px; border-radius: 8px; color: var(--text);
}
.dl:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }
@media (max-width: 860px) { .build { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
label { font-size: .92rem; font-weight: 600; }
input, select, textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 13px 14px; font: inherit; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: .88rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot p { color: var(--muted); font-size: .9rem; }
.site-foot .coin { font-family: var(--pixel); font-size: .65rem; color: var(--yellow); }
