/* Minimal, responsive, hacker-themed CSS with frosted glass and silver accents */

:root{
  --bg: #000;
  --glass: rgba(255,255,255,.08);
  --glass-stroke: rgba(255,255,255,.25);
  --text: #e8e8e8;
  --muted: #bdbdbd;
  --silver: #cfcfcf;
  --cta: #e8e8e8;
  --cta-dark: #0a0a0a;
  --accent: #7df;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #000;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Black noise texture (subtle grain) using layered gradients */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 1px),
    radial-gradient(circle at 3px 3px, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}

/* Page structure to ensure content sits above the noise */
main { display: flex; align-items: center; justify-content: center; padding: 20px 16px; min-height: calc(100vh - 160px); position: relative; z-index: 1; }

/* Frosted glass card around the hero image (silver, cyberpunk feel) */
.image-frame {
  width: min(92%, 640px);
  border-radius: 18px;
  padding: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  display: block;
  position: relative;
}

/* The image fills the frame cleanly */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: middle;
  filter: saturate(0.95);
  /* subtle silver glow around image edges for cyber vibe */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* Footer with a compact, glassy product ad and copyright */
footer {
  padding: 18px 16px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: #000;
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 1;
}

.product-ad {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(180,180,180,.35);
  background: rgba(0,0,0,.25);
  margin: 6px auto 10px;
  color: var(--text);
  transition: transform .14s ease;
}
.product-ad:hover { transform: translateY(-1px); }

.product-ad h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #e9e9e9;
  letter-spacing: .3px;
}
.product-ad a { text-decoration: none; }

/* Button-like CTA inside the ad (silver, high contrast) */
.product-ad a p {
  color: var(--cta-dark);
  background: linear-gradient(#f2f2f2, #e0e0e0);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.25);
  margin: 0;
}

/* Focus styles for accessibility on interactive elements */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
a, button { color: inherit; text-decoration: none; }

/* Responsive: mobile-first -> scale up gracefully */
@media (min-width: 480px) {
  .image-frame { width: min(92%, 720px); }
}
@media (min-width: 768px) {
  main { padding: 40px 20px; min-height: calc(100vh - 140px); }
  .image-frame { width: min(64%, 720px); }
}
@media (min-width: 1024px) {
  footer { padding: 28px 0 40px; }
  .product-ad { font-size: 0.95rem; }
}
