/* Reset and root tokens */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --lime: #9aff60;
  --coral: #ff6b61;
  --coral-dark: #e15e4a;
  --bg-dark: #06140c;
  --text: #eafff7;
  --glass: rgba(255, 255, 255, 0.08);
  --glow: 0 6px 14px rgba(0, 0, 0, .6);
}

/* Light mobile-first layout with lime waves background (neon hacker vibe) */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: var(--bg-dark);
  /* Lime wave-esque backdrop: layered gradients for glow and subtle motion hint */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(154, 255, 110, 0.28) 0 20px, transparent 22px),
    radial-gradient(circle at 70% 0%, rgba(154, 255, 110, 0.20) 0 22px, transparent 24px),
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60%);
  background-size: 60px 60px, 60px 60px, auto;
  background-repeat: repeat;
  /* Subtle motion to feel cyberpunk */
  animation: neonPulse 20s linear infinite;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes neonPulse {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.15); }
}

/* Page scaffold */
main { padding: 1rem 1rem 0; display: block; }

.image-frame {
  position: relative;
  width: min(92%, 1100px);
  margin: 1rem auto 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--glow);
  /* Frosted glass edge via backdrop-filter on frame */
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(14, 20, 22, 0.4);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: crisp-edges;
  filter: saturate(1.05);
}

/* Frosted glass overlay on the hero image */
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,.25), rgba(255,255,255,.08) 60%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Subtle hero CTA as a frosted badge (text) */
.image-frame::after {
  content: "Shadows Beckon";
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: var(--text);
  font-weight: 700;
  font-size: .92rem;
  border: 1px solid rgba(255,255,255,.25);
  letter-spacing: .4px;
  pointer-events: none;
}

/* Footer and product ad styling (prominent CTA) */
footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  background: linear-gradient(to top, rgba(5, 15, 12, 0.9), rgba(5, 15, 12, 0.65));
  margin-top: 1rem;
}

.product-ad {
  display: inline-block;
  padding: .5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  margin-bottom: .75rem;
}

/* Ad heading and link styling */
.product-ad h3 {
  font-size: .95rem;
  margin: 0 0 .4rem;
  color: #dfffe9;
  letter-spacing: .3px;
}
.product-ad a { text-decoration: none; }

.product-ad a p {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: var(--coral);
  color: #04140f;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 6px 12px rgba(255,107,97,.6);
  transition: transform .2s ease;
}
.product-ad a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.product-ad a:hover p { transform: translateY(-1px); }

/* Improve contrast and keyboard accessibility for all links and buttons */
a, button {
  color: inherit;
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 600px) {
  main { padding-top: 2rem; }
  .image-frame { width: min(92%, 900px); }
}
@media (min-width: 900px) {
  .image-frame { width: min(70%, 1100px); }
  footer { padding: 2rem 1rem 3rem; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  animation: none;
  .image-frame::after { content: "Shadows Beckon"; }
}
