/* Global reset and color system */
:root{
  --violet: #7a2ee6;
  --violet-dark: #3a0e6e;
  --teal: #14e6c6;
  --glass: rgba(255, 255, 255, 0.08);
  --text: #e6f8ff;
  --text-soft: #c6f0ff;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: #0b0b1a;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  line-height: 1.4;
  /* Violet zigzag background with teal accents for hacker/cyberpunk vibe */
  background-image:
    linear-gradient(135deg, rgba(122,46,230,0.25) 25%, transparent 25%),
    linear-gradient(225deg, rgba(122,46,230,0.25) 25%, transparent 25%),
    linear-gradient(135deg, rgba(20,230,198,0.15) 25%, transparent 25%),
    linear-gradient(225deg, rgba(20,230,198,0.15) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px, 0 0, 20px 20px;
  background-color: #0b0b1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 160px);
}

/* Frosted glass frame around the image */
.image-frame {
  width: min(92vw, 720px);
  padding: 14px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px) saturate(1.25);
  -webkit-backdrop-filter: blur(8px) saturate(1.25);
  box-shadow: var(--shadow);
  display: block;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* subtle glow to enhance hacker vibe */
  box-shadow: 0 0 0 rgba(0,0,0,0);
  outline: 1px solid rgba(255,255,255,.15);
}

/* Footer with featured product; glassy, accessible focus styles on CTA */
footer {
  padding: 1.25rem 1rem 2rem;
  display: grid;
  place-items: center;
}

.product-ad {
  width: min(92vw, 720px);
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #d9fff5;
  text-shadow: 0 0 6px rgba(20,230,198,.8);
  letter-spacing: .4px;
}

.product-ad a {
  display: block;
  width: 100%;
  text-decoration: none;
  /* make CTA visually prominent as a button-like element */
}

.product-ad a p {
  margin: 0;
  padding: .85rem 1rem;
  border-radius: 999px;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  font-weight: 700;
  color: #062f2a;
  background: linear-gradient(135deg, #0cebd0 0%, #0aaba2 100%);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease;
  user-select: none;
}
.product-ad a p:hover {
  transform: translateY(-1px);
}
.product-ad a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(20,230,198,.25);
}
.product-ad a:focus:not(:focus-visible) { outline: none; }

/* Small screens first (mobile-first) */
@media (min-width: 640px) {
  main { padding: 3rem 1.5rem; min-height: calc(100vh - 180px); }
  .image-frame { padding: 18px; }
  .product-ad { padding: 16px; }
  .product-ad h3 { font-size: 1.05rem; }
}

/* Larger layouts for bigger screens */
@media (min-width: 1024px) {
  body { background-size: 60px 60px; }
  main { padding: 4rem 2rem; }
  .image-frame { width: 780px; }
  .product-ad { width: 780px; }
}
