/* Section: Tokens */
:root {
  --bg: #0a0a13;
  --bg-2: #25133a;
  --text: #eaf2ff;
  --muted: #cbd5e1;
  --accent: #39ff14;
  --accent-2: #9dff7a;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --glass-border: rgba(255,255,255,.28);
  --radius: 12px;
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --focus: 2px solid var(--accent);
}

/* Section: Global */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  min-height: 100dvh;
  /* Layered background: lavender vibe + neon accents + subtle scanlines */
  background:
    radial-gradient(circle at 20% 10%, rgba(170, 110, 255, .25), transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(0, 255, 150, .15), transparent 40%),
    linear-gradient(135deg, rgba(40,0,70,.6), rgba(0,0,0,.0) 60%),
    linear-gradient(#0b0b14, #0b0b14),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.0) 2px 4px);
  background-blend-mode: screen, screen, overlay, normal, overlay;
  overflow-x: hidden;
}
body::after {
  /* subtle, GPU-friendly scanlines */
  content:"";
  position: fixed; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.0) 2px 4px);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .6;
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

/* Section: Layout helpers */
.container { width: 100%; max-width: clamp(720px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.40); }
}
.image-frame { aspect-ratio: 16/9; width: 100%; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Typography (responsive) */
h1, h2 { margin: 0 0 .5rem; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.08; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.15; color: #eaf6ff; }
p { color: var(--muted); line-height: 1.5; margin: 0 0 1rem; }
blockquote { margin: .75rem 0; padding: .5rem 1rem; border-left: 3px solid rgba(57,255,20,.6); color: #eafff5; background: rgba(0,0,0,.15); border-radius: 6px; }

/* Section: Header / Hero */
header { text-align: center; padding: 1.25rem 1rem; position: relative; z-index: 1;
  background: rgba(5,0,20,.25);
  border-bottom: 1px solid rgba(255,255,255,.18);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
}
header h1 { font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.75rem); margin: .25rem 0 .25rem; }
header .meta { color: var(--muted); font-size: .9rem; margin-top: .25rem; }

/* Section: Main content area (glass panel) */
main { padding: 1rem 0 2rem; }
article {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 1rem; border-radius: calc(var(--radius) + 2px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(255,255,255,.14); }
}
.featured-image { margin: 1rem 0 1.25rem; }

/* Section: Links & Buttons */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  outline: none;
}
a { color: var(--accent-2); }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent); }
button, .btn, .cta {
  background: linear-gradient(#3bff3b, #14e013);
  border: 1px solid rgba(57,255,20,.8);
  padding: .6em .95em;
  cursor: pointer;
}
.btn { display: inline-block; font-family: inherit; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(57,255,20,.4); }
.btn:focus-visible { outline: var(--focus); outline-offset: 3px; }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(57,255,20,.9);
}
.cta { padding: .6em 1em; }

/* Section: Misc utilities */
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; color: var(--muted); }
li { margin: .25rem 0; }

/* Section: Footer / ads */
footer { padding: 1rem; text-align: center; color: var(--muted); }
footer .product-ad, footer .sponsored-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 180px; padding: .75rem; margin: .25rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease;
}
footer .product-ad:hover, footer .sponsored-page:hover { transform: translateY(-2px); }
footer p { margin: .5rem 0 0; font-size: .9rem; }

/* Section: Print (basic readability) */
@media print {
  body { color: #000; background: #fff; }
  a { color: #00f; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}

/* Section: Responsiveness helpers (mobile-first) */
@media (min-width: 640px) {
  .container { padding: 0 1.25rem; }
}
@media (min-width: 1024px) {
  .grid { gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}