/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #e9e0ff;
  --muted: #d9c4ff;
  --bg-1: #1a0f0b;
  --bg-2: #2a120f;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
  --violet: #7b3cff;
  --violet-deep: #5a1ccf;
}

html, body { height: 100%; }

/* Brown-noise texture + violet cyberpunk vibe */
body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(135deg, var(--bg-1) 0%, #2a130e 60%, #1a0f0b 100%);
  /* layered speckle to simulate brown noise texture */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.15) 1px, transparent 2px),
    radial-gradient(circle at 20px 10px, rgba(0,0,0,.07) 1px, transparent 2px),
    radial-gradient(circle at 40px 30px, rgba(0,0,0,.05) 1px, transparent 2px),
    radial-gradient(circle at 60px 50px, rgba(0,0,0,.04) 1px, transparent 2px),
    linear-gradient(135deg, #6b3e1e 0%, #402014 60%, #1d0f0a 100%);
  background-size: 80px 80px, 100px 100px, 120px 120px, 140px 140px, cover;
  background-blend-mode: multiply;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first hero with frosted glass panels */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: 60vh;
}

.image-frame {
  width: min(92vw, 720px);
  border-radius: 16px;
  padding: 0.75rem;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(8px) saturate(1.25);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  outline: none;
}

footer {
  padding: 1.75rem 1rem;
  width: 100%;
  display: grid;
  place-items: center;
  margin-top: 1rem;
  background: transparent;
}

.product-ad {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  width: min(92vw, 720px);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: 0 6px 28px rgba(0,0,0,.4);
}

.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a3cff 0%, #a85aff 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 0 12px rgba(122, 60, 255, 0.6);
}
.product-ad a:focus-visible {
  outline: 3px solid #9a7dff;
  outline-offset: 2px;
}
.product-ad a:hover { filter: brightness(1.05); }

.product-ad p {
  margin: 0;
  color: #f6eaff;
  font-weight: 600;
}

/* Footer copy */
footer p {
  margin-top: .75rem;
  color: #e7d8ff;
  opacity: .95;
  text-align: center;
}

/* Accessibility: ensure high contrast focus for keyboard users */
:focus-visible {
  outline: 3px solid #9a7dff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks */
@media (min-width: 860px) {
  main { padding: 4rem 2rem; min-height: 70vh; }
  .image-frame { width: min(800px, 62vw); }
  .product-ad { grid-template-columns: auto 1fr; }
}
