*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg0: #0a0a0f;
  --text: #e9e7ff;
  --accent: #8a5cff;
}
html, body { margin: 0; padding: 0; color: var(--text); background-color: var(--bg0); }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Violet noise texture background (layered gradients) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(170,0,255,.22) 0 2px, transparent 2px),
    radial-gradient(circle at 9px 14px, rgba(120,0,255,.18) 0 2px, transparent 2px),
    linear-gradient(135deg, rgba(40,0,90,.92), rgba(0,0,0,.92));
  background-size: 14px 14px, 16px 16px, 100% 100%;
  background-blend-mode: overlay;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  flex: 1;
}

.image-frame {
  position: relative;
  width: min(92vw, 960px);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 0, 210, .25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 0;
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: saturate(1.05) brightness(0.98);
}

footer {
  padding: 1rem;
}

.product-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, .46);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 28px rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #e7e3ff;
  text-shadow: 0 0 6px rgba(138, 43, 226, .9);
}
.product-ad a { display: inline-block; text-decoration: none; }
.product-ad a p { margin: 0; }
.product-ad a {
  padding: .65rem 1.05rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #8a5cff, #4b2cff);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(138, 43, 226, .8);
  border: 0;
}
.product-ad a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Accessibility for users with reduced motion */
@media (prefers-reduced-motion: reduce) {
  .product-ad a { transition: none; }
  .product-ad a:hover { transform: none; }
}

@media (max-width: 600px) {
  .image-frame { width: 94vw; }
  .product-ad { flex-wrap: wrap; align-items: center; }
  .product-ad h3 { font-size: .95rem; }
}