/* Cyberpunk hacker theme: single, mobile-first stylesheet with frosted glass, teal-red gradient, and prominent CTA */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --red: #ff2a2a;
  --red-dark: #c40d0d;
  --teal: #20e3b2;
  --teal-dark: #0a6b66;
  --bg-start: #001b1b;
  --bg-mid: #0f5a5a;
  --bg-mid2: #0b8a8a;
  --bg-end: #7a0000;
  --glass: rgba(255, 255, 255, 0.08);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: #e9fffb;
  /* Teal sunset gradient background with red hacker accents */
  background: radial-gradient(circle at 20% 0%, rgba(32,227,178,.15), transparent 40%),
              linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 40%, var(--bg-mid2) 60%, var(--bg-end) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light reset for layout */
main {
  display: grid;
  place-items: center;
  padding: 28px 16px;
  min-height: 60vh;
}

.image-frame {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  padding: 16px;
  display: grid;
  place-items: center;
  /* frosted glass effect */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform .3s ease;
}
.image-frame:hover { transform: translateY(-2px); }

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}

/* Footer with a featured product CTA */
footer {
  text-align: center;
  padding: 18px 16px 40px;
  color: #d9fff5;
  /* subtle neon edge */
  text-shadow: 0 0 8px rgba(0, 255, 170, 0.25);
}

.product-ad {
  display: inline-block;
  padding: 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 255, 255, 0.25);
  margin: 0 auto 12px;
}

.product-ad h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #baffff;
  text-shadow: 0 0 6px rgba(0, 255, 200, 0.6);
  letter-spacing: .4px;
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
}

.product-ad a p {
  margin: 0;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-block;
  background: #ff2a2a;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: .3px;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* Focus states for accessibility (keyboard users) */
:focus-visible {
  outline: 3px solid #7bdcb0;
  outline-offset: 2px;
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(123, 220, 176, .25);
}

/* Subtle neon glow for the CTA on focus/hover */
.product-ad a p:hover,
.product-ad a:focus-within p {
  background: #ff3a3a;
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.55);
  transform: translateY(-1px);
}

/* Responsive: mobile-first scaling */
@media (min-width: 640px) {
  main { padding: 40px 20px; }
  .image-frame { padding: 20px; border-radius: 22px; }
  .product-ad { margin-top: 6px; }
}

@media (min-width: 1024px) {
  main { padding: 60px 24px; }
  .image-frame { border-radius: 24px; padding: 22px; }
}
