/* CSS: hacker-era, red galaxy, frosted glass, mobile-first */

:root{
  --yellow: #ffd400;
  --yellow-dark: #e5b200;
  --bg-dark: #0a000a;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --text: #f7f3c7;
  --text-dim: #d6c98d;
  --shadow: rgba(0,0,0,.45);
}

/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial;
  background: #000;
  min-height: 100vh;
  line-height: 1.5;
  /* Subtle red galaxy base with star specks (CSS-only illusion) */
  background-image:
    radial-gradient(circle at 12px 18px, rgba(255,255,255,.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 60px 60px, rgba(255,225,0,.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 120px 40px, rgba(255,0,0,.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 180px 100px, rgba(255,255,255,.7) 0 1px, transparent 1.5px),
    linear-gradient(#2a0000, #100000 60%, #090006);
  background-blend-mode: screen;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  /* layered star-field for depth & a red glow vibe */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 20px 30px, rgba(255,255,255,.9) 0 1px, transparent 1.2px),
    radial-gradient(circle at 200px 120px, rgba(255,210,0,.9) 0 1px, transparent 1.2px),
    radial-gradient(circle at 350px 60px, rgba(255,0,0,.85) 0 1px, transparent 1.2px),
    radial-gradient(circle at 520px 180px, rgba(255,255,255,.75) 0 1px, transparent 1.2px);
  background-size: 160px 160px, 240px 240px, 320px 320px, 400px 400px;
  background-position: 0 0, 60px 40px, 120px 70px, 180px 90px;
  opacity: .75;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: drift 60s linear infinite;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-6px, 6px, 0); }
  100% { transform: translate3d(0,0,0); }
}

/* Layout scaffolding (mobile-first) */
main {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 1.5rem;
  gap: 1.25rem;
}

/* Frosted glass hero container-ish feel for the image frame area */
.image-frame {
  width: min(92vw, 720px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(8, 0, 12, .32);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  padding: .75rem;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: saturate(1.05);
  border: 1px solid rgba(255,255,255,.25);
}

@media (min-width: 768px) {
  main { padding: 3rem 2rem 2rem; }
  .image-frame { transform: translateZ(0); }
}

/* Footer / Featured product panel (frosted glass) */
footer {
  width: 100%;
  padding: 2rem 1rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-ad {
  width: min(92vw, 720px);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fffbd2;
}
.product-ad h3 {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: .5px;
  color: #ffe963;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  margin: 0;
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: 6px;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  letter-spacing: .2px;
}
.product-ad a:focus-visible,
.product-ad a:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 6px;
}
footer p {
  margin: .75rem 0 0;
  font-size: .9rem;
  color: var(--text-dim);
  text-align: center;
  opacity: .9;
}

/* Focus styles for keyboard accessibility on any focusable element inside page */
a:focus-visible,
button:focus-visible,
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Color and theme tweaks for cyberpunk-hacker vibe */
h1, h2, h3, h4, h5 {
  color: #ffe87a;
}
p { color: #f6f3bd; }

/* Small helpers to ensure content centers nicely on various devices */
@media (min-width: 1024px) {
  main { padding-top: 3rem; }
  .product-ad { align-self: center; }
} 

/* Ensure something renders nicely if the image fails */
.image-frame img[alt]::after { content:""; }