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

/* Teal checkerboard background with purple hacker vibes */
:root {
  --teal-1: #0a7a83;
  --teal-2: #0a5f63;
  --purple-1: #7a3aff;
  --purple-2: #5a14d1;
  --glass: rgba(255, 255, 255, 0.08);
  --text: #e9e9ff;
}
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background-color: #062b2b;
  /* teal checkerboard pattern */
  background-image:
    linear-gradient(45deg, rgba(0,128,128,.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,128,128,.25) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,128,128,.25) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,128,128,.25) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

/* Frosted-glass hero containing the image */
.image-frame {
  width: min(92vw, 720px);
  padding: 1rem;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 28px rgba(0,0,0,.55), inset 0 0 20px rgba(120,0,160,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.image-frame img { display: block; width: 100%; height: auto; }

/* Footer with frosted card-like ad */
footer {
  padding: 1.25rem;
  text-align: center;
  color: var(--text);
  background: rgba(6,6,12,.72);
  border-top: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  max-width: 360px;
  margin: 0 auto 0.75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #d7d7ff;
}
.product-ad a {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: white;
  /* purple hacker CTA */
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  border: 0;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 12px rgba(90,20,210,.6);
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(90,20,210,.8);
}
.product-ad a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  /* accessible focus ring */
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
footer p { margin: .25rem 0 0; font-size: .9rem; color: #cbd6ff; }

/* Responsive tweaks: mobile-first expansion at larger widths */
@media (min-width: 640px) {
  main { padding: 4rem 0; }
  .image-frame { width: 70%; }
  .product-ad { flex-direction: row; gap: 1rem; align-items: center; }
  .product-ad h3 { font-size: 1.15rem; }
}