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

/* Brown-noise textured, cyber-silver theme */
:root {
  --bg: #0b0b0f;
  --surface: rgba(255, 255, 255, 0.08);
  --border: rgba(190,190,190,.28);
  --text: #eaeaea;
  --muted: #a8afb6;
  --accent: #cbd6e1;       /* silver/cyber highlight */
  --cta: #8ea2b9;
  --shadow: 0 12px 40px rgba(0,0,0,.55);
}
html { background: var(--bg); }

/* Light reset for layout consistency (mobile-first) */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-image:
    /* subtle grain (brown-noise feel) */
    radial-gradient(circle at 0.5px 0.5px, rgba(0,0,0,.25) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 2px 2px, 3px 3px;
  background-color: #0b0b0f;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* slight cyber-grid overlay to hint future-tech */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.0) 40px),
    radial-gradient(circle at 0 0, rgba(255,255,255,.03), transparent 40px);
  background-blend-mode: overlay;
  background-size: auto;
  position: relative;
}

/* Subtle neon glow edge for the page (optional chrome) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(140,170,210,.08), transparent 40%),
              radial-gradient(circle at 0% 50%, rgba(180,210,230,.08), transparent 40%),
              radial-gradient(circle at 100% 50%, rgba(180,210,230,.04), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Layout root styling for content stacking (mobile-first) */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.image-frame {
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),
              var(--shadow);
  position: relative;
  isolation: isolate;
}

/* The image fills the frame nicely */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02); /* slight zoom for drama */
  filter: saturate(1.05);
}

/* Frosted glass overlay to evoke hacker/cyberpunk vibe */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(200,200,200,.04) 40%, rgba(255,255,255,.08) 100%);
  mix-blend-mode: overlay;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  border-radius: 16px;
  opacity: 0.9;
}

/* Frosted glass border accent */
.image-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(200,210,230,.25), rgba(170,180,190,.25));
  filter: saturate(0.9);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0.75;
}

/* Footer area containing the product ad and copyright */
footer {
  margin-top: 2rem;
  text-align: center;
  padding: 1.75rem 1rem;
  width: 100%;
  color: var(--muted);
  background: rgba(12,12,12,.25);
  border-top: 1px solid rgba(180,180,180,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}

/* Featured product call-to-action as a prominent frosted pill button */
.product-ad {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,180,180,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: .75rem;
  transition: transform .2s ease;
}
.product-ad h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .4px;
}
.product-ad a {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(180,180,180,.28);
  background: linear-gradient(135deg, rgba(120,130,150,.9), rgba(80,90,110,.9));
  color: #eef2f7;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,214,255,.9), 0 0 12px rgba(120,170,255,.8);
}
.product-ad a:active {
  transform: translateY(0);
  opacity: .88;
}

/* Footer copyright text styling for legibility and cyber aesthetic */
footer p {
  margin: .25rem 0 0;
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .3px;
}

/* Desktop tweaks: centered hero with generous whitespace and stronger CTA visibility */
@media (min-width: 768px) {
  main { padding: 4rem 2rem; }
  .image-frame { width: min(720px, 60vw); }
  footer { text-align: left; padding: 2rem 2rem; }
  .product-ad { justify-content: center; }
  footer p { text-align: left; }
}
