/* Starter, mobile-first hacker-theme stylesheet (navy paper texture, frost glass, future cyberpunk) */

:root{
  --bg: #0a1020;
  --bg-dark: #04070f;
  --panel: rgba(0,0,0,.60);
  --panel-soft: rgba(0,0,0,.50);
  --text: #e9f4ff;
  --muted: #b8c3d6;
  --neon: #1ef7ff;
  --accent: #39ff14;
  --ring: rgba(0, 255, 255, 0.65);
  --radius: 14px;
}

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

html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background-color: var(--bg);
  /* navy paper-like texture via layered gradients (lightweight) */
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.05) 0 8px, transparent 8px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.25) 0 14px, transparent 14px),
    linear-gradient(#0b1020 0%, #03061a 100%);
  background-size: 120px 120px, 150px 150px, 100% 100%;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: grid;
  place-items: center;
  padding: 12px;
  min-height: calc(100vh - 60px);
  width: 100%;
}

.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.58);
  box-shadow:
    0 8px 28px rgba(0,0,0,.65),
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 0 60px rgba(0,0,0,.25);
  backdrop-filter: saturate(110%) blur(2px);
  transition: transform .4s ease;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(0.95) contrast(1);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  /* frosted glass tint overlay for glassy cyberpunk feel */
  background: linear-gradient(to bottom, rgba(5,8,20,.18) 0%, rgba(5,8,20,.58) 40%, rgba(5,8,20,.70) 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
  box-shadow: inset 0 0 60px rgba(0,255,255,.12);
  border-radius: inherit;
}

.image-frame:focus-within {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.image-frame:hover {
  transform: scale(1.003);
}

.hero-label {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #041017;
  background: rgba(0,255,255,.92);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
  display: none; /* reserved for future title overlay */
  pointer-events: none;
  z-index: 2;
  letter-spacing: .4px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.hero-title {
  display: none; /* kept for potential DOM overlay; not required here */
}

/* footer area with frosted glass card as CTA container */
footer {
  padding: 28px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.55));
  border-top: 1px solid rgba(255,255,255,.08);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* product ad card styled as prominent CTA block (neon hacker vibe) */
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  min-width: 220px;
  max-width: 420px;
  border-radius: 12px;
  background: rgba(0,0,0,.60);
  border: 1px solid rgba(0, 255, 255, .55);
  box-shadow: 0 8px 22px rgba(0,0,0,.55);
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform .25s ease;
}
.product-ad:hover { transform: translateY(-2px); }

.product-ad h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #e9fbff;
  letter-spacing: .4px;
}
.product-ad a {
  text-decoration: none;
  width: 100%;
}
.product-ad p {
  margin: 6px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #0a0f1a;
  color: #eaf6ff;
  font-weight: 700;
  border: 1px solid rgba(0,255,255,.66);
  transition: transform .25s ease, background .25s ease;
}
.product-ad:hover p {
  transform: translateY(-1px);
  background: #0b1220;
}
.product-ad a:focus-visible, .product-ad a:focus {
  outline: 2px solid #39ff14;
  outline-offset: 2px;
  border-radius: 8px;
}
.product-ad p:focus-visible { outline: 2px solid #39ff14; }

footer p {
  color: #a9b8c9;
  margin-left: 8px;
  font-size: 12px;
  opacity: .85;
}

/* small utility focus style for any interactive elements on the page */
a, button, [role="button"] {
  outline: none;
}
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* responsive adjustments (mobile-first) */
@media (min-width: 640px) {
  main { padding: 20px; min-height: 78vh; }
  .image-frame { border-radius: 18px; }
  .product-ad { padding: 20px; min-width: 260px; }
}
@media (min-width: 1024px) {
  main { padding: 40px; }
  .image-frame { border-radius: 22px; }
  .product-ad { padding: 22px; min-width: 320px; }
  /* keep a stronger cyberpunk vibe on large screens */
  body {
    text-shadow: 0 0 0 transparent;
  }
}