/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Theme: future cyberpunk with purple noise and frosted glass */
:root {
  --bg: #0b001a;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-solid: rgba(255, 255, 255, 0.15);
  --text: #e6e0ff;
  --muted: #c3b6d8;
  --accent: #a855f7;
  --accent-dark: #6b28d9;
  --shadow: 0 12px 30px rgba(0,0,0,.45);
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(168,85,247,.28) 0 6px, transparent 6px),
    radial-gradient(circle at 75% 60%, rgba(120,0,170,.22) 0 6px, transparent 6px),
    linear-gradient(135deg, rgba(24,0,60,.95), rgba(0,0,0,.25) 60%, rgba(60,0,90,.95));
  background-size: 60px 60px, 90px 90px, cover;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle purple grain / noise feel via layered gradients (light inline texture) */
body {
  background-blend-mode: overlay, overlay, normal;
}

/* Accessibility focus outline for keyboard users only (visible) */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Layout: mobile-first */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.image-frame {
  width: 100%;
  max-width: 720px;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.15) blur(6px);
  -webkit-backdrop-filter: saturate(1.15) blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image inside frosted frame */
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* Subtle glow for hacker vibe on the image edge */
  box-shadow: 0 0 0 rgba(0,0,0,0);
  border: 1px solid rgba(255,255,255,.12);
}

/* Footer with product ad (CTA) */
footer {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
}

.product-ad {
  display: inline-block;
  padding: .6rem .95rem;
  margin-bottom: .6rem;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-ad h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
  color: #e9d5ff;
}

.product-ad p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  display: inline;
}

.product-ad a {
  color: #f0e0ff;
  text-decoration: none;
  display: inline-block;
  margin-left: .5rem;
  padding: .25rem .6rem;
  border-radius: 6px;
  background: rgba(168,112,255,.25);
  border: 1px solid rgba(168,112,255,.5);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover, .product-ad a:focus-visible {
  transform: translateY(-1px);
  background: rgba(168,112,255,.38);
  outline: none;
}
.product-ad a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small screen tweaks for readability */
@media (min-width: 640px) {
  .image-frame { padding: 1.5rem; }
  .product-ad h3 { font-size: 1rem; }
  .product-ad p { font-size: 0.95rem; }
}
@media (min-width: 900px) {
  /* Slightly larger feel on wide screens */
  :root { --accent: #cba3ff; }
  .image-frame { border-radius: 20px; padding: 1.75rem; }
}
