/* Global reset and color/visual system */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  /* palette: maroon gradient + purple hacker vibe */
  --bg-1: #2a000e;
  --bg-2: #2b003a;
  --bg-3: #1a002a;
  --maroon: #7a0a0a;
  --purple: #7a00ff;
  --cta-start: #a43bff;
  --cta-end: #6b00ff;

  --text: #e9dfff;
  --muted: rgba(233, 223, 255, 0.8);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --focus: 0 0 0 3px rgba(255, 209, 0, 0.65);
}
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.5;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(122,0,15,.9) 0%, rgba(43,0,58,.9) 60%, rgba(16,0,40,.95) 100%), 
              radial-gradient(circle at 10% -10%, rgba(123,0,123,.25), transparent 25%);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}
main {
  width: min(980px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0 1.5rem;
}
.image-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.04));
  mix-blend-mode: overlay;
  pointer-events: none;
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  filter: saturate(1.05);
}
footer {
  width: 100%;
  margin-top: auto;
  padding: 1.75rem 1rem 2rem;
  text-align: center;
}
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  width: min(92%, 520px);
  margin: 0.5rem auto 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #e8d5ff;
}
.product-ad a {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .15s ease, filter .15s ease;
}
.product-ad a:hover { transform: translateY(-1px); filter: brightness(1.05); }
.product-ad a:focus-visible { outline: var(--focus); outline-offset: 2px; }
footer p {
  margin: 0.75rem 0 0;
  color: rgba(233, 215, 246, 0.92);
  font-size: 0.92rem;
}

/* Accessibility helpers: focus outlines for keyboard users on all focusable elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
area:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks: mobile-first defaults; enhance on larger screens */
@media (min-width: 700px) {
  main { padding: 3rem 0 2rem; }
  .image-frame { padding: 1.75rem; }
  .product-ad { padding: 1.25rem 1.25rem; }
  .product-ad h3 { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  main { width: 980px; }
}