/* Scanmarks — archived project page */

:root {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --card: #1d212b;
  --text: #eef0f3;
  --muted: #9aa3b2;
  --accent: #6dd775;
  --accent-light: #cafb54;
  --accent-soft: rgba(109, 215, 117, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Archived banner */

.archived-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid rgba(109, 215, 117, 0.3);
  color: var(--text);
  padding: 14px 24px;
  text-align: center;
  font-size: 0.95rem;
}

.archived-banner strong {
  color: var(--accent);
}

/* Hero */

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  margin: 0 auto 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 8px;
  font-weight: 700;
}

.hero .tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Sections */

section {
  padding: 56px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 16px;
  text-align: center;
}

.lede {
  max-width: 680px;
  margin: 0 auto 8px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.feature-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background-color: var(--accent);
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Screenshot gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: end;
}

.gallery figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.gallery img {
  border-radius: 10px;
  margin: 0 auto;
}

.gallery figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Flyover skyline */

.flyover {
  padding-bottom: 0;
}

.flyover-strip {
  position: relative;
  overflow: hidden;
  height: 160px;
  margin-top: 40px;
  background-color: transparent;
  background-image: url("../images/skyline-flyover.svg?v=3");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 1200px 160px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  animation: flyover-scroll 24s linear infinite;
}

.flyover-strip:hover {
  animation-play-state: paused;
}

@keyframes flyover-scroll {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: -1200px;
  }
}

.flyover-scanner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -160px;
  width: 160px;
  background: linear-gradient(90deg, transparent, rgba(202, 251, 84, 0.35), transparent);
  animation: flyover-scan 5s ease-in-out infinite;
}

@keyframes flyover-scan {
  0% {
    left: -160px;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flyover-strip {
    animation: none;
  }

  .flyover-scanner {
    animation: none;
    display: none;
  }
}

@media (max-width: 600px) {
  .flyover-strip {
    height: 110px;
    background-size: 825px 110px;
    animation-name: flyover-scroll-mobile;
  }
}

@keyframes flyover-scroll-mobile {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: -825px;
  }
}

/* Cities */

.cities {
  text-align: center;
}

.city-list {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Footer */

footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-credit {
  font-size: 1rem;
  margin-bottom: 16px;
}

.fine-print {
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 560px;
  margin: 0 auto;
}

.fine-print p {
  margin: 6px 0;
}

/* Responsive */

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 48px 0 32px;
  }

  .hero-icon {
    width: 84px;
    height: 84px;
  }

  section {
    padding: 40px 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery figure {
    max-width: 260px;
    margin: 0 auto;
  }

  .wrap {
    padding: 0 16px;
  }
}
