/* Base Tokens */
:root{
  --bg: #0b1020;
  --bg-2: #040612;
  --surface: rgba(16, 22, 46, 0.65);
  --surface-2: rgba(14, 18, 40, 0.55);
  --text: #e9ffe9;
  --muted: #b8ffd6;
  --accent: #9dff00;       /* lime neon */
  --accent-2: #4f46e5;      /* indigo */
  --border: rgba(150, 180, 255, 0.35);
  --radius: 14px;
  --focus: 2px solid rgba(125, 255, 120, 0.95);
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.14);
}

/* Global / Layout */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
}
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(2,6,20,0.95) 0%, rgba(6,8,24,0.75) 50%, rgba(2,6,20,0.95) 100%), #000;
  background-attachment: fixed;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle laser-like scanlines + speckle glow (pure CSS) */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0 1px, rgba(0,0,0,0.08) 1px 2px),
    linear-gradient(to right, rgba(0,0,0,0) 0 1px, rgba(0,0,0,0.05) 1px 2px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: 0;
  filter: saturate(110%);
}
@media (prefers-reduced-motion: reduce){
  body::before { display: none; }
  * { transition: none !important; animation: none !important; }
}

/* Page Sections / Glass Panels */
header, main, footer, aside, article, nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  color: var(--text);
}
header { text-align: center; padding: 1.75rem 1rem; }

/* Container utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,210,255,0.25);
  border-radius: 12px;
  padding: 0.75rem;
}
.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75em;
  background: rgba(125, 255, 120, 0.15);
  border: 1px solid rgba(125, 255, 120, 0.65);
  color: #eaffd9;
}

/* Hero / Typography */
h1, h2 {
  margin: 0 0 0.5rem;
  line-height: 1.15;
  letter-spacing: .2px;
}
h1 {
  font-size: clamp(1.8rem, 6vw, 3.25rem);
  font-weight: 700;
  color: #eaffd3;
}
h2 {
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: #eafff0;
}
.meta {
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  color: var(--muted);
}
.featured-image {
  margin: 1rem auto;
  width: 100%;
  max-width: 900px;
  display: block;
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(120, 210, 120, 0.5);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(120, 210, 120, 0.6);
  background: #0b0f1a;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}

/* Content area (within article) */
.content { padding: 0.75rem 0 0; color: var(--text); }

/* Text links / CTAs */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}
a:hover, a:focus { text-decoration: underline; }

/* Buttons / CTA variants */
.btn, .cta, button {
  display: inline-block;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 255, 120, 0.9);
  background: linear-gradient(135deg, rgba(20,28,60,0.95), rgba(10,18,36,0.95));
  color: #eafff3;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover, .cta:hover, button:hover {
  transform: translateY(-1px);
}
.btn:active, .cta:active, button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.btn.primary {
  background: linear-gradient(135deg, rgba(0,0,0,0.0), rgba(0,0,0,0.0)), #2a2b59;
  color: #eaffff;
  border: 1px solid rgba(125, 255, 120, 0.95);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(125, 255, 120, 0.95);
  color: var(--text);
}
.cta {
  background: linear-gradient(135deg, rgba(155, 255, 0, 0.6), rgba(0,0,0,0.2));
  border: 1px solid rgba(155, 255, 0, 0.9);
  color: #041201;
  text-shadow: 0 1px 0 rgba(255,255,255,0.15);
}
.cta:hover { background: linear-gradient(135deg, rgba(155, 255, 0, 0.9), rgba(0,0,0,0.25)); }

/* Lists */
ul { padding-left: 1.25rem; margin: 0.75rem 0; }
li { margin: 0.25rem 0; }

/* Misc sections used by HTML */
.product-ad {
  display: grid;
  place-items: stretch;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(125, 255, 120, 0.6);
}
.product-ad a { display: block; padding: 0.75rem; text-align: center; color: #eaffff; text-decoration: none; }
.product-ad a:hover { background: rgba(125,255,120,0.15); }

/* Footer typography / layout tweaks */
footer { margin-top: 1rem; padding: 1rem; text-align: center; }

/* Print */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: #fff; border: none; border-radius: 0; }
}
@media (min-width: 640px){
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-color-scheme: light){
  :root {
    --surface: rgba(255,255,255,0.75);
    --text: #0a1220;
  }
}
