:root {
  --bg: #041b15;
  --bg-2: #062a3a;
  --text: #eaffff;
  --muted: #a6daff;
  --accent: #39ff7a;      /* glowstick green */
  --accent-2: #4dbbff;     /* baby blue */
  --glass: rgba(8, 12, 20, 0.22);
  --glass-border: rgba(140, 210, 255, 0.35);
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 10px 25px rgba(0,0,0,.25);
  --radius: 14px;
  --fs-base: clamp(14px, 2.2vw, 18px);
  --lh: 1.5;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif; font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 64em) {
  html { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Base layout helpers */
.container {
  max-width: clamp(640px, 86vw, 1120px);
  margin: 0 auto;
  padding: 0 1rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(77,187,255,.25);
  color: var(--text);
  border: 1px solid rgba(77,187,255,.6);
}

/* Glass panels with backdrop-filter (fallback provided) */
.panel, header, main, footer, aside {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  padding: 0.75rem;
}
.panel { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Backdrop-filter support fallback (no blur) */
@supports not (backdrop-filter: blur(1px)) {
  .panel { background: rgba(8, 12, 20, 0.78); }
}

/* Header (hero) */
header {
  padding: 1rem 0.75rem;
  display: grid;
  gap: .5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: .15rem 0 .4rem;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  color: var(--muted);
}
@media (min-width: 64em) {
  header { padding: 1.75rem 1.25rem; }
}

/* Main content */
main { padding: 1rem 0; }
article {
  display: block;
}
.featured-image { width: 100%; overflow: hidden; border-radius: 14px; border: 1px solid rgba(120, 240, 255, .25); box-shadow: 0 6px 24px rgba(0,0,0,.25); margin-bottom: .75rem; }
.image-frame, .image-frame img { display: block; width: 100%; height: auto; border-radius: 12px; }
.image-frame { aspect-ratio: 16/9; overflow: hidden; border: 1px solid rgba(120, 240, 255, .4); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.content { color: var(--text); font-size: var(--fs-base); line-height: var(--lh); }

/* Links & buttons */
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* Buttons (solid & outline) */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1rem; border-radius: 999px; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn { border: 1px solid rgba(77,187,255,.75); color: #02131b; background: linear-gradient(135deg, rgba(57,255,122,.95), rgba(77,187,255,.95)); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Solid primary CTA variant named as .cta if present */
.cta { font-size: 1rem; color: #00131b; background: linear-gradient(135deg, rgba(57,255,122,.98), rgba(77,187,255,.98)); border: none; }

/* Outline variation helper */
.btn--outline, .cta--outline { background: transparent; color: var(--text);
  border: 1px solid rgba(77,187,255,.75);
}
.btn--outline:hover, .cta--outline:hover { background: rgba(77,187,255,.15); }

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

/* Product ad / sponsor blocks in footer */
.product-ad, .sponsored-page {
  padding: .75rem; border-radius: 12px; text-align: center;
  background: rgba(0,0,0,.25); border: 1px solid rgba(120, 240, 255, .35);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; }

/* Footer */
footer { padding: 1rem; display: grid; gap: .75rem; text-align: center; }

/* Typography helpers */
.subtitle { color: var(--muted); font-size: clamp(.95rem, 2.5vw, 1.05rem); }

/* Accessibility & print */
@media print {
  a { text-decoration: underline; color: inherit; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}