/* Tokens & Base */
:root{
  --bg: #0b0b0f;
  --bg-2: #120a14;
  --text: #eafff2;
  --muted: #93a0a1;
  --accent: #39ff14;      /* neon green */
  --accent-2: #8b0a2a;     /* burgundy */
  --glass: rgba(15, 0, 10, 0.22);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --radius: 12px;
  --focus: #ffffff;
  --focus-offset: 2px;
}

/* Base reset & layout scaffolding */
* { box-sizing: border-box; }
html, body, header, nav, main, article, footer, aside { height: auto; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; color: var(--text); background: #000; }

/* Layered, responsive background: gradient + subtle scanlines + neon zigzag hint */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(8,3,6,.92) 0%, rgba(8,3,6,.95) 60%, rgba(18,6,9,.92) 100%), 
              radial-gradient(circle at 20% 0%, rgba(57,255,20,.08) 0 40%, transparent 40%), 
              #050510;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  position: relative;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(57,255,20,.12) 0 1px, transparent 1px),
    conic-gradient(from 180deg at 50% 50%, rgba(57,255,20,.08) 0 25%, transparent 25% 50%, rgba(57,255,20,.08) 50% 75%, transparent 75% 100%);
  background-size: 20px 20px, 200px 200px;
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: overlay;
}
body:after {
  content: "";
  position: fixed; inset: 0;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.04)),
                    repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
}

/* Glass panel helper with fallback */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass { backdrop-filter: none; background: rgba(12,0,12,0.75); border-color: rgba(255,255,255,.45); }
}

/* Layout primitives */
.container { width: 100%; max-width: clamp(320px, 92vw, 1120px); padding-inline: 1rem; margin: 0 auto; }

/* Header / Nav / Main framing */
header { padding: 1.25rem 0; text-align: center; }
header h1 { font-size: clamp(1.4rem, 2.6vw + 0.9rem, 2.6rem); line-height: 1.15; margin: 0 0 .25rem; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
nav { margin-top: .5rem; }
nav a { color: var(--text); text-decoration: none; padding: .35rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); }
nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: var(--focus-offset); }

/* Main content + article styling */
main { padding: 1rem 0 2rem; }
article { display: grid; gap: 1rem; }

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

/* Featured content wrapper (repurposed for .glass styling) */
.featured-image { width: 100%; }

/* Headings and typography within article */
h2, h3 { margin: .5rem 0; line-height: 1.25; color: #eafff2; }
p { margin: 0 0 1rem; color: #e8f5e8; }
blockquote { margin: .5rem 0; padding: .5rem 1rem; border-left: 4px solid var(--accent-2); background: rgba(8,0,6,.25); border-radius: 8px; }

/* Lists / content helpers */
ul, li { margin: 0 0 0.5rem; padding-left: 1.1rem; }
li { color: #eafff0; }
ol { margin: .5rem 0 1rem; padding-left: 1.2rem; }

/* Content container styling blocks */
.content { display: block; }

/* Utility: grid / card / tag */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(8,0,8,.28); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* Badges / tags */
.tag { display: inline-block; padding: .25em .5em; border-radius: 999px; font-size: .8rem; color: #03160b; background: rgba(57,255,20,.55); border: 1px solid rgba(57,255,20,.7); }

/* Product ad / footer sections */
.product-ad, .sponsored-page { display: inline-block; width: 100%; margin: .25rem 0; text-align: left; }
.product-ad a, .sponsored-page a { display: block; padding: .75rem 1rem; color: var(--text); text-decoration: none; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(26,0,8,.32); }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Footer tweaks */
footer { padding: 1rem 0; text-align: center; }

/* Link/button treatments across the page */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  padding: .5rem .85rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  transition: transform .15s ease, background .15s ease, border-color .15s;
}
a:hover, button:hover, .btn:hover, .cta:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #041a0a;
  border: 1px solid rgba(57,255,20,.8);
  padding: .6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(57,255,20,.4);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(57,255,20,.6);
  box-shadow: none;
}
.btn:active { transform: translateY(1px); }

/* Print styles for basic readability */
@media print {
  body { background: #fff; color: #000; }
  nav, .image-frame, .glass { display: none; }
  .container { width: 100%; padding: 0; }
  a, button, .btn { color: #000; text-decoration: underline; }
}

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

/* Responsive tweaks */
@media (min-width: 768px) {
  header { text-align: left; padding: 1.5rem 0; }
  header .meta { text-align: left; }
}
@media (min-width: 1024px) {
  main { padding: 2rem 0 3rem; }
}

/* Content-specific glass placements (where applicable) */
header, main, footer { /* base glassy framing when appropriate in layout */ }
*/

/* End of CSS */