/* CSS: Turquoise galaxy hacker theme with frost glass, mobile-first */

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

:root {
  --bg: #021021;
  --fg: #e8fbff;
  --turq: #2ff0e6;
  --turq2: #00d6e0;
  --purp: #8a5cff;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.28);
  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --cta: rgba(0, 210, 255, .25);
}

html, body { height: 100%; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--fg);
  background-color: var(--bg);
  /* Turquoise galaxy starscape (subtle star specks) */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0,255,255,.9) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 40%, rgba(0,200,255,.8) 0 1px, transparent 1px),
    radial-gradient(circle at 85% 75%, rgba(180,0,255,.7) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 70%, rgba(0,255,210,.6) 0 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px, 3px 3px, 3px 3px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content:"";
  position: fixed;
  inset: 0;
  /* subtle cyan-purple nebula wash for depth */
  background: radial-gradient( circle at 20% 0%, rgba(0,180,255,.08), transparent 40% ),
              radial-gradient( circle at 80% 100%, rgba(128,0,255,.08), transparent 40% ),
              linear-gradient(135deg, rgba(0,0,0,0), rgba(0,0,0,.0) 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 2rem 1rem;
}

.image-frame {
  width: min(100%, 860px);
  padding: 0.6rem;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px) saturate(1.15);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 rgba(0,0,0,0); /* keep small for performance */
}

footer {
  padding: 1.25rem;
  text-align: center;
  color: #eaffff;
  background: rgba(6,8,20,.65);
  border-top: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad {
  display: inline-block;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 0 12px rgba(0,255,255,.25);
}

.product-ad h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: #d6fffe;
  text-shadow: 0 0 6px rgba(0,255,255,.45);
}

.product-ad a {
  text-decoration: none;
  color: #baffff;
  display: inline-block;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(180deg, rgba(0,255,255,.25), rgba(0,120,255,.15));
  transition: transform .2s ease, filter .2s ease;
}
.product-ad a:hover { transform: scale(1.03); filter: brightness(1.05); }

.product-ad a:focus-visible,
a:focus-visible {
  outline: 3px solid var(--purp);
  outline-offset: 2px;
}

footer p {
  margin-top: .25rem;
  font-size: .85rem;
  opacity: .95;
}

/* Small screens: tighten layout for mobile-first approach */
@media (max-width: 640px) {
  main { min-height: 60vh; padding: 1.25rem 1rem; }
  .image-frame { border-radius: 14px; padding: .5rem; }
  .product-ad { padding: .4rem .6rem; }
  .product-ad h3 { font-size: .9rem; }
}
