/* Root tokens: cyberpunk red + laser lemon palette */
:root{
  --bg: #120808;
  --bg-2: #1a0e0e;
  --text: #eaf7ff;
  --muted: #a8b3c4;
  --accent: #ff2a2a;       /* red core accent */
  --accent-2: #f9ff3a;     /* laser lemon */
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.18);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,0.45);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(246, 255, 98, 0.75);
}

/* Base / resets (mobile-first) */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; }

html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.4;
  color: var(--text);
  /* Layered background: gradient + subtle marble veins + scanlines (pure CSS) */
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.05) 0 15%, transparent 16%),
    linear-gradient(135deg, #2a0000 0%, #140000 60%, #0a0000 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

/* Structural layout */
header, nav, main, article, footer, aside {
  display: block;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

header h1 {
  font-size: clamp(1.15rem, 1.2rem + 1vw, 1.6rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform .15s ease, background .2s ease;
}
nav a:hover { transform: translateY(-1px); text-decoration: underline; }

main { padding: 1rem; }

article { display: block; }

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Glass panels (frosted glass) with fallback */
.backdrop {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .backdrop {
    background: var(--glass-2);
  }
}

.content { padding: 0.5rem 0 1rem; color: var(--text); }

/* Product ad footer blocks */
.product-ad, .sponsored-page {
  display: block;
  margin: .5rem 0;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  width: 100%;
}
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Link & button states (accessibility) */
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--accent-2);
  color: #0b0b0b;
  border-color: rgba(0,0,0,0.15);
  font-weight: 700;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: var(--text);
}
.cta { display:inline-block; }

/* Lists and cards */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Layout utilities (responsive grid / container / card / tag) */
.container {
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Typography scale (fluid) */
h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 .5rem;
  font-weight: 700;
}
h1 {
  font-size: clamp(1.4rem, 1.6rem + 2vw, 2.6rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
p { margin: 0 0 0.75rem; color: var(--muted); }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  header, nav, footer { display: none; }
  .container { padding: 0; }
}
 
/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}