:root{
  /* Palette: turquoise data vortex + jade accents */
  --bg: #031a1a;
  --bg-2: #0a2a2a;
  --surface: rgba(8, 28, 28, 0.22);
  --text: #eafff7;
  --muted: #92d7c1;
  --accent: #1eeadf;      /* turquoise */
  --accent-2: #2ed3a1;     /* jade-teal */
  --card: rgba(7, 26, 26, 0.58);
  --border: rgba(0, 255, 230, 0.45);
  --shadow: 0 6px 24px rgba(0,0,0,.28);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(46, 226, 195, .65);
}

html, body {
  height: 100%;
}

* { box-sizing: border-box; }

html, body, header, nav, main, article, footer, aside {
  display: block;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.08) 0%, rgba(0, 160, 160, 0.08) 40%, rgba(0,0,0,0.65) 100%), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: clamp(14px, 2.2vw, 16px);
}

/* Subtle layered noise/scanline (pure CSS) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 4px),
    linear-gradient(135deg, rgba(0,255,204,.08), rgba(46,208,173,.04) 60%, rgba(0,0,0,.0) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* Layout helpers (utility-like) */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(0,255,230,.35);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25em .5em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(0,255,230,.18);
  color: var(--text);
  border: 1px solid rgba(0,255,230,.38);
}

/* Glass panels (fallback included) */
.header-glass, header {
  /* Basic glass look on header via direct styling below; keep generic selectors light */
}
header {
  max-width: calc(1000px);
  margin: 1rem auto;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(6, 22, 22, 0.28);
  border: 1px solid rgba(0, 255, 230, .42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header {
    background: rgba(6, 22, 22, 0.72);
    border-color: rgba(0,255,230,.55);
  }
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.15;
}
header .meta {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-size: 0.92rem;
}
header nav {
  display: flex;
  gap: .5rem;
  align-items: center;
}
header nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
header nav a:hover { text-decoration: underline; }

/* Main content */
main {
  padding: 1rem 0 2rem;
}
article {
  max-width: clamp(520px, 90vw, 980px);
  margin: 0 auto;
  padding: 0 1rem;
}
.featured-image {
  margin: 1rem 0 1rem;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 230, 0.38);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
h2, h3 {
  color: var(--text);
  margin-top: 1rem;
}
p {
  margin: .75rem 0;
  color: rgba(230,255,255,.95);
}
ul, li {
  color: rgba(230,255,255,.95);
}
ol { margin: .75rem 0 1rem 1.25rem; color: rgba(230,255,255,.95); }
blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.12);
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Links & CTAs (interactive) */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
}
a { text-decoration: none; color: var(--text); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Focus visibility for keyboard navigation */
:focus-visible {
  outline: none;
  box-shadow: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(46,226,195,.75);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Button variants */
.btn {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(0,255,230,.65);
  background: linear-gradient(135deg, rgba(30,234,223,.95), rgba(46,211,161,.95));
  color: #041e1a;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(0, 255, 230, .75);
  color: var(--text);
}
.btn.secondary {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(0,255,230,.5);
  color: var(--text);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041f1c;
  border: 0;
}
.btn + .btn { margin-left: .5rem; }

/* Utility visuals for content sections if present */
.content { padding: .75rem 0; }

/* Footer & ad blocks */
footer {
  padding: 1rem 0 2rem;
  text-align: center;
  color: var(--muted);
}
.product-ad {
  display: grid;
  gap: .25rem;
  padding: .6rem;
  margin: .5rem auto;
  max-width: 520px;
  border-radius: 10px;
  background: rgba(6, 26, 26, 0.45);
  border: 1px solid rgba(0,255,230,0.5);
}
.product-ad a {
  display: block;
  padding: .5rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  background: rgba(0,255,230,0.18);
}
.product-ad a:hover { text-decoration: underline; }

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { page-break-after: avoid; }
  a { text-decoration: underline; }
}
