/* Reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue";
  color: #eae0ff;
  background: linear-gradient(135deg, #14001e 0%, #1b0050 40%, #0a0023 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
/* Gold low-poly triangle illusion (soft, responsive) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* layered gradients create triangular facets -> gold accents on violet */
  background-image:
    linear-gradient(60deg, rgba(212,175,55,.25) 25%, transparent 25%),
    linear-gradient(-60deg, rgba(212,175,55,.25) 25%, transparent 25%),
    linear-gradient(120deg, rgba(0,0,0,0) 25%, rgba(212,175,55,.18) 25%);
  background-size: 60px 60px;
  background-position: 0 0, 0 0, 0 0;
  opacity: 0.9;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Layout */
main { display: grid; place-items: center; min-height: calc(100vh - 160px); padding: 1.25rem; }
.image-frame {
  position: relative;
  width: min(92vw, 720px);
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  overflow: hidden;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 0 60px rgba(180,140,0,.6);
  pointer-events: none;
  z-index: -1;
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
}

/* Footer / CTA area (prominent button) */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: #e6d7ff;
  background: linear-gradient(to top, rgba(10,0,40,.65), rgba(10,0,40,.25) 60%, rgba(0,0,0,0) 100%);
}
.product-ad {
  display: inline-block;
  padding: .8rem 1rem;
  border-radius: 12px;
  background: rgba(16,0,40,.6);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: .75rem;
}
.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  color: #ffd966;
}
.product-ad a {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166 0%, #f5b301 60%, #e2a900 100%);
  color: #1a0e00;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.product-ad a:focus-visible {
  outline: 3px solid #8be4ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(139,228,255,.25);
}
.product-ad p { margin: 8px 0 0; color: #fff; font-weight: 600; }

footer p {
  margin: 0.75rem 0 0;
  font-size: .9rem;
  color: #b29bd2;
}

/* Accessibility: visible focus for anchors and buttons */
a:focus-visible, button:focus-visible {
  outline: 3px solid #8be4ff;
  outline-offset: 2px;
  border-radius: 6px;
}
a, button { text-decoration: none; color: inherit; }

/* Responsive tweaks - mobile-first, then scale up */
@media (min-width: 768px) {
  main { min-height: 84vh; padding: 2rem; }
  .image-frame { padding: 1.5rem; border-radius: 18px; }
}
@media (min-width: 1024px) {
  .image-frame { width: 60%; }
  footer { padding-bottom: 2rem; }
}