/* Global reset */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #0b0b0f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f2d8;
  --accent: #ffd400; /* neon yellow for hacker vibe */
}

html, body { height: 100%; }

/* Light reset and base styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.05) 0 20px, transparent 20px),
    radial-gradient(circle at 85% 35%, rgba(255,255,255,.04) 0 24px, transparent 24px);
  background-size: 60px 60px, 60px 60px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Frosted glass header (hero) */
header {
  padding: 28px 16px;
  text-align: center;
  background: rgba(10, 10, 10, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--accent);
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(255, 212, 0, 0.9);
}

/* Main content area (mobile-first) */
main { padding: 16px; }

/* Image frame with frosted glass look */
.image-frame {
  margin: 20px auto;
  max-width: 680px;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Footer with a prominent CTA style for the ad */
footer {
  padding: 20px 16px;
  text-align: center;
  background: rgba(1, 1, 1, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: min(100%, 520px);
  margin: 0 auto;
}

.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--accent);
}

.product-ad a {
  display: inline-block;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd800, #ffc107);
  color: #111;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 4px 12px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.6);
}

.product-ad a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 999px;
}

/* Quick text styling for ad caption (inside the link block) */
.product-ad p {
  margin: 0;
  font-size: 0.95rem;
  color: #f5f1c0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

/* Basic link focus for accessibility across the page */
a, a:visited {
  color: var(--accent);
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  main { padding: 24px; }
  .image-frame { max-width: 860px; padding: 10px; }
}

@media (min-width: 1024px) {
  header { padding: 40px 20px; }
  header h1 { font-size: 2.6rem; }
  footer { padding: 28px 20px; }
}