/* Global reset */
* { box-sizing: border-box; }
html, body { height: 100%; padding: 0; margin: 0; }

/* Theme: violet metallic + lime hacker vibe, frosted glass accents */
:root {
  --lime: #bfff00;
  --lime-dark: #9bd600;
  --violet-1: #2a0055;
  --violet-2: #7a0bd6;
  --glass: rgba(255,255,255,0.08);
  --edge: rgba(255,255,255,0.22);
  --blur: 8px;
  --shadow: 0 8px 28px rgba(0,0,0,0.25);
  --text: #eaffff;
}
:focus { outline: none; }

/* Page background: violet metallic sheen with lime accents */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  min-height: 100vh;
  background: 
    linear-gradient(135deg, rgba(42,0,85,0.35) 0%, rgba(0,0,0,0) 50%),
    radial-gradient(circle at 15% 0%, rgba(176,255,0,0.15) 0, transparent 40%),
    linear-gradient(135deg, #1a003f 0%, #0b0014 60%, #0a0014 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(200,255,0,0.12) 40%, rgba(0,0,0,0) 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: sheen 12s linear infinite;
  opacity: 0.25;
}
@keyframes sheen { 0% { transform: translateX(-20%); } 100% { transform: translateX(20%); } }

main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
  min-height: calc(100vh - 140px);
}

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(92%, 1100px);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: saturate(120%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.15);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  outline: 0;
}

/* Footer with frosted ad card (CTA) */
footer {
  padding: 1.75rem 1rem 2rem;
  display: grid;
  place-items: center;
}
.product-ad {
  display: inline-block;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 240px;
}
.product-ad h3 { margin: 0 0 0.5rem; font-size: 1rem; color: #eaffc7; }
.product-ad a { text-decoration: none; display: inline-block; }
.product-ad p {
  margin: 0;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #16f35a 0%, #a6ff4e 100%);
  color: #03160a;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}
.product-ad p:focus { outline: 2px solid var(--lime); outline-offset: 2px; }
.product-ad p:hover { transform: translateY(-1px); }

a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

/* Responsive: mobile-first, then scale for larger viewports */
@media (min-width: 640px) {
  main { padding: 3rem 1.25rem; min-height: calc(100vh - 180px); }
  .image-frame { width: min(92%, 980px); }
  .product-ad { min-width: 300px; }
}
@media (min-width: 1024px) {
  .image-frame { padding: 1.25rem; border-radius: 22px; }
  .product-ad { padding: 1.15rem 1.6rem; }
  .product-ad h3 { font-size: 1.05rem; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}