/* Base tokens */
:root {
  --bg: #030b14;
  --bg-2: #041423;
  --surface: rgba(8, 16, 28, 0.58);
  --surface-2: rgba(0, 0, 0, 0.15);
  --text: #eaffff;
  --muted: #b7eaff;
  --accent: #00e5ff;        /* neon blue/cyan */
  --accent-2: #2cff88;      /* emerald green */
  --border: rgba(0, 230, 255, 0.35);
  --focus: 0 0 0 3px rgba(0, 255, 204, 0.6);
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
}

/* Reset & layout helpers */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }
html, body, header, nav, main, article, aside, footer { 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale; 
}
body {
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(0, 255, 140, 0.08) 60%), 
              #030b14;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Layered background (matrix/neon aura) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 255, 200, 0.08), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 150, 0.04), transparent 40%);
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* subtle scanlines */
  background-image:
    linear-gradient(rgba(0,0,0,0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.25) 1px, transparent 1px);
  background-size: 2px 2px, 2px 2px;
  opacity: 0.25;
  mix-blend-mode: overlay;
}

/* Section: Global primitives */
html { font-size: 16px; }
@media (min-width: 48em) {
  html { font-size: 18px; }
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Header */
header {
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem;
  display: block;
  text-align: center;
  background: rgba(5, 20, 40, 0.55);
  border: 1px solid rgba(0, 230, 255, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  max-width: min(1100px, 92vw);
  margin-inline: auto;
}
header h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin: 0.25rem 0 0.25rem;
  color: #e9feff;
}
header .meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.25rem 0 0.25rem;
}
nav { margin-top: 0.5rem; }
nav a {
  display: inline-block;
  padding: .5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 255, 0.5);
  color: var(--text);
  background: rgba(0, 0, 0, 0.15);
}
nav a:hover, nav a:focus-visible { text-decoration: underline; color: var(--accent-2); outline: none; }

/* Main content */
main { padding: 1rem; }
article {
  max-width: clamp(320px, 90vw, 980px);
  margin: 0 auto;
  padding: 1rem;
}
.featured-image { margin: 1rem 0; }
.image-frame {
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 204, 0.4);
  overflow: hidden;
  background: #0b1a28;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 16 / 9;
}
.content { padding: 0.5rem 0; }
h2, h3 { color: #eaffff; margin-top: 0.5rem; }
p { color: #d8f6ff; }
ul, ol { margin-left: 1.25rem; color: #d7fbff; }
li { margin: 0.25rem 0; }

/* Utility: containers, grids, cards, tags */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }

/* Card styling (glass panels) */
.card {
  background: rgba(8, 16, 28, 0.6); /* glassy backdrop */
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--text);
  background: rgba(0, 230, 255, 0.25);
  border: 1px solid rgba(0, 230, 255, 0.5);
}

/* Buttons & links (accessibility: focus-visible) */
button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 255, 0.8);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  background: var(--accent);
  color: #04131b;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn { background: rgba(0, 230, 255, 0.95); color: #04131b; }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 230, 255, 0.9);
}
.cta { }

/* Focus rings for accessibility */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.6);
  outline-offset: 2px;
}
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 204, 0.6);
  outline-offset: 2px;
}
button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 230, 255, 0.5);
}

/* Layout helpers for responsive designs */
@media (min-width: 700px) {
  header { padding: 1.5rem 2rem; }
  article { padding: 1.5rem; }
  .product-ad { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Additional semantic stubs (style-only for non-existent elements) */
aside { display: block; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: none; }
}
