/* Mobile-first, single stylesheet for a cyberpunk lime hacker theme with frosted glass hero */

/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --bg: #0b0f12;
  --panel: rgba(7, 12, 12, 0.55);
  --lime: #a6ff2a;
  --limeDark: #32cd32;
  --text: #e8ffd5;
  --textSoft: #c6ffd0;
  --glow: 0 0 12px rgba(166,255,42,.9);
  --cardBorder: rgba(0, 255, 170, .55);
}
html { color-scheme: dark; }

/* Lime noise texture background (subtle speckle layer) */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background-color: var(--bg);
  /* layered lime speckles for a hacker vibe (mobile-first) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(166,255,48,.22) 1px, transparent 2px),
    radial-gradient(circle at 6px 6px, rgba(0,0,0,.08) 1px, transparent 2px),
    radial-gradient(circle at 10px 2px, rgba(166,255,48,.15) 1px, transparent 2px);
  background-size: 8px 8px, 16px 16px, 24px 24px;
  background-repeat: repeat;
  /* subtle glow overlay to push cyberpunk vibe */
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.25);
  min-height: 100vh;
}

/* Subtle fixed layer to intensify lime tone without overpowering content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 70% 20%, rgba(166,255,42,.08) 0 , transparent 40%),
              radial-gradient(circle at 20% 60%, rgba(0,255,120,.08) 0 40%, transparent 60%);
  mix-blend-mode: screen;
  z-index: 0;
}

/* Layout foundation (mobile-first) */
main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem 2rem;
  min-height: calc(100vh - 120px);
}

/* Frosted glass hero frame containing the image */
.image-frame {
  width: min(1100px, 92%);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  padding: 0.5rem;
  display: grid;
  overflow: hidden;
  align-items: stretch;
  justify-items: stretch;
  background: rgba(8, 12, 12, 0.40); /* frosted glass base */
  border: 1px solid rgba(0, 255, 170, 0.60);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 8px 40px rgba(0, 255, 140, 0.25);
  position: relative;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  transform: translateZ(0);
  /* subtle lime tint to emphasize hacker vibe on the image */
  filter: saturate(1.05) contrast(1.03);
}
.image-frame:focus { outline: none; }

/* Neon lime glow edging (accent) */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow:
    0 0 0 2px rgba(0, 255, 170, 0.4),
    0 0 20px 6px rgba(0, 255, 170, 0.25);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Footer / product ad styling (neon CTA) */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--textSoft);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(0, 255, 170, 0.35);
}
.product-ad {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
}
.product-ad h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #d9ffbf;
  letter-spacing: .4px;
}
.product-ad a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  /* prominent lime CTA */
  background: linear-gradient(135deg, rgba(60,255,150,.95), rgba(0,255,140,.95));
  color: #06140a;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 18px rgba(0,255,140,.6);
  transition: transform .15s ease, filter .15s ease;
}
.product-ad a p { margin: 0; padding: 0; line-height: 1.15; }
.product-ad a:hover { transform: translateY(-1px); filter: brightness(1.04); }
.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0,255,170,.4);
}
.product-ad p { margin: 0.25rem 0 0; font-size: .92rem; color: #cfffca; }

/* Improve accessibility on high-contrast modes */
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive refinements (tablet up) */
@media (min-width: 640px) {
  main { padding: 2rem 1.25rem 3rem; }
  .image-frame { border-radius: 22px; }
}
@media (min-width: 1024px) {
  main { padding: 3rem 1.5rem 4rem; }
  .image-frame { width: min(1200px, 92%); }
  footer { padding: 2rem 1.5rem; }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}