:root {
  --bg: #040b1a;
  --bg-2: #0a1740;
  --text: #e8f2ff;
  --muted: #a6b7d8;
  --accent: #00e5ff;       /* electric blue */
  --accent-2: #ffd400;     /* cyber yellow */
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --stroke: rgba(0, 230, 255, 0.6);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.28);
}

html, body {
  height: 100%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: linear-gradient(135deg, #040a1a 0%, #0a1020 60%, #040722 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

 /* Layered background: gradient + subtle scanlines/noise (pure CSS) */
html::before, body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
html::before {
  background: radial-gradient(circle at 50% 0%, rgba(0,180,255,.12), transparent 40%),
              linear-gradient(135deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.25) 100%);
  mix-blend-mode: screen;
}
body::before {
  background-image:
    linear-gradient(to bottom, rgba(0,230,255,.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,230,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  opacity: .6;
  mix-blend-mode: overlay;
}
html, body {
  /* subtle noise via layered overlays (no assets) */
  background-blend-mode: overlay;
}
@supports not (backdrop-filter: blur(12px)) {
  /* fallback handled below in .glass-like panels */
}

header, main, article, footer, aside {
  width: 100%;
}

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

.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);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.14); }
}

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

.content { padding: 0; }

/* Header / Hero */
header {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: clamp(2rem, 2.5vw + 1rem, 3.5rem);
  line-height: 1.04;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.4vw + 0.9rem, 1rem);
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; }

/* Article content */
main {
  padding: 1rem 0 2rem;
}
article {
  width: 100%;
  max-width: clamp(320px, 88vw, 860px);
  margin: 0 auto;
}
article h2 {
  font-size: clamp(1.5rem, 1vw + 1.2rem, 2.25rem);
  margin: 1rem 0 .5rem;
  color: #eaf6ff;
}
article p {
  color: var(--muted);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
  margin: .75rem 0;
}
article blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
article ul {
  margin: .75rem 0 1rem 1.25rem;
  padding: 0;
}
article li { margin: .25rem 0; }

/* Footer / Ad blocks (glass panels) */
footer {
  padding: 1rem;
}
.product-ad, .sponsored-page {
  margin: .5rem 0;
  padding: .75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a {
  color: #00131a;
  text-decoration: none;
  font-weight: 700;
}
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Links within content for accessibility */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Utility primitives */
.container, .grid, .card, .tag { mix-blend-mode: normal; }

/* Small badge component */
.tag {
  display: inline-block;
  padding: .15rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  color: #eaffff;
}

/* Form controls (if present) */
input, select, textarea, button {
  font: inherit;
  color: var(--text);
}
button, .btn {
  cursor: pointer;
}
.btn {
  display: inline-block;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: var(--accent-2);
  color: #00150e;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease;
}
.btn.primary { background: var(--accent); color: #00161a; }
.btn.primary:hover { background: #00d7ff; }
.btn.outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.6);
}
.btn.outline:hover {
  background: rgba(255,255,255,.08);
}
.btn:active { transform: translateY(0); }

/* Print-friendly (basic) */
@media print {
  body, header, main, article, footer { background: transparent; color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (min-width: 720px) {
  header { padding: 3rem 1rem; }
  article { padding: 0; }
}