/* Minimal reset and olive polka-dot backdrop with violet hacker theme */

:root{
  --olive: #6b7a2f;
  --olive-dark: #4b5f1f;
  --violet: #8a2be2;
  --violet-dark: #5b00a3;
  --bg-dark: #0a0b14;
  --text: #e9e6ff;
  --glow: 0 0 14px rgba(138,43,226,.75);
}

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

html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  background-color: var(--olive);
  /* olive polka dots + violet haze */
  background-image:
    radial-gradient(circle, rgba(0,0,0,.18) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,0,0,.14) 1px, transparent 1px),
    linear-gradient(135deg, rgba(128,0,128,.15), rgba(0,0,0,.15) 60%, rgba(0,0,0,.25));
  background-position: 0 0, 10px 10px, 0 0;
  background-size: 20px 20px, 20px 20px, cover;
  background-blend-mode: overlay;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layout scaffolding */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.image-frame {
  width: min(94vw, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  position: relative;
  background: rgba(0,0,0,.15);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  /* subtle violet glow on the image for cyberpunk vibe */
  box-shadow: inset 0 0 0 0 rgba(0,0,0,0);
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  /* frosted glass overlay on top of image for depth */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(20,0,40,.25) 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
  /* subtle glow edge to imply glassy panel */
  box-shadow: inset 0 0 40px rgba(138,43,226,.25);
  border-radius: 16px;
}

/* Footer section with frosted glass CTA */
footer {
  padding: 2rem 1rem 3rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-ad {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 1rem;
  width: min(92vw, 520px);
  text-align: left;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  color: #f7f5ff;
}
.product-ad h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: .2px;
}
.product-ad a {
  text-decoration: none;
  display: block;
}
.product-ad p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  box-shadow: 0 6px 14px rgba(139,0,255,.45);
  transition: transform .2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); }

.product-ad a:focus-visible p,
.product-ad a:focus-visible {
  outline: 3px solid #a6a6ff;
  outline-offset: 2px;
  border-radius: 999px;
}

/* Ensure focus accessibility for all interactive elements if present */
a, button {
  color: inherit;
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid #a0a4ff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 720px) {
  .product-ad { padding: 1.25rem; }
  .product-ad h3 { font-size: 1.15rem; }
}
@media (min-width: 1024px) {
  main { padding: 3rem 0; }
  .image-frame { border-radius: 20px; }
  footer { padding: 2.5rem 0 4rem; }
  .product-ad { width: 460px; }
}
