/* Theme Tokens */
:root {
  --bg: #2a1b0a;
  --bg-2: #1a160d;
  --surface: rgba(255, 255, 255, 0.08);
  --text: #e8ffd9;
  --muted: #a8cfa1;
  --accent: #4bdc70;      /* neon green */
  --accent-2: #9af5a1;     /* lighter green for contrasts */
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 2px solid #00ffa8;
}

/* Base & Layout */
html, body { height: 100%; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #0b0b07 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Subtle layered background: grid + radar sweep (pure CSS) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background: conic-gradient(from 0deg at 50% 50%, rgba(0,255,120,.20) 0deg, rgba(0,0,0,0) 60deg 360deg);
  animation: radar 12s linear infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.25;
}
@keyframes radar { to { transform: rotate(360deg); } }

/* Sections & key elements */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  padding: 2rem 1rem 0;
  text-align: center;
}
header h1 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.9rem);
  line-height: 1.15;
  margin: 0 0 .4rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 0.8vw + 0.6rem, 1rem);
  margin-bottom: .75rem;
}
nav {
  margin-top: .5rem;
}
nav a {
  display: inline-block;
  padding: .65rem .95rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  color: #eafff0;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.28);
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}
main {
  padding: 1rem;
}
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  margin: 0 auto 1rem;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.featured-image { text-align: center; }

/* Glass panels / frosted look with graceful fallbacks */
 .glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(255,255,255,.14); }
}
.content { padding: .5rem 0; }

/* Article content styling */
article { max-width: clamp(520px, 90%, 900px); margin: 0 auto 1rem; }
article h1 { font-size: clamp(1.4rem, 0.9vw + 1rem, 2.2rem); margin: .25rem 0 .5rem; }
article h2, article h3 { color: var(--text); margin: .75rem 0 .3rem; font-weight: 700; }
article p { color: #eafff0; margin: .5rem 0; }
blockquote {
  border-left: 3px solid var(--accent);
  padding: .25rem 1rem;
  margin: .75rem 0;
  color: #eafff0;
  opacity: .95;
  font-style: italic;
}
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Product ad / footer ad sections */
.product-ad, .sponsored-page {
  display: inline-block;
  margin: .25rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.28);
}
.product-ad a, .sponsored-page a { color: inherit; text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }

/* Utility grid / cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(60,180,100,.25);
  color: #baffcf;
  border: 1px solid rgba(60,180,100,.5);
}

/* Buttons & links (focus-visible for accessibility) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; color: #aaffca; }
button, .btn, .cta {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: .75rem 1.2rem;
}
.btn {
  background: var(--accent);
  color: #041005;
  border: 1px solid rgba(0,0,0,.15);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--accent);
  color: #001000;
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.28);
}
.cta { display: inline-flex; align-items: center; justify-content: center; }

/* Glass cards / panels for content areas */
.section-card { padding: .75rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); }

/* Forms (if present) */
input, textarea, select {
  width: 100%; padding: .6rem .8rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: var(--text);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #00ffa8;
  outline-offset: 2px;
  border-color: rgba(0,255,168,.8);
}

/* Print styles: basic readability */
@media print {
  html, body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  main { padding: 0; }
  article { max-width: 100%; margin: 0; }
}

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