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

:root {
  --bg: #0b0715;
  --bg-deep: #0a0622;
  --card: rgba(255,255,255,.08);
  --card-edge: rgba(255,255,255,.25);
  --text: #e9e0ff;
  --muted: #d6ccff;
  --lime: #a6f978;
  --purple: #7a5cff;
}

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

/* Lime waves background (two layered, subtle, responsive) */
body::before {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 38vh;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'>\
  <path d='M0,60 C40,20 60,20 100,60 C140,100 160,60 160,60' fill='none' stroke='%23b6ff3e' stroke-width='3'/>\
</svg>");
  background-repeat: repeat-x;
  background-size: 160px 80px;
  opacity: .65;
  pointer-events: none;
  filter: saturate(1.2);
  animation: driftX 12s linear infinite;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 60vh;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='320' height='160' viewBox='0 0 320 160'>\
  <path d='M0,100 C60,60 120,140 180,100 C240,60 300,140 320,100 L320,160 L0,160 Z' fill='none' stroke='%23a6f978' stroke-width='4' opacity='.42'/>\
</svg>");
  background-repeat: repeat-x;
  background-size: 320px 160px;
  opacity: .4;
  pointer-events: none;
  animation: driftXSlow 20s linear infinite;
  z-index: 0;
}
@keyframes driftX { to { transform: translateX(-160px); } }
@keyframes driftXSlow { to { transform: translateX(-320px); } }

/* Layout: hero area with frosted glass card for the image frame */
main {
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  position: relative;
  z-index: 1;
}

/* Frosted glass image frame (hero) */
.image-frame {
  width: min(92vw, 680px);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  image-rendering: auto;
  /* subtle glow for cyberpunk vibe on image edges */
  box-shadow: 0 0 0 1px rgba(167,255,120,.15) inset;
}

/* Footer with a cyberpunk product ad and copyright */
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(to top, rgba(11,7,22,.9), rgba(11,7,22,.6));
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem;
}

.product-ad {
  display: grid;
  gap: .6rem;
  justify-items: center;
  align-items: center;
  padding: .9rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  margin: 0 auto;
  max-width: 520px;
}

.product-ad h3 {
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
  color: #e8e0ff;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

.product-ad a {
  display: inline-block;
  padding: .7rem 1.1rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(135deg, #6a00ff 0%, #3b0070 100%);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease, filter .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); filter: brightness(1.05); }
.product-ad a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

footer p {
  margin: .6rem 0 0;
  font-size: .92rem;
  opacity: .8;
}

/* Accessibility: focus for all clickable elements when navigated by keyboard */
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Responsiveness (mobile-first, scale up) */
@media (min-width: 640px) {
  main { padding: 5rem 1rem; }
  .image-frame { width: min(86vw, 760px); }
}
@media (min-width: 900px) {
  footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
  }
  .product-ad { justify-items: start; text-align: left; }
  .image-frame { width: min(65vw, 760px); }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}