:root {
  --bg: #efe0c9;               /* beige base */
  --bg-d: #d7c9ab;             /* subtle depth */
  --green: #2cff7a;              /* hacker green */
  --green-dark: #0a8a4a;
  --text: #0b1f0e;
  --glass: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.32);
  --shadow: rgba(0, 0, 0, 0.25);
}

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

html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.04), rgba(0,0,0,.04)),
    linear-gradient(0deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 12px 12px, 100% 60%, 12px 12px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  flex: 1 1 auto;
}

.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px) saturate(1.25);
  -webkit-backdrop-filter: blur(6px) saturate(1.25);
}
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  /* subtle frosted green edge glow and dark vignette for hacker vibe */
  background: linear-gradient(to bottom right, rgba(43,255,122,0.10), rgba(0,0,0,0.5));
  pointer-events: none;
}
.image-frame::before {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 60px rgba(42, 255, 122, 0.15);
  pointer-events: none;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05) contrast(1.05);
}

footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 2rem;
}
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  width: min(92vw, 700px);
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 6px 22px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-ad h3 {
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.product-ad a {
  text-decoration: none;
}
.product-ad a p {
  display: inline-block;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(42,255,122,.95), rgba(32,210,110,.92));
  color: #041b0a;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.15);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a p:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(34,255,142,.95), rgba(22,190,115,.92));
}
.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
footer p {
  color: rgba(0,0,0,.6);
  text-align: center;
  padding-top: .5rem;
  font-size: .9rem;
}

/* Focus for any links/buttons outside the product CTA */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 24px; }
}
@media (min-width: 1024px) {
  .image-frame { transform: translateZ(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}