/* Theme tokens */
:root{
  --bg: #0a0f14;
  --bg-2: #111725;
  --text: #e8feff;
  --muted: #a5c6d8;
  --accent: #00e5ff;        /* cyan light beams */
  --accent-2: #8b1e2a;       /* burgundy accent */
  --card: rgba(255,255,255,.08);
  --card-border: rgba(255,255,255,.25);
  --shadow: 0 6px 18px rgba(0,0,0,.4);
  --focus: 0 0 0 3px rgba(0, 229, 255, .6);
  --radius: 12px;
  --gap: 1rem;
}
/* Normalize+base */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(to bottom, rgba(6,10,15,.95), rgba(6,10,15,.98)),
    radial-gradient(circle at 25% 0%, rgba(0,210,235,.08), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(139,0,60,.12), transparent 25%),
    rgba(0,0,0,0);
  background-color: var(--bg);
  font-size: clamp(14px, 0.4vw + 14px, 18px);
  line-height: 1.5;
  min-block-size: 100%;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before{
  /* cyan light-beam overlay (pure CSS) */
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,255,255,.08) 0 2px, rgba(0,0,0,0) 2px 4px),
    repeating-linear-gradient(45deg, rgba(0,255,255,.06) 0 8px, rgba(0,0,0,0) 8px 16px),
    repeating-linear-gradient(-45deg, rgba(0,255,255,.04) 0 12px, rgba(0,0,0,0) 12px 24px);
  mix-blend-mode: screen;
  z-index: 0;
  opacity: .9;
  filter: saturate(120%);
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

.header, .container, main, header, nav, article, footer, aside { /* ensure predictable stacking */ }

header {
  padding: 1rem;
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 .5rem;
}
nav {
  margin-top: .25rem;
}
nav a {
  display: inline-block;
  padding: .4rem .75rem;
  border-radius: 6px;
  color: #eaffff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { background: rgba(0,0,0,.35); transform: translateY(-1px); text-decoration: underline; }
nav a:focus-visible { outline: none; box-shadow: var(--focus); border-color: rgba(0,229,255,.8); }

main {
  padding: 0 0 2rem;
  width: 100%;
  z-index: 1;
  position: relative;
}
article {
  max-width: clamp(28rem, 85vw, 900px);
  margin: 1.25rem auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(255,255,255,.14); }
}
.featured-image { margin: 1rem 0; }
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content { padding: 0; }
.content p { color: var(--text); opacity: .95; }
.content h2, .content h3 { margin: .75rem 0 .25rem; color: var(--text); }
.content h2 { font-size: clamp(1.4rem, 0.8vw + 1.4rem, 2.4rem); }
.content h3 { font-size: clamp(1.1rem, 0.7vw + 1rem, 1.6rem); }
blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.18);
  border-radius: 6px;
  color: #eaffff;
}
ul { margin: .75rem 0 1rem 1rem; padding: 0; }
ul li { margin: .25rem 0; }
p { margin: .5rem 0; }

@media (max-width: 720px) {
  article { margin: .75rem; padding: .75rem; }
  .image-frame { border-radius: 10px; }
}

/* Glass panel helpers (content blocks) */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(0,255,255,.18);
  color: #001018;
  border: 1px solid rgba(255,255,255,.25);
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }

/* Product ad / footer sections as glass panels */
footer {
  padding: 1rem 0;
  margin-top: 1rem;
}
footer .product-ad,
footer .sponsored-page {
  display: block;
  padding: .9rem;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  transition: transform .2s ease;
}
footer .product-ad:hover, footer .sponsored-page:hover { transform: translateY(-1px); }
footer p { margin: .5rem 0 0; text-align: center; color: var(--muted); }

/* Buttons and links */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .2px;
}
a { color: #eaffff; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
button, .btn, .cta {
  border: 0;
  border-radius: 8px;
  padding: .55rem . nine;
}
.btn, .cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn.primary, .cta.primary {
  background: linear-gradient(135deg, var(--accent), rgba(0,180,200,.95));
  color: #001018;
  border: 0;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(0, 230, 255, .8);
  color: var(--text);
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Focus/Accessibility: high contrast in glass panels */
[aria-label]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  article { background: #fff; border: none; box-shadow: none; }
  footer { display: none; }
}

/* Content helpers (for potential .content usage) */
.content p { margin-block: .5rem; }
.content h2, .content h3 { line-height: 1.25; }

/* Aside styling (present for selectors) */
aside { display: none; }

/* Reduced motion safeguard for interactive elements */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}