html, body {
  height: 100%;
}
* { box-sizing: border-box; }

:root {
  --bg: #050f0a;
  --bg-2: #0a1712;
  --text: #eafff5;
  --muted: #a8f0c9;
  --accent: #00ff87;       /* neon green */
  --accent-2: #ffb9d3;      /* pastel pink */
  --surface: rgba(255,255,255,0.08);
  --surface-strong: rgba(255,255,255,0.16);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
}

html { color-scheme: dark; }

/* Global typography */
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  font-size: 16px;
}
body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  min-height: 100%;
  /* Layered background: gradient + glow + matrix-like scanlines (pure CSS) */
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.05)),
    repeating-linear-gradient(to bottom, rgba(0,255,135,.08) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0%, rgba(0,255,135,.15), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255,105,180,.08), transparent 40%),
    linear-gradient(to bottom right, rgba(1,6,2,.2), rgba(1,2,1,.2)),
    #050f0a;
  background-blend-mode: normal, overlay, overlay, overlay, normal, normal;
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Layout helpers */
.container { max-width: clamp(680px, 92vw, 1120px); margin-inline: auto; padding-inline: 1rem; }

/* Structural elements */
header, nav, main, article, aside, footer { display: block; }

/* Glass panels (with backdrop-filter fallback) */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.18); }
}

/* Header (hero) */
header {
  padding: 1.5rem 0.75rem;
  text-align: center;
  position: relative;
}
header h1 {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 3.4rem);
  line-height: 1.08;
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
  letter-spacing: .2px;
  text-shadow: 0 0 8px rgba(0,255,135,.6);
}
header .meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: .25rem;
}

/* Main content area */
main { padding: 1rem 0 2rem; }
.featured-image { margin: 1rem 0; }
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  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 8px 22px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05) brightness(1.02);
}
h2 { font-size: clamp(1.4rem, 1.2rem + 1.5vw, 2.2rem); margin: .75rem 0 0.5rem; color: #eafff4; }
h3 { font-size: clamp(1.15rem, 0.9rem + 1vw, 1.5rem); margin: .6rem 0; color: var(--accent-2); }
p { color: #eafff0; margin: 0 0 1rem; }

/* Articles and content layout */
article { margin: 0 auto 1.5rem; max-width: 72ch; }
.content { color: #eafbf3; }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Chips / tags */
.tag {
  display: inline-block; padding: .25em .6em; font-size: .8em;
  border-radius: 999px; border: 1px solid rgba(0,255,135,.5);
  background: rgba(0,255,135,.15); color: #eafff0;
}

/* Product ad / footer sections (glass panels) */
.product-ad, .sponsored-page {
  display: block; text-align: center;
}
.product-ad a, .sponsored-page a {
  display: inline-block;
  width: 100%; padding: .9rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  color: #04100d;
  background: linear-gradient(135deg, #b7ffd3, #76ffb4);
  border: 1px solid rgba(0,0,0,.2);
  text-decoration: none;
}
.product-ad a:hover, .sponsored-page a:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Buttons (solid and outline variants) */
.btn, .cta {
  display: inline-block;
  padding: .72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  color: var(--text);
  background: rgba(255,255,255,.08);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #00c56a);
  border: 1px solid rgba(0,0,0,.15);
  color: #041510;
  text-shadow: 0 0 6px rgba(0,0,0,.15);
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.cta {
  padding: .75rem 1rem;
  border: 1px solid rgba(0,255,135,.7);
  background: rgba(0,255,135,.25);
}
a.btn { text-decoration: none; }

/* Focus states (accessible) */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
a:focus-visible { outline-offset: 4px; }

/* Navigation (if present) */
nav { display: flex; justify-content: center; gap: .75rem; padding: .5rem 0; }

/* Responsive helpers / grid utilities */
.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: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
@media (min-width: 700px) {
  .container { padding-inline: 0; }
}

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; color: black; }
  .glass { background: rgba(255,255,255,1); border: 1px solid #000; box-shadow: none; }
}

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