/* CSS: Cyberpunk hacker-themed landing with yellow checkerboard and frosted glass */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: #eafff0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  background-color: #0b0f0a;
  /* Yellow checkerboard background */
  background-image:
    linear-gradient(45deg, #d9c833 25%, transparent 25%),
    linear-gradient(-45deg, #d9c833 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d9c833 75%),
    linear-gradient(-45deg, transparent 75%, #d9c833 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Layout: mobile-first, center content */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 180px);
}

/* Frosted glass image frame (hero) */
.image-frame {
  position: relative;
  width: min(92vw, 980px);
  background: rgba(0,0,0,.28);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(0,255,120,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,255,120,.25);
}

.image-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: linear-gradient(90deg, rgba(0,255,0,.0), rgba(0,255,0,.8), rgba(0,255,0,.0));
  mix-blend-mode: screen;
  opacity: .75;
}

.image-frame::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(0,255,0,.8) 0 6px, rgba(0,0,0,0) 6px 12px);
  opacity: .3;
}

/* Image within frame */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,255,120,.6);
}

/* Footer with featured product (glass card) */
footer {
  padding: 1.75rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: transparent;
}

.product-ad {
  width: min(92vw, 640px);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(0,255,120,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: 0 6px 28px rgba(0,255,120,.25);
}

.product-ad h3 {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
  color: #d7ff8a;
  letter-spacing: .3px;
}

.product-ad a {
  display: inline-block;
  text-decoration: none;
}

.product-ad a p {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,255,120,.6), rgba(0,255,120,.2));
  color: #041;
  font-weight: 700;
  border: 1px solid rgba(0,255,120,.9);
}

/* Small footer text styling */
footer p {
  margin: .25rem 0 0;
  color: #bfffb4;
  font-size: .9rem;
}

/* Focus styles for accessibility */
a:focus-visible {
  outline: 3px solid #39ff14;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks */
@media (min-width: 600px) {
  .image-frame { padding: 22px; }
  .product-ad { width: min(80vw, 780px); }
}

@media (min-width: 1024px) {
  main { padding: 3rem 0; }
  .image-frame { padding: 26px; }
  .product-ad { padding: 1.25rem 1.5rem; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .image-frame::before, .image-frame::after { animation: none; }
}