/* Global reset (light) */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Theme (cyberpunk hacker vibe) */
:root {
  --bg: #0b0b14;
  --fg: #eae6ff;
  --violet: #7c3aed;
  --violet-dark: #5b2bd6;
  --yellow: #ffd166;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --shadow: rgba(0,0,0,.5);
  --focus: #00e5ff;
}

/* Base styles (mobile-first) */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Yellow abstract blur background (two layered glows) */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}
body::before {
  width: 70vmin; height: 70vmin;
  left: -15vmin; top: -15vmin;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,214,0,.95) 0%, rgba(255,214,0,0) 40%),
    radial-gradient(circle at 70% 70%, rgba(0,255,204,.65) 0%, rgba(0,255,204,0) 50%);
}
body::after {
  width: 60vmin; height: 60vmin;
  right: -15vmin; bottom: -15vmin;
  background: radial-gradient(circle at 60% 40%, rgba(120,0,255,.9) 0%, rgba(120,0,255,0) 60%);
}

/* Layout scaffold (centered hero) */
main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
}

/* Frosted glass frame for the hero image */
.image-frame {
  width: min(92%, 860px);
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image styling inside the frosted card */
.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  /* subtle cyber hue shift for hacker vibe */
  filter: saturate(1.05) hue-rotate(-8deg);
}

/* Footer area with a product ad card (frosted glass) */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: #efeaff;
}

/* Product ad card (prominent CTA) */
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: 0 auto 1rem;
}

.product-ad h3 {
  margin: 0;
  font-size: .95rem;
  color: var(--yellow);
  letter-spacing: .4px;
}

/* CTA button look for the ad link (accessible, high contrast) */
.product-ad a {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd166 0%, #f7b801 100%);
  color: #0b0b14;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.15);
  transition: transform .15s ease, filter .15s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.product-ad a:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Small caption under ad (copyright) */
footer p {
  margin: .5rem 0 0;
  font-size: .9rem;
  color: #d8d0ff;
  opacity: .95;
}

/* Accessibility helpers: ensure focus visibility on clickable elements */
a, button {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive adjustments (tablet/desktop) */
@media (min-width: 768px) {
  main { min-height: calc(100vh - 180px); }
  .image-frame { width: min(88%, 900px); padding: 1.5rem; }
  .product-ad { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1024px) {
  .image-frame { width: min(72%, 980px); padding: 1.75rem; }
  .product-ad { flex-direction: row; align-items: center; gap: 1.4rem; }
  footer { padding: 2rem 1rem; }
}