/* 1. Tokens & Theme */
/* Palette derived from chartreuse + orange for cyberpunk vibe */
:root{
  --bg: #0b0b0b;
  --bg-2: #111611;
  --surface: rgba(16, 24, 16, 0.72);
  --surface-2: rgba(255, 120, 0, 0.22);
  --text: #eafff1;
  --muted: #a8d69c;
  --accent: #dfff00;     /* chartreuse */
  --accent-2: #ff7a00;    /* orange */
  --card: rgba(14, 25, 14, 0.65);
  --shadow: 0 6px 20px rgba(0,0,0,0.45);
  --focus: #ffd966;
}

/* 2. Layered background: gradient + subtle noise/scanlines (pure CSS) */
html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
  background: 
    linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.85)),
    linear-gradient(135deg, rgba(223,255,0,0.10), rgba(255,127,0,0.12) 60%, rgba(223,255,0,0.10)),
    #0a0a0a;
  background-blend-mode: overlay, overlay, normal;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Subtle noise/scanlines layer (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* layered texture: soft spots + micro-scanlines + subtle grain */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.05) 0 6px, transparent 7px),
    radial-gradient(circle at 75% 60%, rgba(0,0,0,0.10) 0 8px, transparent 9px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.9;
  filter: saturate(1.2);
}

/* 3. Layout primitives */
.header, main, article, footer, aside, nav { display: block; }
.container { width: 100%; max-width: clamp(320px, 78vw, 1100px); margin: 0 auto; padding: 0 1rem; }

/* Centered hero header */
header {
  padding: 2rem 0 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 6px 22px rgba(0,0,0,0.55);
}

/* Main content area */
main {
  padding: 1rem 0 2rem;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
article { width: 100%; display: grid; justify-items: center; }

/* 4. Glass panels & imagery */
.image-frame {
  width: min(100%, 720px);
  aspect-ratio: 16/9;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  position: relative;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: -webkit-optimize-contrast;
}
@supports not (backdrop-filter: blur(12px)) {
  .image-frame {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.40);
  }
}

/* 5. Content blocks & utilities */
.content { padding: 1rem; }

/* 6. Product ad / sponsor blocks (glass panels) */
.product-ad, .sponsored-page {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  margin: 0.25rem 0.5rem;
}
.product-ad { text-align: center; }
.product-ad a, .sponsored-page a {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none; color: #fff;
  padding: 0.6rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.36);
  background: linear-gradient(135deg, rgba(0,0,0,0.25), rgba(0,0,0,0.4));
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 7. Typography & controls */
ul, li { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Buttons & CTAs (solid + outline variants) */
.btn, .cta {
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75em 1.25em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0a0a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn.secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn.outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.cta { display: inline-flex; align-items: center; }

/* 8. Cards & tags (utility classes) */
.grid { display: grid; gap: 1rem; }
.card {
  background: rgba(18,24,18,0.65);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-flex; align-items: center;
  padding: 0.25em 0.55em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  color: #eaffc9;
  border: 1px solid rgba(255,255,255,0.28);
}

/* 9. Accessibility & accessibility helpers */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 10. Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  .image-frame { page-break-inside: avoid; background: #fff; border: none; }
}
