/* Tokens */
:root{
  --bg: #0a0f1a;
  --bg-2: #0b1020;
  --text: #eaffff;
  --muted: #a8c3d6;
  --accent: #1ee6c3;
  --accent-2: #4b77f5;
  --border: rgba(255,255,255,.28);
  --surface: rgba(12,22,44,.6);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
  --gap: 1rem;
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; color: var(--text); background: #0a0f1a; }

/* Layered background: gradient + subtle noise/scanlines (pure CSS) */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.55;
  background: 
    linear-gradient(135deg, rgba(0,223,210,.08), rgba(68,84,255,.18) 60%, rgba(0,0,0,.0)),
    linear-gradient(120deg, rgba(2,7,15,.92), rgba(6,12,28,.75) 60%, rgba(0,0,0,.0)),
    var(--bg);
  background-blend-mode: screen, normal;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}
html::before {
  content:"";
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(circle at 3px 3px, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 4px 4px, 8px 8px;
  mix-blend-mode: overlay;
  opacity: .25;
}
body::before {
  content:"";
  position: fixed; left:0; right:0; top:0; height:1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.15), transparent);
  opacity:.15; pointer-events:none; z-index:0;
}
body > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce){
  html::before, body::before { display: none; }
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.card { padding: 1rem; border-radius: var(--radius); background: rgba(12,22,44,.58); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* Glass panels (with fallback) */
header, main, footer, article, aside { background: rgba(12,22,44,.42); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; backdrop-filter: blur(12px) saturate(1.05); -webkit-backdrop-filter: blur(12px) saturate(1.05); box-shadow: 0 8px 26px rgba(0,0,0,.25); padding: .75rem; }

/* Header / typography */
header { text-align: center; padding: 1.75rem 1rem; margin: 1rem; }
header h1 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); margin: 0.25rem 0 0.25rem; color: #eaffff; }
header .meta { font-size: clamp(0.8rem, 1.8vw, 1rem); color: var(--muted); margin: 0; }
nav { margin-top: .25rem; display: flex; justify-content: center; gap: .5rem; }

/* Links & focus states (accessible) */
a, button, .btn, .cta { color: var(--text); text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 2px solid #7bdcff; outline-offset: 2px; border-radius: 6px; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* CTA & button variants */
.btn { display: inline-block; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); transition: transform .15s ease, background .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: #021018; font-weight: 600; }

/* Content & imagery */
.main-content { padding: .75rem; }
.image-frame { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.15); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content { padding: 1rem; }

/* Article content styling */
article { display: grid; gap: 1rem; padding: .5rem; }

/* Sections & lists */
h2 { font-size: clamp(1.25rem, 2vw, 1.75rem); margin: .25rem 0 .4rem; }
h3 { font-size: clamp(1rem, 1.8vw, 1.25rem); margin: .5rem 0; color: #eaffff; }
p { margin: .5rem 0; color: rgba(234,246,255,.95); line-height: 1.6; }
blockquote { margin: .75rem 0; padding: .6rem .85rem; border-left: 3px solid var(--accent-2); background: rgba(8,16,40,.4); border-radius: 6px; color: #eaffff; }

/* Lists & tags */
ul { margin: .25rem 0 1rem 1.1rem; color: rgba(234,246,255,.95); }
li { margin: .25rem 0; }
.tag { display:inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; background: rgba(38,230,195,.22); color: #dffff8; border: 1px solid rgba(38,230,195,.45); }

/* Product ad / footer blocks */
.product-ad, .sponsored-page { display: block; padding: .75rem; border-radius: 10px; background: rgba(8, 18, 38, .58); border: 1px solid rgba(255,255,255,.25); }
.product-ad a, .sponsored-page a { display: block; padding: .5rem; border-radius: 6px; }
.product-ad a { background: linear-gradient(135deg, rgba(30,230,195,.25), rgba(75,119,245,.25)); }

/* Footer specifics */
footer { margin: 1rem auto; padding: .75rem; text-align: center; color: var(--muted); }

/* Images & media responsiveness */
@media (min-width: 700px){
  .container { padding-inline: 2rem; }
}
@media (max-width: 600px){
  header { padding: 1.25rem; }
  .image-frame { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
  .btn { transform: none; }
}
@media print{
  html, body { background: white; color: black; }
  header, main, footer { background: white; border: none; box-shadow: none; }
}
Aside { display: none; }