/* Reset and base setup */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #800000;                 /* maroon background */
  --glass: rgba(255, 255, 255, 0.08); /* frosted glass */
  --glass-border: rgba(255, 255, 255, 0.18);
  --accent: #9b5cff;              /* purple accent */
  --text: #f9f0ff;                /* accessible light text */
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --focus: #ffd966;                /* focus ring */
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: UI-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 60vh;
}

.image-frame {
  position: relative;
  width: min(92vw, 740px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 0 40px rgba(157, 0, 255, .35);
  pointer-events: none;
}

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

/* Footer / CTA area */
footer {
  text-align: center;
  padding: 1.25rem 1rem 3rem;
}

.product-ad {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: .6rem .8rem;
  border-radius: 12px;
  margin: 0.5rem 0 0;
}

.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  color: #ffdafe;
  text-shadow: 0 0 8px rgba(157, 0, 255, .6);
}

.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.product-ad a > p {
  margin: 0;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(170, 0, 255, 0.95), rgba(120, 0, 255, 0.95));
  color: white;
  font-weight: 700;
  white-space: nowrap;
}

/* Focus styles for accessibility */
.product-ad a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus-visible { outline: none; }

/* Subtle interactions */
.product-ad a:hover { transform: translateY(-1px); }

/* Ensure proper spacing for all paragraphs inside footer */
p { margin: 0; }

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; min-height: 70vh; }
  .image-frame { width: 860px; }
}