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

/* Theme: future cyberpunk with frosted glass, purple blur, maroon accents */
:root {
  --maroon: #7a001a;
  --maroon-dark: #4b001a;
  --purple: #7e4bd8;
  --bg: #0b001a;
  --text: #e9e0ea;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
  --blur: 8px;
  --shadow: 0 12px 40px rgba(0,0,0,.5);
}

html { font-size: 16px; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: #0b001a;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Purple abstract blur background (mobile-first, subtle yet cinematic) */
body::before {
  content: "";
  position: fixed;
  width: 120vmax;
  height: 120vmax;
  left: -10vmax;
  top: -10vmax;
  background:
    radial-gradient(circle at 20% 20%, rgba(180,0,255,.55) 0%, transparent 40%),
    radial-gradient(circle at 70% 25%, rgba(120,0,255,.45) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(200,0,255,.40) 0%, transparent 50%),
    linear-gradient(135deg, #120018 0%, #0b0011 60%, #0a001a 100%);
  background-blend-mode: screen;
  filter: saturate(110%);
  z-index: -1;
  pointer-events: none;
  /* subtle blur to enhance "abstract blur" feel */
  filter: blur(40px) saturate(110%);
}

/* Layout container for main content (hero) */
main {
  display: block;
  padding: 1.25rem 1rem 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Frosted glass image frame (hero image) */
.image-frame {
  width: min(92%, 980px);
  margin: 28px auto;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.image-frame:hover { transform: scale(1.01); }

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: middle;
}

/* Footer with a featured product CTA (prominent) */
footer {
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  background: rgba(12, 0, 20, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Product ad block (frosted glass panel) */
.product-ad {
  display: inline-block;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 0.75rem;
}
.product-ad h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  color: #f3e7f0;
  letter-spacing: .4px;
}
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  background: var(--maroon);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover {
  background: #980018;
  transform: translateY(-1px);
}
.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Ensure accessibility for text contrast on baseline */
p { margin: 0; color: rgba(233, 226, 235, 0.92); }

/* Responsive, mobile-first tweaks */
@media (min-width: 640px) {
  .image-frame { width: min(90%, 1000px); margin: 40px auto; }
  footer { padding: 2rem 1rem 2.5rem; }
}
@media (min-width: 900px) {
  main { padding: 2rem 1rem 1rem; }
  .product-ad { margin-top: 0.5rem; }
}
