/* Minimal reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
:focus { outline: none; }

/* Theme: teal metallic sheen + navy hacker vibe with frosted glass */
:root {
  --navy: #0b1e3a;
  --teal: #0bd0c0;
  --teal-deep: #0a7a7a;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.28);
  --text: #e8f6ff;
  --muted: #b8d8f0;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  background-color: #02101a;
  /* Teal metallic sheen background */
  background-image:
    linear-gradient(135deg, rgba(0, 180, 180, 0.25) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(135deg, #041626 0%, #0a1b32 50%, #02131b 100%);
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.image-frame {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.8rem;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 24px rgba(0,0,0,.35), 0 20px 60px rgba(0,0,0,.45);
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  filter: saturate(1.05);
  outline: 1px solid rgba(255,255,255,.15);
}

/* Frosted footer / ad card */
footer {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(2,6,20,.95), rgba(2,6,20,.75));
  border-top: 1px solid rgba(255,255,255,.08);
  color: #d9f0ff;
  text-align: center;
}

.product-ad {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .75rem;
  width: min(100%, 720px);
  margin: 0.75rem auto 0;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

.product-ad h3 {
  font-size: .92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #bcefff;
  margin: 0;
}

.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #04161d;
  background: linear-gradient(135deg, #1be7df 0%, #0a7a7a 100%);
  border: 1px solid rgba(255,255,255,.4);
  transition: transform .15s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.product-ad a:focus-visible {
  outline: 3px solid #9bf1ff;
  outline-offset: 2px;
}

footer p {
  margin: .4rem auto 0;
  font-size: .85rem;
  opacity: .85;
}

/* Accessibility helpers for keyboard users on focusable elements */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #9bf1ff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks: mobile-first by default, scale up for larger screens */
@media (min-width: 700px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(85%, 860px); aspect-ratio: 16 / 9; }
  .product-ad { grid-template-columns: auto 1fr; }
  .product-ad h3 { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .image-frame { width: min(60%, 900px); }
  .product-ad { grid-template-columns: auto 1fr; padding: 1rem 1.25rem; }
}