/* Couch Amp landing — brushed metal + dot matrix, matching the app */
:root {
  --ink: #e8eaee;
  --panel: #17181b;
  --lcd: #a9c6ff;
  --lcd-dim: rgba(169, 198, 255, 0.28);
  --key-hi: #3a3c40;
  --key-lo: #232529;
}

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

body {
  font-family: "Source Sans 3", -apple-system, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    repeating-linear-gradient(180deg,
      #232427 0px, #2a2b2f 1px, #202124 2px, #26272b 3px);
  background-attachment: fixed;
  line-height: 1.55;
}

/* Hero */
.hero {
  text-align: center;
  padding: 9vh 24px 6vh;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nameplate {
  font-family: "Source Serif 4", serif;
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 7.5rem);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg,
    #f2f3f5 0%, #d9dbdf 22%, #a7abb2 45%, #8b9098 55%, #c9ccd1 78%, #9ea3ab 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.35))
    drop-shadow(0 2px 2px rgba(0,0,0,0.9))
    drop-shadow(0 0 12px rgba(0,0,0,0.6));
}

.dotmatrix {
  font-family: "DotGothic16", monospace;
  color: var(--lcd);
  text-shadow: 0 0 8px rgba(169,198,255,0.55);
  letter-spacing: 0.28em;
  font-size: clamp(0.8rem, 2.4vw, 1.25rem);
  background: #000;
  display: inline-block;
  padding: 14px 22px;
  margin-top: 26px;
  border: 1px solid rgba(255,255,255,0.09);
}
.dotmatrix.small { font-size: 0.8rem; padding: 8px 14px; }

.tagline {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: 1.12rem;
  color: #c6c9cf;
}

/* Rubber-key buttons */
.hero-nav { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.key {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--key-hi), var(--key-lo));
  border-top: 1px solid rgba(255,255,255,0.22);
  border-bottom: 1px solid rgba(0,0,0,0.55);
  box-shadow: 0 4px 8px rgba(0,0,0,0.45);
  transition: transform 0.08s ease;
}
.key:hover { transform: scale(1.04, 0.94); }

/* Screenshot gallery */
main { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }

.gallery-controls {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.key-group {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}
.key-toggle {
  font-family: inherit;
  font-size: 0.78rem;
  padding: 10px 18px;
  cursor: pointer;
  border-left: 0;
  border-right: 0;
}
.key-toggle.active {
  color: var(--lcd);
  text-shadow: 0 0 8px rgba(169,198,255,0.55);
  background: linear-gradient(180deg, var(--key-lo), #1a1b1e);
  border-top: 1px solid rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
  transform: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
}
.shot {
  cursor: zoom-in;
  border-radius: 18px;
  outline-offset: 3px;
}
.shot img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 26px rgba(0,0,0,0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.shot:hover img, .shot:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.65);
}
.shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.82rem;
  color: #aeb2b9;
}
.shot figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8,9,11,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-body {
  display: flex;
  gap: 34px;
  align-items: center;
  max-width: 900px;
  flex-wrap: wrap;
  justify-content: center;
}
.lightbox-body img {
  max-height: 82vh;
  max-width: min(88vw, 380px);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
}
.lightbox-text { max-width: 380px; }
.lightbox-text h3 {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.lightbox-text p { color: #c2c5cb; font-size: 0.98rem; }
.lightbox-meta {
  margin-top: 14px;
  font-family: "DotGothic16", monospace;
  color: var(--lcd);
  text-shadow: 0 0 8px rgba(169,198,255,0.55);
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-family: inherit;
  border-left: 0;
  border-right: 0;
}
@media (max-width: 720px) {
  .lightbox-body { gap: 18px; }
  .lightbox-body img { max-height: 60vh; }
  .lightbox-text { text-align: center; }
}

/* Features */
.features, .matrix-teaser { margin-top: 64px; }
h2 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  color: #d4d7dc;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.features ul { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.features li {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 0.98rem;
  color: #c2c5cb;
}
.features strong { color: var(--ink); }

.matrix-teaser { text-align: center; }
.matrix-teaser p { max-width: 640px; margin: 0 auto 24px; color: #c2c5cb; }

footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 72px;
  padding: 40px 24px 56px;
  text-align: center;
}
footer p { max-width: 640px; margin: 18px auto 0; font-size: 0.8rem; color: #8d9097; }
