/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: #d9dde6;
  background: #0b0f14;
  /* white striped background pattern for hacker vibe */
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.08) 0 2px,
    transparent 2px 24px
  );
  background-attachment: fixed;
}

/* Mobile-first layout */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: 60vh;
}

.image-frame {
  width: 100%;
  max-width: 860px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  padding: .75rem;
  box-shadow: 0 8px 26px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* image sits in frosted-glass card */
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  /* subtle cyber glow inside frame */
  box-shadow: inset 0 0 60px rgba(0,255,255,.12);
  pointer-events: none;
}

/* Footer with prominent CTA-styled ad */
footer {
  padding: 1rem;
  text-align: center;
  color: #d9dde6;
}

.product-ad {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: .75rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .2s ease;
}
.product-ad:hover { transform: translateY(-1px); }

.product-ad h3 {
  font-size: .92rem;
  margin: 0;
  color: #e6e6e6;
  letter-spacing: .3px;
}

.product-ad a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.product-ad a p {
  margin: 0;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: linear-gradient(#f0f0f0, #d6d6d6);
  color: #0a0a0a;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.15);
  font-size: .92rem;
  line-height: 1;
  transition: filter .2s ease, box-shadow .2s ease;
}
.product-ad a:hover p {
  filter: saturate(1.05);
  box-shadow: 0 0 8px rgba(0,0,0,.15);
}

/* Focus styles for accessibility */
.product-ad a:focus-visible {
  outline: 3px solid #5ae6ff;
  outline-offset: 2px;
  border-radius: 999px;
}
.product-ad a:focus-visible p {
  background: linear-gradient(#f4f6f8, #d8dde4);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Accessible defaults for text contrast on small screens */
@media (min-width: 640px) {
  main { padding: 3rem 2rem; }
  .image-frame { padding: 1rem; }
  .product-ad h3 { font-size: 1rem; }
}
