/* Minimal reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
:root {
  --bg-dark: #0b0a0f;
  --maroon: #6a0a0a;
  --maroon-2: #3a0a0d;
  --violet: #7a1aff;
  --violet-2: #4b0d7b;
  --glass: rgba(255,255,255,.08);
  --text: #e9e4f7;
  --muted: #cdbbd5;
}

html, body { color-scheme: dark; }

/* Background: maroon geometric shapes + violet cyberpunk vibe */
body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  /* layered shapes for hacker aesthetic */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(122,0,0,.25) 0 18px, transparent 19px),
    radial-gradient(circle at 70% 25%, rgba(122,0,0,.25) 0 18px, transparent 19px),
    radial-gradient(circle at 40% 70%, rgba(138,0,255,.25) 0 22px, transparent 23px),
    linear-gradient(135deg, rgba(20,0,40,.75), rgba(40,0,60,.75) 60%, rgba(20,0,40,.75) 100%);
  background-blend-mode: overlay, overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  min-height: 60vh;
}

/* Frosted glass hero container around the image with neon glow hints */
.image-frame {
  width: min(92vw, 980px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  position: relative;
  backdrop-filter: blur(6px) saturate(1.25);
  -webkit-backdrop-filter: blur(6px) saturate(1.25);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  isolation: isolate;
}

/* Neat violet glow border around the frosted card */
.image-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(122,0,255,.45) 50%, transparent 50%);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(122,0,255,.85));
  z-index: 0;
}

/* Image fills the frame */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle color wash for cyberpunk vibe without overpowering image */
  filter: saturate(1.05) contrast(1.05);
}

/* Footer and CTA styling to feel hacker/neo-futuristic */
footer {
  padding: 1.4rem 1rem;
  text-align: center;
  color: #f4e8ff;
  background: rgba(0,0,0,.25);
  margin-top: 1.25rem;
}

/* Product ad pill with neon violet tint */
.product-ad {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(122,0,255,.28);
  border: 1px solid rgba(255,255,255,.28);
  text-decoration: none;
  color: #fffaff;
  margin: 0 auto 0.75rem;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.product-ad:hover { transform: translateY(-1px); }

.product-ad h3 {
  font-size: .95rem;
  margin: 0;
  letter-spacing: .2px;
}

.product-ad a { color: inherit; text-decoration: none; }

/* CTA button style extracted from the existing link for visibility */
footer a.cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: linear-gradient(#a21cff, #6d00ff);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.45);
  margin-left: .5rem;
  box-shadow: 0 0 16px rgba(162, 28, 255, .65);
}
footer a.cta:focus-visible,
.image-frame:focus-visible,
.product-ad:focus-visible,
.product-ad a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
  border-radius: 10px;
}

/* Accessibility: ensure focus visibility for keyboard users on clickable areas */
:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; border-radius: 6px; }

/* Small screens: mobile-first tweaks (natural stacking) */
@media (max-width: 767.98px) {
  .image-frame { width: 100%; aspect-ratio: 16/9; }
  footer { font-size: 0.95rem; }
}

/* Larger screens: give the hero some breathing room and stronger glow */
@media (min-width: 768px) {
  main { padding: 2rem; }
  .image-frame { width: min(72vw, 1100px); }
  footer { padding: 1.75rem 1rem; }
}
