/* Reset and base styles (mobile-first) */
*, *::before, *::after { box-sizing: border-box; }
html, body { padding: 0; margin: 0; height: 100%; }
:root {
  /* Palette for hacker/neon cyberpunk vibe */
  --bg: #0a1020;
  --bg-deep: #070b1a;
  --glass: rgba(6, 12, 28, 0.65);
  --card: rgba(4, 8, 20, 0.70);
  --text: #e8fbff;
  --muted: #a7c2e1;
  --accent: #2ee6d0;
  --accent-soft: rgba(46,230,208,.55);
  --border: rgba(46,230,208,.45);
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background-color: var(--bg);
  /* turquoise dots pattern background (subtle, tiled) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(46,230,208,.95) 1px, transparent 1px),
    radial-gradient(circle at 4px 4px, rgba(46,230,208,.65) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px;
  background-position: 0 0, 7px 7px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

/* Layout: center hero content, keep footer below */
main { display: grid; place-items: center; padding: 1.25rem 1rem; }
.image-frame {
  width: min(92%, 720px);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(8, 12, 28, 0.65); /* frosted glass look */
  border: 1px solid rgba(46,230,208,0.35);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  image-rendering: auto;
  /* subtle neon glow around image */
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
footer {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
}
.product-ad {
  display: inline-block;
  background: rgba(2, 6, 20, 0.65); /* glassy card */
  border: 1px solid var(--border);
  padding: 0.75rem;
  border-radius: 12px;
  margin: 0.75rem auto 0.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-ad h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #d8fbff;
  letter-spacing: .4px;
}
.product-ad a { display: inline-block; }
.product-ad a p {
  margin: 0;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #06222a;
  background: linear-gradient(135deg, rgba(46,230,208,.95), rgba(46,230,208,.65));
  border: 1px solid rgba(46,230,208,.85);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease, filter .2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); filter: brightness(1.05); }
.product-ad a:focus-visible, .product-ad a:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 999px; }

/* Focus for any interactive element if tabbed into */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Typography tweaks for legibility on dark, cyber theme */
h3, h4, h5 { text-shadow: 0 0 6px rgba(46,230,208,.25); }

/* Responsive: increase width of hero on larger screens, tighten layout */
@media (min-width: 560px) {
  .image-frame { width: min(90%, 860px); padding: 1.25rem; }
}
@media (min-width: 900px) {
  main { padding: 2rem 0; }
  .image-frame { padding: 1.5rem; }
  .product-ad { margin-top: 1rem; }
}
