/* Base & Token Palette */
:root{
  --scarlet: #e21b2d;
  --scarlet-dark: #9e1320;
  --emerald: #20c27b;
  --emerald-dark: #0f8a4a;

  --bg: #07090b;
  --bg-2: #0b1418;

  --text: #eafdf8;
  --muted: #a8ffd6;

  --glass: rgba(8, 12, 12, 0.22);
  --glass-border: rgba(255, 255, 255, 0.25);

  --card: rgba(6, 10, 12, 0.48);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --ring: 0 0 0 3px rgba(0, 0, 0, 0.25);
  --focus: var(--emerald);
  --focus-outline: 3px solid var(--focus);
}

html, body, header, nav, main, article, footer, aside { box-sizing: border-box; }
html, body { height: 100%; }
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Layered, responsive background (gradient + subtle scanlines) */
body {
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(226,27,45,0.20), rgba(12,141,78,0.12) 60%), #050607;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 2px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.45;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 10% 0%, rgba(255,255,255,0.04), transparent 20px),
                    radial-gradient(circle at 90% 10%, rgba(0,0,0,0.15), transparent 40px);
  background-size: 60px 60px;
  mix-blend-mode: overlay;
  opacity: 0.25;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Glass panel utility (with graceful fallback) */
.backdrop {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .backdrop { background: rgba(8,12,12,0.42); border-color: rgba(255,255,255,0.28); }
}

/* Image framing */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  background: #0b0f12;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Content primitives */
.content { padding: 0.75rem 0; }

/* Typography scale (system stack, fluid sizing) */
h1, h2, h3 {
  color: var(--text);
  margin: 0.25rem 0;
}
h1 { font-size: clamp(1.8rem, 2.6vw + 1rem, 3.4rem); line-height: 1.05; letter-spacing: .2px; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 1.8vw + .75rem, 2.25rem); }
h3 { font-size: clamp(1.1rem, 1vw + .5rem, 1.6rem); font-weight: 600; }

p { color: #eafaf3; margin: .5rem 0 1rem; }

/* Lists */
ul { margin: .5rem 0 1rem 1.25rem; padding: 0; color: #eafff1; }
li { margin: .25rem 0; }

/* Quotes */
blockquote {
  margin: .5rem 0 1rem;
  padding-left: .75rem;
  border-left: 3px solid var(--emerald);
  color: #dfffe8;
  opacity: 0.95;
}

/* Links & CTAs */
a { color: var(--emerald); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
a:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }
button, .btn, .cta {
  font: inherit;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #041a11;
  background: linear-gradient(135deg, var(--emerald), #17a56a);
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.btn { color: #041a11; }
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, #23c47e, #18a76a); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }

/* Primary vs Outline variants */
.btn.primary { background: linear-gradient(135deg, var(--scarlet), #b01522); color: white; border: 1px solid rgba(0,0,0,.25); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.outline {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(26, 188, 156, 0.6);
}
.btn.outline:hover { background: rgba(0,0,0,0.05); }

/* Utility & components referenced in markup */
.card { background: var(--card); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Sections mapped to selectors in markup */
header { padding: 1.25rem 1rem 0.75rem; text-align: center; }
header nav { margin-top: .75rem; display: flex; justify-content: center; gap: .75rem; }
header h1 { margin: 0; font-weight: 700; letter-spacing: .2px; }

/* Page structure styling */
main { padding: 1rem; }
article { display: grid; gap: 1rem; }

/* Footer sections styled as glass blocks */
footer { padding: 1rem; display: grid; gap: 0.75rem; justify-items: center; align-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.2), rgba(0,0,0,.0));
}
.product-ad, .sponsored-page { width: min(100%, 420px); text-align: center; }

.product-ad a, .sponsored-page a { text-decoration: none; color: var(--text); }

/* Print styles */
@media print {
  body { background: white; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
```