/* Tokens */
:root {
  --bg: #031910;
  --bg-2: #062013;
  --text: #eafff0;
  --muted: #b8ffd3;
  --surface: rgba(9, 32, 18, 0.34);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --accent: #39ff14;       /* neon green */
  --accent-2: #ff7a1a;     /* burnt orange */
  --focus: 2px solid color-mix(in oklab, var(--accent) 60%, black);
}

/* Base & Layout (Mobile-first) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); }
body {
  margin: 0;
  min-height: 100vh;
  /* Layered background: gradient + glow + subtle scanlines/noise (pure CSS) */
  background:
    /* glow wisps */
    radial-gradient(circle at 20% 0%, rgba(57,255,20,.22), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(255,122,26,.20), transparent 40%),
    /* dark cyber base */
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #030f0a 100%),
    /* subtle scanlines */
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  background-blend-mode: overlay, screen, normal, normal;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  position: relative;
  isolation: isolate;
}
body::before {
  /* Optional extra micro-noise without external assets (subtle) */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,.04) 0 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: .25;
  mix-blend-mode: overlay;
}

/* Utility containers & grids */
.container { max-width: clamp(720px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Sections & glass panels (frosted glass with fallback) */
header, main, article, footer, aside {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(10, 40, 22, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, article, footer, aside {
    background: rgba(10, 40, 22, 0.72);
    border-color: rgba(255, 255, 255, 0.4);
  }
}
h1, h2, h3, h4 { margin: .4rem 0 .6rem; line-height: 1.25; }
p { margin: 0 0 1rem; }
.meta { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; }

/* Header content */
header { text-align: center; padding-top: 1.25rem; padding-bottom: 1.25rem; }
header h1 { font-size: clamp(1.6rem, 1.6rem + 2vw, 2.6rem); margin: 0.25rem 0 0.25rem; font-weight: 700; letter-spacing: .2px; }
nav { margin-top: .75rem; display: inline-block; }
nav a { color: var(--accent); text-decoration: none; padding: .35rem .6rem; border-radius: 6px; border: 1px solid rgba(57,255,20,.25); }
nav a:hover { text-decoration: underline; }

/* Main content */
main { margin: 1rem auto; max-width: 1100px; }
article { padding: 0.75rem; }

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

/* Content container for article text (styles invoked via .content) */
.content { padding: .25rem 0 0; }

/* Simple card utility for product-ad in footer */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; }

/* Specific component: .product-ad */
.product-ad { display: block; text-align: center; padding: .25rem; }
.product-ad a { display: block; padding: .75rem; border-radius: 8px; text-decoration: none; color: var(--text); background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.25); }
.product-ad a:hover { background: rgba(0,0,0,.25); }

/* Links, buttons, CTAs */
a, button, .btn, .cta { font-family: inherit; color: var(--text); text-decoration: none; letter-spacing: .2px; }
a { transition: color .2s; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; outline: none; }
button, .btn, .cta { display: inline-block; cursor: pointer; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); padding: .6rem .95rem; font-weight: 600; }
.btn { background: var(--accent); color: #041f0a; }
.btn:hover { background: color-mmute(var(--accent) 0.1); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

.cta { background: rgba(255,255,255,.08); color: var(--text); border-color: rgba(255,255,255,.4); }

/* Focus rings for accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Lists */
ul, li { margin: 0 0 0.5rem; padding: 0; }
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Tags & simple chips */
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; border: 1px solid rgba(255,255,255,.3); background: rgba(57,255,20,.15); color: #dffff0; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, main, article, footer { background: none; border: none; box-shadow: none; }
  a { color: #0000ee; text-decoration: underline; }
}
