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

/* Theme: black sunset gradient with lime hacker accents and frosted glass */
:root {
  --lime: #39ff14;
  --lime-soft: rgba(57,255,20,.55);
  --bg-dusk: #0a0a0a;
  --bg-darker: #000;
  --card: rgba(12,12,12,.56);
  --card-border: rgba(0,255,120,.45);
  --text: #e8ffd4;
  --text-dim: #b8ffb1;
  --radius: 14px;
}

html, body {
  font-family: ui-sans-serif, system-ui, -apple-system;
  color: var(--text);
  min-height: 100%;
  background: linear-gradient(135deg, #000 0%, #161616 50%, #000 100%);
  /* subtle sunset hints with radial glows */
  background-blend-mode: normal;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(0,255,0,.15) 0 20%, transparent 30%),
              radial-gradient(circle at 80% -10%, rgba(255,140,0,.15) 0 25%, transparent 35%);
  pointer-events: none;
  mix-blend-mode: screen;
  filter: saturate(1.2);
  z-index: 0;
}

/* Page layout */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  position: relative;
  z-index: 1;
}

.image-frame {
  width: min(92vw, 1100px);
  display: flex; justify-content: center; align-items: center;
  padding: 1rem;
  margin: 1.25rem auto 0;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(0,255,120,.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0,255,120,.25);
}

.image-frame img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid rgba(0,255,120,.5);
  box-shadow: 0 8px 28px rgba(0,0,0,.6);
}

/* Frosted glass footer card for product ad */
footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0 2rem;
  gap: .75rem;
  z-index: 1;
}

.product-ad {
  width: min(92vw, 720px);
  padding: 1rem 1rem;
  border-radius: 14px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 28px rgba(0,0,0,.5);
}

.product-ad h3 {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  color: #b9ff6b;
}
.product-ad a {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(57,255,20,.6);
  background: rgba(0,0,0,.25);
  color: #eaffd6;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: rgba(0,0,0,.35); }
.product-ad a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

footer p {
  margin: 0;
  text-align: center;
  color: #aaff96;
  opacity: .9;
  font-size: .92rem;
}

/* Accessible link focus for entire page (in case of keyboard nav) */
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main { padding-top: 2rem; }
  .image-frame { padding: 1.25rem; }
  .product-ad { padding: 1.25rem; }
}
