/* Base tokens */
:root {
  --bg: #0b1114;
  --bg-2: #111923;
  --text: #eafff5;
  --muted: #b8f5d0;
  --accent: #2cff72;       /* neon green */
  --accent-2: #ff00ff;     /* magenta */
  --panel: rgba(14, 60, 40, 0.28);
  --panel-border: rgba(0, 255, 180, 0.40);
  --radius: 12px;
  --container-max: 1200px;
  --focus: 2px solid var(--accent-2);
}
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif; font-size: clamp(14px, 0.9vw + 12px, 18px); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* Layered background: gradient + subtle scanlines + magenta-green hinting */
body {
  min-height: 100%;
  background: 
    linear-gradient(135deg, rgba(6,24,12,.95) 0%, rgba(10,22,18,.92) 60%, rgba(0,0,0,.0) 100%),
    repeating-linear-gradient(to bottom, rgba(0,255,140,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,0,255,.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: .2px;
}

/* Accessibility + motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f7;
    --bg-2: #ffffff;
    --text: #0e1a0e;
    --muted: #3a3a3a;
    --accent: #0a8a35;
    --accent-2: #b400b4;
    --panel: rgba(200, 220, 200, 0.28);
    --panel-border: rgba(0, 0, 0, 0.15);
  }
  body {
    background: #f7f7f7;
    color: var(--text);
  }
  header, nav, main, article, aside, footer {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.08);
  }
  a { color: #0a2a0a; }
}

/* Glass panels (fallback provided) */
header, nav, main, article, aside, footer {
  border-radius: var(--radius);
  background: rgba(18, 90, 60, 0.22);
  border: 1px solid rgba(118, 255, 214, 0.35);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.75rem;
  margin: 0.75rem auto;
}
@supports not (backdrop-filter: blur(12px)) {
  header, nav, main, article, aside, footer {
    background: rgba(18, 90, 60, 0.28);
  }
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(300px, 90vw, var(--container-max)); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 1rem; }

/* Hero typography */
header h1 {
  margin: .25rem 0;
  font-size: clamp(1.6rem, 3.2vw + 0.5rem, 2.75rem);
  line-height: 1.15;
  text-align: center;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--text);
}
main { display: grid; place-items: center; padding: 1rem 0; }
article { width: 100%; }

/* Image frame with aspect-ratio, object-fit, glow/border */
.image-frame {
  width: min(100%, 980px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: stretch;
  border: 1px solid rgba(0, 255, 140, 0.35);
  background: rgba(0,0,0,.25);
  padding: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(0,255,140,.25);
  border: 1px solid rgba(0,255,140,.25);
}
@media (prefers-color-scheme: light) {
  .image-frame { border-color: rgba(0,0,0,.25); }
  .image-frame img { border-color: rgba(0,0,0,.2); }
}

/* Content area (generic) */
.content { padding: 1rem; color: var(--text); }

/* Product ad sections in footer */
.product-ad, .sponsored-page {
  min-width: 180px;
  padding: 0.75rem;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.product-ad { background: rgba(20,120,60,.22); border: 1px solid rgba(0,255,180,.40); }
.sponsored-page { background: rgba(60,0,120,.22); border: 1px solid rgba(180,0,220,.40); }

/* Link/button styling (global) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease, transform .15s ease, background .15s ease;
}
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}
button { background: transparent; border: none; padding: 0; font: inherit; cursor: pointer; }

/* Button variants */
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  background: linear-gradient(135deg, var(--accent) 0%, #1bd28f 100%);
  color: #021b0f;
  font-weight: 600;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,.25); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(118,255,214,.6);
  color: var(--text);
}
.cta { padding: .6rem 1rem; border-radius: 6px; }

/* Utility > typography helpers */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  border: 1px solid rgba(0,255,140,.45);
  background: rgba(0,0,0,.25);
  color: var(--text);
}

/* Lists (if present) */
ul { padding: 0; margin: 0; list-style: none; }
li { padding: .25rem 0; }

/* Helpers for layout primitives used by the sample HTML */
.container, .grid, .card, .tag { /* intentionally minimal; see above for specifics */ }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, nav, main, article, aside, footer { background: none; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}
