:root {
  /* Tokenized palette (gray + neon blue) */
  --bg: #0a0f14;
  --bg-2: #0b1220;
  --text: #e9f6ff;
  --muted: #a3b5c9;
  --accent: #00e5ff;
  --accent-2: #2b9fff;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --focus: 3px solid rgba(0, 239, 255, 0.85);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

html, body {
  margin: 0;
  color: var(--text);
  background: 
    /* gradient layer */
    linear-gradient(135deg, rgba(10,14,22,.95) 0%, rgba(8,12,28,.92) 60%, rgba(6,8,14,.95) 100%),
    /* subtle glow specks (soft neon) */
    radial-gradient(circle at 20% 0%, rgba(0, 204, 255, .08), transparent 40%),
    radial-gradient(circle at 75% 40%, rgba(0, 120, 255, .05), transparent 40%),
    /* CSS noise-like scanlines (pure CSS) */
    repeating-linear-gradient(to bottom, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.04) 2px 4px);
  background-attachment: fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  word-break: break-word;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  /* subtle scanline overlay for depth; non-intrusive on text contrast */
  background: linear-gradient(to bottom, rgba(0, 255, 255, 0.02) 0%, rgba(0,0,0,0) 2px),
              linear-gradient(to bottom, rgba(0,0,0,0) 0 99%, rgba(0, 0, 0, 0.04) 100%);
  background-size: 100% 4px;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: scan 6s linear infinite;
}
@keyframes scan { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } }

section, article, aside, header, nav, main, footer {
  /* structural containers will employ glass-like surfaces for depth */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem auto;
  max-width: min(1100px, 92vw);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

header, main, footer {
  background: rgba(9, 12, 20, 0.28);
  border: 1px solid rgba(80, 200, 255, 0.35);
}

header { text-align: center; padding-top: 1.75rem; padding-bottom: 1.25rem; }

header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.75rem);
  line-height: 1.05;
  letter-spacing: .2px;
  font-weight: 800;
  color: #e8fbff;
}

header .meta {
  margin: 0;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: var(--muted);
}

main { padding: 0 0 1rem; display: grid; place-items: start; }

article { padding: 0; }

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  background: #0b0f14;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Content area */
.content { padding: 0.75rem 0 0; }

/* Article headings and typography */
h2 { margin: 0.25rem 0 0.5rem; font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { margin: 0.75rem 0 0.4rem; font-size: clamp(1.15rem, 2.5vw, 1.6rem); }

/* Paragraphs */ 
p { margin: 0.5rem 0; font-size: clamp(0.95rem, 2vw, 1.125rem); color: var(--text); }

/* Blockquote styling for emphasis */
blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  color: #e8f6ff;
  font-style: normal;
}
blockquote p { margin: 0; }

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

/* Product ad (glass panel) */
.product-ad {
  display: grid;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 120, 255, 0.14);
  border: 1px solid rgba(0, 180, 255, 0.40);
}
.product-ad h3 { margin: 0; font-size: 1.05rem; }
.product-ad a { text-decoration: none; display: block; padding: .25rem 0; color: var(--text); }
.product-ad a p { margin: 0; }

/* Utility / layout classes */
.container {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
  max-width: clamp(320px, 92vw, 1100px);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(0, 212, 255, .25);
  color: #eaffff;
  border: 1px solid rgba(0, 212, 255, .6);
}

/* Interactive controls */
a, button, .btn, .cta {
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(0, 180, 255, 0.5);
  padding: .65rem 1rem;
  background: rgba(0, 180, 255, 0.25);
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover { text-decoration: underline; transform: translateY(-1px); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid rgba(0, 239, 255, 0.95);
  outline-offset: 2px;
}
.btn { padding: .65rem 1rem; background: rgba(0, 230, 255, 0.25); border-color: rgba(0, 230, 255, 0.6); }
.btn.primary { background: var(--accent-2); color: #04131b; border: none; }
.btn.secondary { background: transparent; border-color: rgba(0, 180, 255, 0.6); color: var(--text); }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  section, article, header, main, footer { background: transparent; border: none; box-shadow: none; }
  img { max-width: 100%; page-break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; transform: none !important; }
}
