/* Base / Theme Tokens */
:root{
  --bg: #041b1f;
  --bg-2: #041a1c;
  --text: #eaffff;
  --muted: rgba(234, 255, 255, 0.75);
  --accent: #00f5d1;       /* turquoise neon */
  --accent-2: #ff2fb3;     /* neon pink */
  --card: rgba(6, 14, 18, 0.28);
  --card-border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 12px;
}

/* Global Reset & Layout Helpers */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
main { padding: 1rem 0 2rem; }

/* Layered background: gradient + subtle scanlines/noise (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 255, 200, 0.08), transparent 40%),
    radial-gradient(circle at 78% 30%, rgba(255, 0, 180, 0.08), transparent 40%),
    linear-gradient(135deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.25) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,255,210,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(0,255,210,.04) 0 1px, transparent 1px 2px);
  background-size: 100% 2px, 2px 100%;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
*, *::before, *::after { outline-color: rgba(0, 255, 210, 0.8); }

/* Layout utilities */
.container {
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(8, 18, 20, 0.72); }
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: var(--text);
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.25), inset 0 0 12px rgba(0,255,212,.25);
  background: #0a0f12;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
}
.content { color: var(--muted); }

/* Typography & Hero */
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  position: relative;
  z-index: 1;
}
header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  line-height: 1.15;
  letter-spacing: .3px;
  color: var(--text);
}
header .meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas;
  font-size: .92rem;
  color: rgba(234,255,255,.85);
  opacity: .95;
}
nav {
  display: inline-block; margin-top: .75rem;
}
nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
}
main article { display: grid; gap: 1rem; }

/* Content blocks & lists */
ul { margin: 0.5rem 0 0.5rem 1.1rem; padding: 0; }
li { margin: 0.25rem 0; }

/* Blockquotes & emphasis */
blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-left: 4px solid var(--accent-2);
  color: var(--muted);
  background: rgba(2, 12, 16, 0.25);
  border-radius: 6px;
}

/* Sections in footer as glass panels */
footer {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 1.5rem;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
footer .product-ad, footer .sponsored-page {
  width: 100%;
  max-width: 420px;
}
footer a {
  display: block;
  text-align: center;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* Buttons & links (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease;
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn, .cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--accent-2);
  color: #0a0a0a;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: #ff3ea8;
}
.btn-outline, .cta-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent-2);
}
.btn, .cta { margin: .25rem; }

/* Links with accessible emphasis on hover/focus */
a:hover, a:focus { text-decoration: underline; text-underline-offset: 4px; color: var(--accent-2); }

/* Responsive grid / layout refinements */
@media (min-width: 720px) {
  main { padding: 1.5rem 0 2.5rem; }
  article { grid-template-columns: 1fr; gap: 1.25rem; }
  .container { padding-inline: 1.25rem; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Print styles for basic readability */
@media print {
  html, body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #00f; }
  .card { background: #f8f8f8; border: 1px solid #ddd; }
}
