/* Section: Theme tokens */
:root {
  --bg: #0b0b0f;
  --bg-2: #0b1b14;
  --text: #e8fff0;
  --muted: #a9c5b0;
  --accent: #7fff00;       /* chartreuse */
  --accent-2: #dc143c;     /* crimson */
  --card: rgba(18, 26, 28, 0.72);
  --glass: rgba(18, 26, 28, 0.58);
  --border: rgba(255, 255, 255, 0.32);
  --shadow: 0 8px 24px rgba(0,0,0,.45);
  --focus: 2px solid var(--accent-2);
  --focus-ring: 0 0 0 3px rgba(220,20,60,.6);
  --tag: rgba(0,0,0,.25);
}

/* Section: Global resets & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  background:
    /* Noise/scanline layer */
    repeating-linear-gradient(to bottom,
      rgba(0,0,0,.08) 0px, rgba(0,0,0,.08) 1px,
      transparent 1px, transparent 2px),
    /* Chartreuse glow accent gradient */
    linear-gradient(135deg, rgba(0,0,0,.65), rgba(4,8,6,.65)),
    /* chartreuse/crimson infused backdrop */
    linear-gradient(to bottom right, rgba(127,255,0,.12), rgba(220,20,60,.12)),
    #040506;
  background-blend-mode: overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  text-shadow: 0 0 0 rgba(0,0,0,0);
}
img { max-width: 100%; display: block; }

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

/* Section: Layout helpers */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.grid {
  display: grid;
  gap: 1rem;
}
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(18,26,28,.88); }
}
a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: #eafff0;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  outline-offset: 2px;
}
ul { padding-left: 1.25rem; }

/* Section: Typography scales (fluid) */
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.15; }
h1 { font-size: clamp(1.4rem, 1.6rem + 1.5vw, 2.4rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.15rem, 1.1rem + 1vw, 1.8rem); }
h3 { font-size: clamp(1rem, 0.95rem + .8vw, 1.25rem); }
p { margin: 0 0 1rem; color: color-mix(in oklab, var(--text), white 60%); }

/* Section: Hero & header styling (glass panels) */
header {
  display: grid;
  gap: .5rem;
  justify-items: center;
  padding: 2rem 1rem;
  margin: 1rem auto 0;
}
header .title {
  width: 100%;
  max-width: 1000px;
  padding: 1rem 1.25rem;
  text-align: center;
  border-radius: 14px;
  background: rgba(10, 20, 22, 0.6);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 { font-weight: 700; font-size: clamp(1.6rem, 1.4rem + 2.5vw, 2.8rem); }
header .meta { color: var(--muted); font-size: 0.95rem; }

/* Section: Navigation */
nav {
  display: inline-flex;
  gap: .5rem;
  padding: .25rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
}
nav a {
  padding: .5rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
}
nav a:hover { background: rgba(255,255,255,.08); }

/* Section: Main content */
main { padding: 1rem 0 0; }
article { padding: 0 0; }

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

/* Section: Content utility */
.content { padding: 0.75rem 0 1rem; }
.product-ad { display: block; width: 100%; padding: .75rem; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; text-align: center; color: var(--text); }
.product-ad p { margin: .25rem 0 0; }

/* Section: Buttons & links (solid and outline variants) */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); font-weight: 600; }
.btn { background: rgba(0,0,0,.25); color: #eafff0; }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), #ff4a6a); border-color: rgba(255,255,255,.65); color: #fff; }
.btn.secondary { background: rgba(127,255,0,.15); color: #eafff0; border-color: rgba(127,255,0,.6); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Outline variant for CTAs */
.cta { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.6); }
a.cta { text-decoration: none; }

/* Section: Lists & chips */
ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
li { margin: 0.25rem 0; }
.tag {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .8rem;
  background: var(--tag); color: #eafff0; border: 1px solid rgba(255,255,255,.25);
}

/* Section: Aside & footer areas */
aside { padding: 0.5rem; }

/* Section: Footer */
footer { padding: 2rem 1rem; text-align: center; display: grid; gap: .75rem; }
footer .sponsored-page, footer .product-ad { width: 100%; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  article { padding: 0; }
}
