/* Reset and base theme */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue";
  color: #e7f6f0;
  background-color: #0a0f12;
  /* Green low-poly triangles background (tile-friendly) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'><polygon points='0,128 128,0 0,0' fill='%231faa57'/><polygon points='0,256 0,128 128,256' fill='%232cc66a'/><polygon points='128,0 256,0 128,128' fill='%232a9f57'/><polygon points='128,128 256,0 256,128' fill='%2318a66f'/><polygon points='0,128 128,256 0,256' fill='%231eaa70'/><polygon points='128,256 256,128 256,256' fill='%230f8a3f'/></svg>");
  background-size: 256px 256px;
  background-repeat: repeat;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { display: grid; place-items: center; padding: 6vmin 1rem 2rem; }

/* Frosted glass hero frame (image is the hero) */
.image-frame {
  position: relative;
  width: min(92vw, 860px);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  /* keep a cinematic aspect while allowing fluid width */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Footer with maroon hacker vibe */
footer {
  padding: 2rem;
  background: linear-gradient(to top, rgba(120,0,0,0.85), rgba(40,0,0,0.65));
  color: #e9d8d8;
}
.product-ad {
  display: grid;
  gap: .6rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(92, 0, 0, 0.7);
  border: 1px solid rgba(180, 0, 0, 0.7);
  max-width: 680px;
}
.product-ad h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.product-ad a {
  color: #b6ffd0;
  text-decoration: none;
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: rgba(0,0,0,.35); }

/* Focus accessibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid #4affc1;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive adjustments (mobile-first) */
@media (min-width: 768px) {
  main { padding: 8vmin 2rem; }
  .image-frame { border-radius: 26px; }
  footer { padding: 2.5rem 2rem; display: flex; justify-content: center; }
  .product-ad { width: 60ch; }
}