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

/* Color palette for magenta carbon-fiber + beige hacker vibe */
:root {
  --bg: #2b002b;            /* deep magenta base */
  --beige: #f0e6d3;          /* beige foreground/text */
  --glass: rgba(255,255,255,0.18);
  --glass-border: rgba(255,255,255,.45);
  --accent: #ff4d9e;           /* neon pink accent */
  --shadow: rgba(0,0,0,.35);
  --button1: #ffd9a8;
  --button2: #e6c58f;
  --button1-text: #2b1410;
  --focus: #00e6ff;
}

/* Magenta carbon-fiber background (patterned, lightweight) */
body {
  color: var(--beige);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(45deg, rgba(255,0,170,.15) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,0,170,.15) 25%, transparent 25%);
  background-size: 12px 12px;
  background-position: 0 0, 6px -6px;
  line-height: 1.4;
  min-height: 100%;
}

/* Layout: mobile-first hero-like presentation */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 160px);
}

/* Frosted glass card around the image (hero frame) */
.image-frame {
  width: min(92%, 860px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  transition: transform .25s ease;
}
.image-frame:hover { transform: translateY(-2px); }

/* The image itself scales nicely */
.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 20px rgba(0,0,0,.25);
}

/* Footer with a featured product CTA in frosted glass vibe */
footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--beige);
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.15) 100%);
}

/* Product ad area as a frosted panel with neon-ish glow */
.product-ad {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: .75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.product-ad h3 {
  font-size: 1rem;
  margin: 0 0 .5rem 0;
  letter-spacing: .3px;
}
.product-ad a {
  text-decoration: none;
  color: inherit;
}
.product-ad a p {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--button1-text);
  background: linear-gradient(135deg, var(--button1) 0%, var(--button2) 100%);
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a p:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.3);
}
.product-ad a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* Ensure links inside reset inherit color if needed */
a, a:visited { color: inherit; text-decoration: none; }

/* Accessibility: reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .image-frame { transition: none; }
  .product-ad a p { transition: none; }
}

/* Responsive tweaks */
@media (min-width: 640px) {
  main { padding: 3rem 2rem; min-height: calc(100vh - 180px); }
  .image-frame { width: min(82%, 900px); }
}
@media (min-width: 1024px) {
  main { padding: 4rem 2.5rem; }
  .image-frame { width: min(70%, 980px); }
  footer { padding: 2.5rem 0; }
}