/* Palette & Tokens */
:root{
  --bg: #0b0f14;
  --bg-2: #11161b;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --text: #eaf5fb;
  --muted: #a3b4c4;
  --accent: #e31b2a;
  --accent-2: #9cfff3;
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
}

/* 1) Base & Layered Background (mobile-first) */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(10,12,16,.98) 0%, rgba(9,12,16,.98) 60%, rgba(8,10,14,.98) 100%),
    radial-gradient(circle at 20% -5%, rgba(0,255,230,.08), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(255,0,60,.08), transparent 25%);
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}
body::before {
  /* holographic silver zigzag overlay (subtle) */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 14px 14px;
  mix-blend-mode: overlay;
  opacity: .25;
}
body::after {
  /* subtle scanlines */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-size: 100% 2px;
  mix-blend-mode: overlay;
  opacity: .25;
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { display: none; }
}

/* 2) Layout utilities */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  max-width: clamp(640px, 90vw, 1100px);
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(227,27,42,.28);
  color: #fff;
  border: 1px solid rgba(227,27,42,.6);
}
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.15);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
}
header, main, footer, aside {
  display: block;
}
header {
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 14px;
  max-width: clamp(320px, 90vw, 1100px);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.4rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* 3) Content area & typographic rhythm */
main { padding: 1rem; }
article {
  max-width: clamp(640px, 90vw, 860px);
  margin: 0 auto;
}
h2 {
  font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
  margin: .75rem 0;
  color: var(--text);
}
p { color: var(--muted); line-height: 1.6; margin: .75rem 0; }
blockquote {
  margin: .75rem 0; padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text); background: rgba(0,0,0,.15);
}
ul { padding-left: 1.25rem; color: var(--muted); }

/* 4) Glass surfaces & accessibility fallbacks */
.backdrop, .glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
@supports not (backdrop-filter: blur(12px)) {
  .backdrop, .glass { background: rgba(255,255,255,.14); }
}
.product-ad {
  padding: .6rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.product-ad a { display: block; padding: .5rem; text-align: center; color: #fff; text-decoration: none; border-radius: 6px; background: linear-gradient(135deg, rgba(230,0,0,.95), rgba(180,0,0,.95)); }
.product-ad a:hover { filter: brightness(1.05); }

/* 5) Interactive elements (buttons & links) */
a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1rem; border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease, background .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(227,27,42,.8);
}
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.2rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(230,0,0,.95), rgba(180,0,0,.95));
  color: #fff; border: 1px solid rgba(255,255,255,.25);
  font-weight: 700;
}
.cta:hover { filter: brightness(1.05); }

/* 6) Typography scaling helpers (compact set) */
@media (min-width: 600px) {
  .container { padding-inline: 1.5rem; }
}
@media (min-width: 900px) {
  article { padding: 0 0; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* 7) Print & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { color: #000; background: #fff; }
  a { text-decoration: underline; color: #000; }
  header, main, footer { display: block; }
}