/* Section: Base tokens */
:root {
  --bg: #04040b;
  --bg-2: #0a0f1a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #eaf2ff;
  --muted: rgba(234, 244, 255, 0.75);
  --accent: #d4ff00;       /* laser lemon */
  --accent-2: #7e00ff;      /* ultraviolet */
  --focus: #aaff00;
  --border: rgba(125, 170, 255, 0.4);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --card-radius: 12px;
  --gap: 1rem;
}

/* Section: Global */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background: 
    /* ultraviolet gradient layer  */
    linear-gradient(135deg, rgba(20,0,60,.9) 0%, rgba(0,0,40,.95) 60%),
    /* ultraviolet glow + laser lemon accents */
    radial-gradient(circle at 20% 0%, rgba(0,255,180,.15), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(125,0,255,.15), transparent 40%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.8) 70%);
  background-blend-mode: normal, overlay, overlay, normal;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Subtle matrix rain + scanline overlays (pure CSS) */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 255, 140, 0.08) 0 1px,
      rgba(0,0,0,0) 1px 4px
    );
  background-size: 100% 4px;
  animation: scanline 6s linear infinite;
  mix-blend-mode: overlay;
  opacity: 0.8;
}
body::after {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.25)),
    linear-gradient(135deg, rgba(20,0,60,.25), rgba(0,0,0,.0) 60%);
  background-blend-mode: overlay;
  animation: rain 8s linear infinite;
  mix-blend-mode: overlay;
  opacity: 0.9;
}
@keyframes scanline { to { transform: translateY(-4px); } }
@keyframes rain { to { transform: translateY(-100%); } }

/* Section: Layout primitives */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  padding-inline: 1rem;
  margin-inline: auto;
}
.grid { display: grid; gap: var(--gap); }
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--card-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.14); }
}
header, main, footer, aside { display: block; }

/* Section: Components & typography */
h1, h2, h3 { margin: 0 0 .5rem; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem); line-height: 1.15; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.5vw + 1rem, 2rem); }
h3 { font-size: clamp(1rem, 0.8vw + .9rem, 1.25rem); }
p { margin: 0 0 1rem; color: var(--muted); line-height: 1.6; }

/* Section: Glass panels & surface treatment */
header, main > article, footer .product-ad, footer .sponsored-page, aside {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main > article, footer .product-ad, footer .sponsored-page, aside {
    background: rgba(255,255,255,.14);
  }
}

/* Section: Header */
header {
  text-align: center;
  padding: 1.25rem;
  margin: 2rem auto;
  max-width: clamp(320px, 92vw, 1100px);
  display: grid;
  gap: .5rem;
  align-items: center;
  justify-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Section: Main content layout */
main { padding: 0 0 2rem; }
.featured-image { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); margin-bottom: .75rem; display: block; }
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 16 / 9; }

/* Section: Image frame utility */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 14px rgba(0,0,0,.25), 0 6px 20px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: utility helpers */
.content { padding: .5rem 0; }
.tag {
  font-size: .75rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #eaffb8;
  margin-right: .25rem;
}

/* Section: navigation & controls */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: var(--text);
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.btn:active { transform: translateY(0); }

.btn.solid {
  background: linear-gradient(135deg, rgba(212,255,0,.95), rgba(212,255,0,.85));
  color: #0a0a00;
  border: none;
  box-shadow: 0 6px 18px rgba(212,255,0,.55);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(126,0,255,.8);
  color: #e2e0ff;
}
.cta { padding: .6rem 1rem; }

/* Section: lists & content structure */
ul { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

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

/* Section: article styling (body content) */
article { display: block; padding: 0; }

/* Section: footer */
footer {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
  align-items: start;
}
footer p { margin: .5rem 0 0; }

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