/* Base */
:root{
  --bg: #0b0012;
  --bg-2: #2a003a;
  --text: #eafff5;
  --muted: #b8ffd9;
  --accent: #00ff88;
  --accent-2: #21f07a;
  --panel: rgba(255,255,255,.08);
  --surface: rgba(0,0,0,.18);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 24px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,0,170,.25), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0,255,128,.18), transparent 40%),
    linear-gradient(135deg, rgba(140,0,85,.92) 0%, rgba(8,0,10,.92) 60%, rgba(8,0,20,.92) 100%),
    #0b0012;
  background-blend-mode: overlay, overlay, normal, normal;
  min-height: 100%;
  /* Subtle scanline noise overlay (pure CSS) */
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .6;
}
html, body, header, nav, main, article, aside, footer { display: block; }

/* Layout helpers */
.container { width: 100%; max-width: clamp(640px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Glass panels (fallback + backdrop) */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Core typography blocks */
header, main, article, aside, footer {
  padding: 1rem;
}
header { text-align: center; padding-block: 2rem; }
header h1 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; margin: .15em 0 .5em; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: .92rem; margin: 0; }

/* Sections & structure */
nav { margin-top: .5rem; }
nav a { color: var(--accent-2); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; }
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Main content flow */
main { padding: 1rem 0; }
article { display: block; }

/* Section: image frame */
.image-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 8px 20px rgba(0,0,0,.25); background: #000; }
.image-frame img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 16 / 9; }

/* Content blocks inside pages */
.content { padding: .75rem; }

/* Lists & navigation helpers */
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Product ad / promo blocks (footer area) */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.28);
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; padding: .25rem .5rem; border-radius: 6px; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Button & link styling (interactive states) */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
}
.btn, .cta {
  display: inline-block;
  padding: .6em 1.1em;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,.08));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn.primary, .cta.primary {
  background: linear-gradient(135deg, var(--accent), #00d07a);
  border-color: rgba(0,0,0,.25);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: rgba(0,0,0,.4);
}
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; }

/* Utilities (cards, tags) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .78rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #eafff5;
}

/* Glass panels on page sections for cyberpunk look */
header, main, footer, aside {
  background: rgba(10,10,20,.28);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
header { margin: 1rem auto; max-width: 1100px; }
footer { margin-top: 1rem; padding: 0.75rem; }
main { padding: 1rem; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a, button { text-decoration: underline; color: #000; }
  .glass { background: #fff; border-color: #000; box-shadow: none; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}