/* Light reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Theme: red grid paper backdrop with green hacker aesthetic, frosted glass panels */
:root {
  --bg: #0b0b0b;
  --grid: #7a0000;
  --grid-dim: rgba(122,0,0,.8);
  --panel: rgba(0,0,0,.38);
  --panel-edge: rgba(0,255,120,.6);
  --text: #d7ffd9;
  --muted: #a7ffd0;
  --green: #39ff7a;
  --green-dark: #1bd24a;
  --glow: 0 0 12px rgba(57,255,122,.8);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background-color: #120909;
  /* Red grid paper background: two-direction grid lines over a dark base */
  background-image:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 24px 24px;
  min-height: 100vh;
  padding: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout */
main { display: grid; place-items: center; padding-top: 2rem; }
footer { margin-top: 2rem; display: grid; justify-items: center; padding: 1rem 0 2rem; }

.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(0,255,120,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  display: grid;
  place-items: stretch;
  isolation: isolate;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  /* subtle neon tint synced with hacker vibe */
  mix-blend-mode: normal;
}

/* Frosted glass panel look around the image (subtle highlight) */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(to bottom right, rgba(0,255,120,.15), rgba(0,0,0,.15));
  mix-blend-mode: screen;
  opacity: 0.3;
  z-index: 0;
}
.image-frame { position: relative; }
.image-frame > * { position: relative; z-index: 1; }

/* Footer / ad card (prominent CTA) */
.product-ad {
  width: min(92vw, 720px);
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(0,255,120,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  gap: .6rem;
  margin: 0 0 .75rem;
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}
.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #eaffd9;
  display: flex;
  align-items: center;
  gap: .5rem;
  text-shadow: 0 0 6px rgba(57,255,122,.75);
}
.product-ad a { text-decoration: none; display: inline-block; }

/* CTA button style (works with <a> wrapping a <p> in provided HTML) */
.product-ad a {
  padding: .75rem 1.1rem;
  border-radius: 10px;
  background: linear-gradient(#13f06a, #0ec055);
  color: #062b0e;
  font-weight: 700;
  border: 1px solid rgba(0,255,120,.6);
  box-shadow: 0 6px 14px rgba(20,224,110,.9);
  text-align: center;
}
.product-ad a > p { margin: 0; } /* neutralize default p margins inside a */
.product-ad a:focus-visible,
a:focus-visible {
  outline: 3px solid #3aff7a;
  outline-offset: 2px;
}
.product-ad a:hover { transform: translateY(-1px); }

footer p {
  margin: 0.25rem 0 0;
  text-align: center;
  color: #b6ffd4;
  font-size: 0.9rem;
}

/* Focus accessibility for keyboard users on all interactive elements */
a:focus-visible { outline: 3px solid #3aff7a; outline-offset: 2px; }

/* Responsive tweaks (mobile-first) */
@media (min-width: 640px) {
  body { padding: 1.25rem; }
  .image-frame { width: 68vw; }
}
@media (min-width: 1024px) {
  .image-frame { width: 720px; }
  footer { padding: 1.5rem 0; }
}