/* Base tokens */
:root {
  --bg: #2b000f;
  --bg-2: #4b0016;
  --text: #f9f9f9;
  --muted: #d9d9d9;
  --accent: #7fff00;
  --accent-2: #ccff66;
  --glass: rgba(18,0,20,.22);
  --glass-border: rgba(255,255,255,.28);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 12px;
  --focus: 2px solid #fff;
}

/* Global, mobile-first layout */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  min-height: 100dvh;
  background:
    linear-gradient(135deg, #6d0014 0%, #2b000f 60%, #0b000e 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.04), transparent 40%);
  background-blend-mode: normal, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
}
header, main, article, footer, nav, aside { display: block; }

/* Centered, responsive container */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Header / hero typography */
header { padding: 2rem 0 1rem; text-align: center; }
header h1 {
  font-family: ui-sans-serif, system-ui;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw + 0.5rem, 3rem);
  line-height: 1.08;
  margin: 0;
  letter-spacing: .2px;
  color: var(--text);
}
header .lead { color: var(--muted); font-size: clamp(1rem, 0.8vw + 0.9rem, 1.25rem); margin-top: .25rem; }

/* Main content / image frame (glass panel) */
main { padding: 0 0 1rem; }
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Glass panel utility (fallback-friendly) */
.glass {
  background: rgba(18,0,20,.22);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(18,0,20,.38); backdrop-filter: none; }
}

/* Footer sections (ads / promos) as glass panels */
footer { padding: 1rem 0; display: grid; gap: 0.75rem; }
.product-ad, .sponsored-page { display: grid; }
.product-ad a, .sponsored-page a {
  display: block;
  padding: .75rem 1rem;
  border-radius: 999px;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  background: rgba(18,0,20,.22);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); background: rgba(18,0,20,.32); }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Content blocks / utility classes */
.content { padding: 1rem; }

/* Grid / card / tag utilities (responsive) */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Tag pills */
.tag { display: inline-block; padding: .15em .6em; font-size: .75rem; border-radius: 999px; border: 1px solid rgba(127,255,0,.5); color: var(--text); background: rgba(127,255,0,.15); }

/* Links / buttons / CTAs */
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; outline: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Button variants */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.05rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: linear-gradient(135deg, rgba(35,0,20,.95), rgba(0,0,0,.0)); color: var(--text); transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }
.btn--outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn--outline:hover { background: rgba(127,255,0,.14); color: #fff; }

/* Focus visibility for interactive elements on keyboard / assistive tech users */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Typography scale for body text */ 
p, li { font-size: clamp(0.95rem, 0.8vw + 0.9rem, 1.05rem); line-height: 1.5; color: var(--muted); }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { padding: 0.5in; }
}
  
/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
} 

/* Simple entrance animation (GPU-friendly) */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.container { opacity: 0; animation: fadeIn .5s ease forwards; animation-delay: 0.05s; }