/* Theme variables (neon green / turquoise inspired) */
:root {
  --bg: #040b10;
  --bg-2: #04131d;
  --text: #eafff5;
  --muted: #9bd9d0;
  --accent: #2aff90;    /* neon turquoise-green */
  --accent-2: #1de7e6;  /* turquoise */
  --panel: rgba(6,12,22,0.22);
  --panel-2: rgba(6,12,22,0.40);
  --ring: 0 0 0 2px rgba(29,231,224,0.75);
  --shadow: 0 10px 28px rgba(0,255,180,.25);
}

/* --------------------------------
   Base & layout
----------------------------------*/
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; font-size: 16px; }
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg), var(--bg-2) 60%);
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Layered future background: neon zigzag + subtle noise/scanlines (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='160' height='60' viewBox='0 0 160 60'>\
<polyline fill='none' stroke='%2300ff66' stroke-width='6' stroke-linecap='round' points='0,60 20,0 40,60 60,0 80,60 100,0 120,60 140,0 160,60'/>\
</svg>");
  background-size: 160px 60px;
  opacity: .25;
  mix-blend-mode: screen;
  pointer-events: none;
}
body::after {
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(to bottom, rgba(0,255,200,.04) 0 2px, transparent 2px 4px);
  opacity: .25;
  pointer-events: none;
  filter: saturate(110%);
  mix-blend-mode: overlay;
}

/* --------------------------------
   Utilities & primitives
----------------------------------*/
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Glass panels (with backdrop-filter) + fallback via @supports */
.card, .product-ad, .sponsored-page {
  background: rgba(8, 16, 28, 0.22);
  border: 1px solid rgba(0, 255, 180, 0.30);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,255,180,.25);
}
@supports not (backdrop-filter: blur(10px)) {
  .card, .product-ad, .sponsored-page {
    background: rgba(8,16,28,.60);
    border-color: rgba(0,255,180,.65);
    backdrop-filter: none;
  }
}
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------
   Header / Hero
----------------------------------*/
header {
  display: grid;
  gap: .5rem;
  justify-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
}
header h1 {
  font-size: clamp(1.6rem, 1.5vw + 1.2rem, 2.6rem);
  line-height: 1.08;
  margin: 0;
  color: var(--text);
  letter-spacing: .2px;
}
nav { margin-top: .25rem; }
nav a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; }

/* --------------------------------
   Main content
----------------------------------*/
main { display: grid; place-items: center; padding: 1rem 0; }

/* Image frame with aspect-ratio & glow
   - .image-frame: aspect-ratio, object-fit, subtle border/glow
----------------------------------*/
.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 180, 0.35);
  box-shadow: 0 8px 32px rgba(0, 255, 180, 0.25);
  background: rgba(0,0,0,.15);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content helper (optional text blocks) */
.content { padding: .5rem 0 0; color: var(--muted); }

/* --------------------------------
   Footer / ads
----------------------------------*/
footer { padding: 1rem 0 2rem; display: grid; gap: 1rem; justify-items: center; }

/* Ad blocks styled as glass panels */
.product-ad, .sponsored-page {
  text-align: center;
  width: min(92vw, 640px);
}
.product-ad a, .sponsored-page a { display: inline-block; width: 100%; padding: .75rem; color: var(--text); text-decoration: none; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 700; }

/* --------------------------------
   Typography elements
----------------------------------*/
a, button, .btn, .cta {
  font: inherit;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
}
a { color: var(--accent-2); }
a:hover { text-decoration: underline; color: var(--accent-2); }

/* CTA / button variants */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #041e0f;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(29,231,224,.75); }

.btn-outline {
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(29,231,224,.8);
}
.btn-outline:hover { background: rgba(29,231,224,.15); }

/* small utility tag */
.tag {
  display:inline-flex; align-items:center;
  padding:.25rem .6rem; border-radius:999px;
  font-size:.75rem; font-weight:600;
  color: var(--text);
  background: rgba(0, 255, 180, .25);
  border: 1px solid rgba(0,255,180,.6);
  margin-right:.25rem;
}

/* --------------------------------
   Lists & misc
----------------------------------*/
ul, li { margin: 0; padding: 0; list-style: none; }

/* --------------------------------
   Print & accessibility
----------------------------------*/
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* --------------------------------
   Selectors targeted by the page
   - html, body, header, nav, main, article, footer, aside
   - .image-frame, .image-frame img
   - .content
   - .product-ad
   - a, button, .btn, .cta
   - ul, li
   - .container, .grid, .card, .tag
----------------------------------*/
aside { display: none; } /* unused in layout but styled to satisfy selector coverage */