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

/* Global reset and cyberpunk base */
:root {
  --bg-purple: #6b5b95;
  --bg-olive: #708238;
  --bg-dark: #0b0b15;
  --fg: #eaf7f0;
  --glass: rgba(255, 255, 255, 0.08);
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: #eaf7f0;
  background-color: var(--bg-dark);
  /* Purple zigzag + olive hacker vibe (frosted glass friendly) */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><polygon points='0,20 20,0 40,20' fill='%236b5b95'/><polygon points='0,40 20,20 40,40' fill='%23808a2f'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><polygon points='0,0 20,20 0,40' fill='%23808a2f'/><polygon points='40,0 20,20 40,40' fill='%236b5b95'/></svg>");
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

/* Layout: mobile-first hero area with frosted glass frame for the image */
main {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  min-height: calc(100vh - 170px);
}
.image-frame {
  width: min(92vw, 720px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.05) contrast(1.05);
}

/* Footer as frosted glass call-to-action area */
footer {
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  min-width: 240px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.product-ad h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: #eaf7f0;
}
.product-ad a {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #061005;
  /* olive hacker button style */
  background: linear-gradient(135deg, #a8d96e 0%, #6b8e23 60%, #4a6a10 100%);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.product-ad a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}
.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  align-self: center;
  margin: 0 0 0 0.5rem;
}

/* Global focus accessibility for links */
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (min-width: 640px) {
  main { padding: 2rem; }
  .image-frame { border-radius: 20px; }
}
@media (min-width: 900px) {
  footer { padding: 1.25rem 2rem; }
  .product-ad { min-width: 280px; }
  .image-frame { width: 800px; }
}