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

/* Global theme: hacker futurist with frosted glass, green low-poly backdrop */
:root {
  --green-1: #2bd27a;
  --green-2: #1f9e63;
  --green-3: #34d399;
  --purple: #8a2be2;
  --text: #e9e6ff;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.25);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #e9e6ff;
  line-height: 1.5;
  min-height: 100vh;
  background: #0a0f12;
  /* green low-poly triangles background (CSS pattern) */
  background-image:
    linear-gradient(135deg, rgba(43,210,122,.16) 25%, transparent 25%),
    linear-gradient(315deg, rgba(43,210,122,.16) 25%, transparent 25%),
    linear-gradient(45deg, rgba(22,163,74,.15) 25%, transparent 25%),
    linear-gradient(225deg, rgba(22,163,74,.15) 25%, transparent 25%);
  background-size: 60px 60px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  color-scheme: dark;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Frosted glass hero container for the image */
.image-frame {
  width: min(92vw, 760px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  display: grid;
  place-items: center;
  position: relative;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}
.image-frame:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(139,92,246,.18), rgba(43,210,122,.18) 60%, rgba(139,92,246,.18));
  mix-blend-mode: overlay;
  pointer-events: none;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  filter: saturate(1.05);
}

/* Footer with a frosted glass feel and prominent CTA */
footer {
  padding: 1rem;
  display: grid;
  gap: .75rem;
  background: rgba(4,0,20,.6);
  border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}
.product-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad h3 {
  font-size: 1rem;
  margin: 0;
  color: #eae5ff;
}
.product-ad a { text-decoration: none; color: inherit; }
.product-ad a p {
  margin: 0;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #4b2e8e);
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
  transition: transform .2s ease;
  display: inline-block;
}
.product-ad a p:hover, .product-ad a p:focus {
  transform: translateY(-1px);
  outline: none;
}
footer p { margin: 0; text-align: center; color: #a7a6c4; font-size: .9rem; }

/* Focus-visible accessibility for keyboard users */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #8b5cf6;
  outline-offset: 2px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(860px, 60vw); border-radius: 22px; }
  footer { padding: 1rem 2rem; justify-items: center; align-items: center; }
  .product-ad { flex: 0 0 auto; }
}

@media (prefers-color-scheme: light) {
  body {
    background: #f5f0ff;
    color: #1e1b2a;
  }
  .image-frame {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,.08);
  }
  .image-frame:before {
    background: linear-gradient(120deg, rgba(120,60,200,.25), rgba(0,0,0,.0));
  }
  footer { background: rgba(255,255,255,.9); border-top: 1px solid rgba(0,0,0,.08); }
  .product-ad { background: rgba(255,255,255,.95); }
  .product-ad a p { background: linear-gradient(135deg, #6d3bd6, #3a9a86); }
}