/* Reset light: box-sizing, margin/padding */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Theme: violet zigzag, hacker/cyberpunk, frosted glass feel */
:root {
  --bg-0: #0b001a;
  --bg-1: #140033;
  --text: #e8dfff;
  --muted: #bba6ff;
  --accent: #8b5cf6;
  --accent2: #7c3aed;
  --glass: rgba(255, 255, 255, 0.08);
  --edge: rgba(170, 140, 250, 0.4);
  --ring: rgba(167, 139, 250, 0.75);
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter;
  color: var(--text);
  background-color: var(--bg-0);
  /* Violet zigzag background */
  background-image:
    linear-gradient(135deg, rgba(139, 92, 246, 0.25) 25%, transparent 25%),
    linear-gradient(225deg, rgba(139, 92, 246, 0.25) 25%, transparent 25%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first, centered hero-like area */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100svh - 10rem);
}

/* Frosted glass frame for the image (hero) */
.image-frame {
  width: min(92vw, 760px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  isolation: isolate;
  position: relative;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

/* Footer with glam product ad CTA */
footer {
  padding: 1rem;
  text-align: center;
  color: #e3d4ff;
  background: linear-gradient(to top, rgba(10, 0, 40, 0.95), rgba(10, 0, 40, 0.75) 60%, rgba(10, 0, 40, 0.95));
  border-top: 1px solid rgba(170, 140, 250, 0.35);
}

.product-ad {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.28);
  border: 1px solid rgba(170, 140, 250, 0.5);
  margin: 0.25rem auto 0.75rem;
}

.product-ad h3 {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1;
  letter-spacing: 0.2px;
}

.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  min-width: 120px;
}
.product-ad a:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.product-ad a:hover {
  filter: brightness(1.04);
}

/* Focus for other interactive elements (links) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small screens: ensure good proportions */
@media (min-width: 640px) {
  main {
    padding: 3rem 2rem;
  }
  .image-frame {
    border-radius: 28px;
  }
}
@media (min-width: 1024px) {
  main {
    padding: 4rem 3rem;
  }
  .image-frame {
    width: min(64rem, 80vw);
  }
}