/* CSS: Hacker-meets-cyberpunk landing with green dot background, frosted glass, and responsive hero */

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: #eafff0;
  background: #000;
  /* Green-dots background pattern (neon cyberpunk) */
  background-image:
    radial-gradient(circle, rgba(0,255,136,.9) 1.2px, transparent 1.3px),
    radial-gradient(circle, rgba(0,255,136,.5) 1.2px, transparent 1.3px);
  background-size: 20px 20px, 20px 20px;
  background-position: 0 0, 10px 10px;
  background-attachment: fixed;
  line-height: 1.4;
}

/* Light reset defaults for padding/margins on common elements if present */
main, footer { padding: 0; margin: 0; }

main { display: grid; place-items: center; padding: 2rem 1rem; min-height: calc(100vh - 120px); }

/* Hero image frame (frosted glass / hacker vibe) */
.image-frame {
  position: relative;
  width: min(980px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,255,136,.45);
  background: rgba(10,10,10,.42);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.25),
    0 40px 90px rgba(0,0,0,.65);
  /* Frosted glass layer above the image behind content (blurred backdrop) */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 0;
}
.image-frame > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative; z-index: 1;
  /* subtle color punch for hacker aesthetic */
  filter: saturate(1.05) contrast(1.02);
}
.image-frame::before {
  /* frosted glass overlay (blurred) */
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}
.image-frame::after {
  /* hero caption badge (accessible overlay) */
  content: "Echoes in the Dark";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: .4px;
  color: #041f0f;
  background: rgba(0,255,136,.88);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 3;
  box-shadow: 0 6px 20px rgba(0,255,136,.65);
}

/* Footer and product ad (CTA area) */
footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: #c9ffd3;
  z-index: 0;
}
.product-ad {
  display: inline-block;
  background: rgba(0,0,0,.55);
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0,255,140,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  margin-top: .75rem;
}
.product-ad h3 {
  font-size: .95rem;
  margin: 0 0 .4rem;
  color: #aaffcc;
}
.product-ad a {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a2a14 0%, #0a4a1a 100%);
  color: #eafff0;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0,255,140,.6);
  box-shadow: 0 6px 14px rgba(0,255,140,.4);
  transition: transform .15s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,255,140,.6);
  text-decoration: none;
}
.product-ad a:focus-visible {
  outline: 3px solid #00ff88;
  outline-offset: 2px;
}
footer p { margin: .4rem 0 0; font-size: .9rem; color: #a6ffd0; }

/* Focus visibility for accessibility on interactive elements */
a:focus-visible, button:focus-visible {
  outline: none;
  border-radius: 6px;
  outline: 3px solid #00ff88;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,255,136,.15);
}

/* Responsive adjustments (mobile-first) */
@media (min-width: 600px) {
  .image-frame { width: min(1000px, 92vw); }
  .image-frame::after { font-size: 1rem; padding: .7rem 1.15rem; }
}
@media (min-width: 1024px) {
  :root { --green: #00ff88; }
  .image-frame { border-radius: 18px; }
  .image-frame::after { font-size: 1.05rem; }
  footer { font-size: 1.02rem; }
  .product-ad { padding: .95rem 1.15rem; }
}