:root {
  --bg: #0b0b14;
  --bg-dim: #0a0a12;
  --card: rgba(255, 255, 255, 0.08);
  --text: #e8eaff;
  --muted: #a8a4d4;
  --indigo: #4f46e5;
  --purple: #7c3aed;
  --neon: #00e5ff;
  --ring: 3px solid #38bdf8;
}

*,
*::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, Inter, Arial;
  background-color: var(--bg);
  /* purple striped background pattern (mobile-first, subtle) */
  background-image:
    repeating-linear-gradient(90deg,
      rgba(124, 58, 237, 0.25) 0px,
      rgba(124, 58, 237, 0.25) 12px,
      rgba(0, 0, 0, 0) 12px,
      rgba(0, 0, 0, 0) 24px
    );
  background-attachment: fixed;
  background-size: cover;
  line-height: 1.4;
}

/* Accessible link color with sufficient contrast on dark bg */
a { color: #d6e2ff; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
  border-radius: 6px;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 6rem);
  position: relative;
  z-index: 0;
}

/* Subtle cyber glow behind the hero */
main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(124,58,237,.08), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(59,130,246,.08), transparent 40%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: -1;
  border-radius: 0;
}

.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(230, 230, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  isolation: isolate;
}

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

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(180, 160, 255, 0.25),
              inset 0 0 60px rgba(124, 58, 237, 0.3);
  mix-blend-mode: screen;
  background: linear-gradient(135deg, rgba(124,58,237,0), rgba(124,58,237,0.15) 40%, rgba(59,130,246,0) 60%);
  opacity: 0.95;
}

footer {
  padding: 1.5rem;
  text-align: center;
  color: #dbe0ff;
  background: linear-gradient(to bottom, rgba(5,5,10,0), rgba(5,5,10,0.25) 40%);
  border-top: 1px solid rgba(124, 58, 237, 0.25);
}

.product-ad {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(10, 10, 40, 0.6);
  border: 1px solid rgba(122, 98, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
  margin: 0.5rem auto;
}

.product-ad h3 {
  margin: 0;
  font-size: .95rem;
  color: #e9eaff;
  text-shadow: 0 0 6px rgba(124,58,237,.6);
}

.product-ad a { text-decoration: none; }

.product-ad a p {
  margin: 0;
  padding: .55rem 1rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 0 8px rgba(124,58,237,.7);
}

/* Small screens: stack nicely; larger screens: keep hero compact yet prominent */
@media (min-width: 600px) {
  main { padding: 3rem; }
  .image-frame { border-radius: 22px; }
  .product-ad { transform: translateY(0); }
}

@media (min-width: 900px) {
  main { padding: 4rem; }
  .image-frame { width: min(70vw, 760px); }
  .product-ad h3 { font-size: 1.05rem; }
}