/* Light reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Theme + olive-dot background (mobile-first, blue-hacker with frosted glass) */
:root {
  --bg: #0b1220;
  --bg-alt: #0a1a2b;
  --text: #e8f4ff;
  --muted: #a8b8d8;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(180,210,255,.25);
  --blue-start: #1e3a8a;
  --blue-end: #0ea5f8;
  --olive: #6b8e23;
  --focus: #89f;
  --shadow: 0 8px 40px rgba(0,0,0,.6);
}

html, body { height: 100%; }

/* Olive dot pattern + blue hacker vibe */
body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(107,142,35,.25) 1px, transparent 1px);
  background-size: 12px 12px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 120px);
}

.image-frame {
  width: min(92vw, 1100px);
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,210,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .25s ease;
}
.image-frame:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.image-frame:hover { transform: translateY(-1px) scale(1.01); }

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* Footer / CTA area as prominent glass card */
footer {
  width: 100%;
  padding: 1.5rem;
  display: grid;
  place-items: center;
}

.product-ad {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .9rem;
  border-radius: 999px;
  background: rgba(24, 72, 140, .28);
  border: 1px solid rgba(123, 200, 255, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.product-ad h3 {
  font-size: .95rem;
  color: #e7f0ff;
  white-space: nowrap;
}
.product-ad a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.product-ad a p {
  margin: 0;
  padding: .62rem .98rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,120,255,.95), rgba(26,78,210,.95));
  color: white;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 0 12px rgba(0,180,255,.9);
  transition: transform .2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); }

/* Caption/footer text */
footer p {
  text-align: center;
  color: #a9b8d6;
  opacity: .9;
  font-size: .85rem;
  margin-top: .6rem;
}

/* Focus styles for accessibility on interactive elements */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 640px) {
  .image-frame { border-radius: 22px; }
  .product-ad h3 { font-size: 1rem; }
}

@media (min-width: 1024px) {
  main { padding: 3rem 2rem; min-height: calc(100vh - 140px); }
  .image-frame { max-width: 1100px; }
  .product-ad a p { padding: .8rem 1.15rem; }
}
