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

/* Cyberpunk cyan grid paper background */
:root {
  --bg: #051019;
  --cyan: #00e5ff;
  --card: rgba(6, 22, 34, 0.66);
  --glass: rgba(10, 40, 60, 0.65);
  --text: #eaffff;
  --muted: #b9feff;
}
html, body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
body {
  /* cyan grid lines: horizontal and vertical */
  background-image:
    linear-gradient(to right, rgba(0, 229, 255, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: #061420;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

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

.image-frame {
  width: min(92vw, 860px);
  background: rgba(8, 20, 34, 0.65);
  border: 1px solid rgba(0, 239, 255, 0.60);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.25);
  backdrop-filter: saturate(1.1) blur(2px);
  -webkit-backdrop-filter: saturate(1.1) blur(2px);
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(0,0,0,0) 60%);
  pointer-events: none;
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
}

/* Frosted glass accent on the frame edge for hacker vibe */
.image-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Footer / product ad with glow & accessible CTA */
footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
  background: rgba(2, 6, 16, 0.72);
  border-top: 1px solid rgba(0, 255, 255, 0.25);
}
.product-ad h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #a6fff5;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(0, 255, 255, 0.25);
  color: #062028;
  border: 1px solid rgba(0, 255, 255, 0.6);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}
.product-ad a:hover {
  transform: translateY(-2px);
  background: rgba(0, 255, 255, 0.40);
}
footer p { margin: 0.5rem 0 0; font-size: 0.9rem; }

/* Focus styles for accessibility */
a:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small screens adjustments (mobile-first) */
@media (max-width: 600px) {
  .image-frame { padding: .75rem; border-radius: 12px; }
  .image-frame img { border-radius: 10px; }
  .product-ad h3 { font-size: 1rem; }
}

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