:root{
  /* Palette tokens (neon blue / cyber yellow) */
  --bg: #0b1020;
  --bg-2: #0a1220;
  --text: #e6f4ff;
  --muted: #a6c8ff;
  --accent: #00e3ff;       /* neon cyber blue */
  --accent-2: #ffd400;     /* cyber yellow */
  --panel: rgba(10, 15, 40, 0.60);
  --panel-2: rgba(10, 15, 40, 0.30);
  --border: rgba(0, 170, 255, 0.40);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 12px;
}

html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 20% -10%, rgba(0, 180, 255, 0.15), transparent 25%),
              radial-gradient(circle at 80% 20%, rgba(255, 212, 0, 0.15), transparent 25%),
              linear-gradient(135deg, #04091a 0%, #0b1020 60%, #0b0f1f 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { font-size: clamp(14px, 0.8vw + 12px, 16px); }
body { position: relative; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 60% 20%, rgba(0, 180, 255, 0.08), transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(255, 213, 0, 0.08), transparent 40%);
  mix-blend-mode: overlay;
  opacity: 0.65;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.2) 70%);
  filter: saturate(1.1);
}

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

.container {
  width: 100%;
  max-width: clamp(640px, 68vw, 1100px);
  margin-inline: auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

header, main, footer, aside, nav, article {
  background: var(--panel);
  border: 1px solid rgba(0, 170, 255, 0.40);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside, nav, article {
    background: rgba(9, 12, 25, 0.88);
    border-color: rgba(0, 170, 255, 0.55);
  }
}

header {
  display: grid;
  gap: 0.5rem;
  align-items: start;
  grid-template-columns: 1fr;
}

header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  color: var(--text);
}

header .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

nav {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35em 0.6em;
  border-radius: 8px;
  transition: transform .2s ease, background .3s ease;
}
nav a:hover { background: rgba(0, 226, 255, 0.15); }
nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main { padding: 0; }

article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}

.featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(0, 170, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 170, 255, 0.4);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.04); }

h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  margin: 0.25rem 0 0.4rem;
  color: var(--text);
}

h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 0.8rem 0 0.4rem; color: var(--text); }

p { color: var(--muted); margin: 0 0 1rem; }

ul { color: var(--muted); margin: 0 0 1rem 1.15em; }
li { margin: 0.25rem 0; }

blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  color: var(--text);
}

.product-ad {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: start;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 170, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 226, 255, 0.15), rgba(255, 212, 0, 0.15) 60%);
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
}
.product-ad a:hover { background: rgba(0, 170, 255, 0.15); }

footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem;
  align-items: start;
}

.sponsored-page { padding: 0.25rem; }

@media (min-width: 720px) {
  article { grid-template-columns: 1.1fr 0.9fr; column-gap: 1rem; align-items: start; }
  .featured-image { order: 1; }
  .image-frame { border-radius: 12px; }
}

a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .2s ease, background .3s ease, color .2s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 227, 255, 0.65);
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 170, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 227, 255, 0.25), rgba(0, 170, 255, 0.15));
  color: var(--text);
  cursor: pointer;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(0, 227, 255, 0.35), rgba(0, 170, 255, 0.25)); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(0, 170, 255, 0.6);
  color: var(--text);
}
.btn--outline:hover { background: rgba(0, 170, 255, 0.15); }

.tag {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.25);
  color: var(--text);
  border: 1px solid rgba(0, 170, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Typography helpers (fluid scale) */
h1, h2, h3 { letter-spacing: .2px; }
p, li { font-size: clamp(0.95rem, 0.8vw + 0.9rem, 1.05rem); }

/* Grid utilities (auto-fit, minmax) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0, 170, 255, 0.35);
  border-radius: 12px;
  padding: 0.9rem;
  transition: transform .25s ease, background .3s ease;
}
.card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.07); }

/* Glass panel fallback for content blocks (explicitly named selectors) */
header, nav, main, article, aside, footer {
  /* already styled above; keep as glassy panels per requirement */
}

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
