/* Base + Palette */
:root{
  --bg: #0b0b12;
  --bg-2: #141522;
  --text: #eaf2ff;
  --muted: #a9b6d9;
  --accent: #ff2a2a;        /* scarlet */
  --accent-2: #e8ff3a;      /* laser lemon */
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.22);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 14px;
}

/* Layout foundation (mobile-first) */
html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}
html, body { height: 100%; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Layered background: gradient + subtle pixel mosaic + scanlines */
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(12,0,0,.55), rgba(0,0,0,.55) 60%),
    repeating-linear-gradient(0deg, rgba(255,0,0,.08) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(255,0,0,.08) 0 2px, transparent 2px 4px),
    #09090a;
  background-blend-mode: normal;
  min-height: 100%;
  padding: 1rem;
  /* Subtle global glow for cyberpunk vibe */
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
  will-change: transform;
  /* Respect reduced motion where applicable */
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

/* Centered, responsive container */
.container { width: min(1100px, 92%); margin-inline: auto; }

/* Glass panels (layout blocks) */
header, main, footer, aside {
  background: var(--glass);
  border: 1px solid var(--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)) {
  header, main, footer, aside { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); }
}
header { display: block; margin-bottom: .75rem; }

/* Typography & headings with fluid scale */
h1, h2, h3 { margin: .25rem 0 .5rem; font-weight: 700; line-height: 1.15; color: #fff; }
h1 { font-size: clamp(1.75rem, 2.8vw + 0.75rem, 3.75rem); letter-spacing: .5px; }
h2 { font-size: clamp(1.25rem, 1.6vw + .6rem, 2.25rem); }
p { margin: .5rem 0 1rem; font-size: clamp(0.95rem, 0.8vw + 0.9rem, 1.125rem); line-height: 1.55; color: var(--text); }

/* Navigation tweaks */
nav { margin-top: .25rem; display: flex; gap: .75rem; align-items: center; }
nav a { color: var(--accent-2); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.15); }
nav a:hover, nav a:focus-visible { text-decoration: underline; color: var(--accent); }

/* Hero content & image framing */
.featured-image, .image-frame { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.35); background: #000; margin: .5rem 0 1rem; display: block; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.image-frame { display: block; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area */
.content { padding: .5rem 0 1rem; color: var(--text); }

/* Lists & blocks */
ul { padding-inline-start: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .15rem 0; }

/* Product ad / footer panels as glass blocks with clear interaction state */
.product-ad, .sponsored-page {
  display: block;
  padding: .9rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.3);
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a { display: block; color: #fff; text-decoration: none; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Utility & components */
.container { padding-inline: 1rem; padding-block: 0; }

/* Grid utilities (responsive) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Card & tag styles */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; }
.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: var(--text); }

/* Link/button styling with accessible focus */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a { transition: color .15s ease; }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent); }

/* Buttons (solid and outline variants) */
.btn, .cta {
  display: inline-block;
  padding: .55rem . nine? rem;
}
.btn { padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.btn:focus-visible, .cta:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Primary / outline variants (to satisfy "solid and outline variants") */
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ff5858);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.cta { padding: .6rem 1.1rem; }

/* Image frame helpers for the design system */
.image-frame { border: 1px solid rgba(255,255,255,.34); border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.35); }

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; padding: 0; }
  header, main, footer { background: transparent; border: none; box-shadow: none; border-radius: 0; }
  a { color: #000; text-decoration: underline; }
}
