:root {
  --bg: #031209;
  --bg-2: #0a2e07;
  --text: #eafff4;
  --muted: #a7f0b9;
  --accent: #ff2d92;
  --accent-2: #7fff00;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --surface: rgba(255,255,255,.12);
  --shadow: 0 6px 22px rgba(0,0,0,.25);
  --radius: 14px;
  --ring: 0 0 0 3px rgba(127,255,0,.6);
}

/* Section: Base layout & background */
html, body { height: 100%; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0,0,0,.22), rgba(0,0,0,.05) 40%), radial-gradient(circle at 20% -10%, rgba(127,255,0,.25), transparent 40%), linear-gradient(135deg, #041a08 0%, #090f0a 60%, #040f0a 100%), #030f0a;
  min-height: 100%;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 15% 20%, rgba(127,255,0,.20), transparent 25%),
              radial-gradient(circle at 75% 60%, rgba(255,0,140,.20), transparent 25%);
  mix-blend-mode: overlay;
  filter: saturate(1.05);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(to bottom, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 100% 2px;
  opacity: .25;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { display: none; }
}

/* Section: Layout helpers */
.container { width: 100%; max-width: clamp(780px, 92vw, 1200px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }

/* Glass panels and structural elements */
header, main, footer, aside, article { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 22px rgba(0,0,0,.25); }

/* Typography */
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
h1, h2, h3 { line-height: 1.15; margin: .25rem 0; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 2.8vw, 1.75rem); margin-top: .75rem; }
p, li { font-size: clamp(1rem, 1vw + .6rem, 1.125rem); line-height: 1.6; color: var(--text); }
ul, ol { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Image framing (required selectors) */
.image-frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.25); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content block helper (required selector) */
.content { padding: .5rem 0; }

/* Utility / layout widgets (required selectors) */
.product-ad { padding: .5rem; text-align: center; border-radius: 12px; background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.25); }
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; line-height: 1; background: rgba(127,255,0,.15); color: var(--text); border: 1px solid rgba(127,255,0,.5); }

a, button, .btn, .cta { text-decoration: none; color: var(--accent); }

/* Links and focus states (accessible) */
a, button, .btn, .cta { outline: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }

/* Buttons (solid and outline variants) */
.btn { display: inline-block; padding: .72rem 1.2rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--text); font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--accent); color: #fff; border-color: rgba(255,0,120,.6); }
.btn.secondary { background: rgba(127,255,0,.15); color: var(--text); border: 1px solid rgba(127,255,0,.5); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Focus ring for keyboard navigation (WCAG AA) */
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* Form elements (basic styling) */
input, textarea, select { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--text); border-radius: 6px; padding: .5rem; }

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