/* Reset and root variables */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --indigo: #4f46e5;        /* indigo-600 */
  --indigo-glow: rgba(79,70,229,.75);
  --glass: rgba(255,255,255,0.14);
  --glass-border: rgba(255,255,255,0.28);
  --bg1: #f7ecd9;
  --bg2: #efe0c9;
  --bg3: #e4d2b6;
  --text: #0b0b14;
}

html, body { height: 100%; }

/* Light reset + base styles */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 40%, var(--bg3) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

a { color: var(--indigo); text-decoration: none; }

/* Hero / main layout */
main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: 60vh;
  z-index: 0;
}
main::after {
  content: "";
  position: absolute;
  width: 64vmin;
  height: 64vmin;
  border-radius: 50%;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(79,70,229,0.35), rgba(79,70,229,0) 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.image-frame {
  position: relative;
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  display: grid;
  place-items: center;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.image-frame::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.08), rgba(0,0,0,0.08)),
    linear-gradient(135deg, rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  border-radius: inherit;
  pointer-events: none;
}
.image-frame {
  outline: 0;
}
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 20px; }
}

/* Frosted glass glow around the hero (subtle cyber halo) */
main > .halo {
  position: absolute;
  width: 50vmin;
  height: 50vmin;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(79,70,229,.25), rgba(79,70,229,.0) 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* Footer with product ad as CTA panel */
footer {
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  color: #1b1b2b;
}
.product-ad {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 1rem 1rem;
  width: min(92vw, 680px);
  display: grid;
  gap: 0.5rem;
  text-align: left;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.15);
}
.product-ad h3 { font-size: 1rem; margin: 0; color: #0b0b2b; display:flex; align-items:center; gap:.5rem; }
.product-ad a {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 6px 14px rgba(79,70,229,.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(79,70,229,.8);
}
.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.product-ad p { margin: 0.25rem 0 0; font-weight: 500; }

footer p { text-align: center; opacity: .8; font-size: .9rem; margin-top: .5rem; }

/* Accessibility: focus ring for interactive elements */
a:not([aria-disabled="true"]):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.15);
}
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

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

/* Responsive tweaks for very small screens */
@media (max-width: 420px) {
  .product-ad { padding: .75rem; }
  .product-ad h3 { font-size: .95rem; }
  .image-frame { border-radius: 14px; }
}