/* Global reset and color palette */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --olive: #6b8b23;
  --olive-dark: #435e12;
  --bg-glass: rgba(16, 24, 16, 0.65);
  --border-glass: rgba(255,255,255,0.18);
  --text: #e9f5e9;
  --muted: #cbdcc9;
  --focus: 0 0 0 3px rgba(168,230,96,.65);
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  /* Red galaxy starscape background (layered gradients for a hacker-cyberpunk vibe) */
  background-color: #100;
  background-image:
    /* subtle red nebula shimmers */
    radial-gradient(circle at 15% 20%, rgba(255,60,60,.20) 0 20px, transparent 21px),
    radial-gradient(circle at 60% 40%, rgba(255,100,100,.18) 0 22px, transparent 23px),
    radial-gradient(circle at 80% 70%, rgba(180,0,0,.14) 0 18px, transparent 19px),
    /* faint distant stars */
    radial-gradient(circle at 5% 80%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    /* base gradient to deepen the red space */
    linear-gradient(#2a0000 0%, #100000 60%, #090000 100%);
  background-size: cover;
  background-attachment: fixed;
  "prefers-color-scheme: dark";
}

/* Light reset for padding/margins on content containers */
main { display: grid; place-items: center; padding: 2rem 1rem; min-height: calc(100vh - 160px); }

/* Frosted glass hero frame surrounding the image (hacker/neo-noir) */
.image-frame {
  width: min(92%, 900px);
  padding: 1rem;
  border-radius: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}

/* The image itself */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  /* subtle glow to reinforce cyberpunk vibe around the image */
  box-shadow: inset 0 0 0 transparent, 0 0 16px rgba(120,255,180,.08);
}

/* Footer and product ad (CTA) styling */
footer {
  padding: 1.25rem;
  text-align: center;
  color: #e7f8e7;
}
.product-ad {
  display: inline-block;
  padding: .5rem 0;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  margin-bottom: .75rem;
}
.product-ad h3 {
  font-size: 0.95rem;
  margin: 0 0 .25rem;
  color: #dffbdc;
  letter-spacing: .2px;
}
.product-ad a {
  display: inline-block;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a2b0a 0%, #2a6a0a 100%);
  color: #eaf9e8;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: linear-gradient(135deg, #1f3f0e 0%, #1a2b0a 100%); }
.product-ad a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(168,230,96,.65); }
footer p { margin: .5rem 0 0; font-size: .88rem; opacity: .85; }

/* Focus styles for accessibility on interactive elements */
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Responsive polish */
@media (min-width: 600px) {
  main { padding: 3rem 1rem 2rem; }
  .image-frame { padding: 1.25rem; }
  .product-ad h3 { font-size: 1rem; }
}
@media (min-width: 900px) {
  main { padding: 5rem 0 2rem; }
  .image-frame { border-radius: 20px; padding: 1.4rem; }
  footer { padding-bottom: 2rem; }
}