/* Global reset and clean, modern hacker theme */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

:root {
  --green: #39ff14;
  --green-soft: #2cff7a;
  --bg: #000;
  --card: rgba(0,0,0,.5);
  --panel: rgba(0,255,140,.45);
}

html, body {
  margin: 0;
  padding: 0;
  color: #eafff0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  background: var(--bg);
  /* Black radial gradient background with green glow for hacker vibe */
  background-image:
    radial-gradient(circle at 15% 0%, rgba(57,255,20,.15) 0%, rgba(0,0,0,0) 40%),
    radial-gradient(circle at 85% 20%, rgba(0,255,140,.12) 0%, rgba(0,0,0,0) 40%);
  background-size: cover;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  position: relative;
  isolation: isolate;
}

/* Subtle cyber scanlines overlay for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,255,140,.04) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Frosted glass image frame (hero) */
.image-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(0, 255, 140, .55);
  box-shadow: 0 20px 60px rgba(0,255,140,.45);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  display: grid;
  place-items: center;
}

.image-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  filter: saturate(1.05);
  /* ensure good contrast over dark bg */
  mix-blend-mode: normal;
}

/* Soft glow behind the glass to enhance cyberpunk vibe */
.image-frame::before {
  content: "";
  position: absolute;
  left: -6%;
  top: -6%;
  width: 112%;
  height: 112%;
  background: radial-gradient(circle at center,
    rgba(0,255,140,.25) 0%,
    rgba(0,0,0,0) 40%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

/* Inner glass sheen accent */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 60px rgba(0,255,140,.25);
  z-index: 0;
  pointer-events: none;
}

/* Ensure foreground content sits above the frame */
.image-frame > * { position: relative; z-index: 1; }

/* Accessible focus ring for interactive elements if any inside hero later */
:focus-visible {
  outline: 2px solid #2aff7e;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Footer / product ad with prominent CTA */
footer {
  text-align: center;
  padding: 1.2rem;
  color: #d7ffd4;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.25) 60%, rgba(0,0,0,.0) 100%);
  border-top: 1px solid rgba(0,255,140,.35);
  z-index: 1;
  width: 100%;
  box-shadow: 0 -8px 40px rgba(0,0,0,.25);
}

.product-ad {
  display: inline-block;
  padding: .6rem .75rem;
  border-radius: 14px;
  background: rgba(0,0,0,.48);
  border: 1px solid rgba(0,255,140,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,255,140,.35);
  margin-bottom: .75rem;
}

.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  color: #aaffd9;
  line-height: 1.2;
  letter-spacing: .2px;
}

.product-ad a {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  /* neon green CTA for visibility and hacker vibe */
  background: linear-gradient(135deg, #0b3f0f 0%, #2aff70 100%);
  color: #041c0a;
  border: 1px solid rgba(0, 100, 60, .9);
  box-shadow: 0 0 12px rgba(42,255,112,.9);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover,
.product-ad a:focus {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 0 18px rgba(42,255,112,.95);
}
.product-ad a:focus-visible {
  outline: 2px solid #2aff7e;
  outline-offset: 2px;
}

footer p {
  margin: .25rem 0 0;
  font-size: .9rem;
  color: #a4f6a5;
}

/* Responsive adjustments (mobile-first) */
@media (min-width: 768px) {
  main { padding: 2.5rem 2rem; }
  .image-frame { max-width: 900px; aspect-ratio: 21 / 9; }
  footer { padding: 1.5rem 0.5rem; }
  .product-ad { margin-top: 0.25rem; }
}