:root {
  /* Tokens: scarlet base with pastel green accents */
  --bg: #0a0f14;
  --bg-2: #0e141a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.25);
  --text: #eafff4;
  --muted: #bdebd1;
  --accent: #7dffbf;      /* pastel green */
  --accent-2: #4ee48a;     /* deeper pastel green for accents */
  --scarlet: #ff2b48;      /* vivid scarlet */
  --scarlet-2: #e0183a;
  --focus: 0 0 0 3px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 2px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 6px 20px rgba(0,0,0,.28);
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --text-on-glass: #eafff4;
  --container-max: min(1100px, 94vw);
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Base / Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: var(--font-stack); }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle noise/scanlines (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(255, 0, 48, 0.12), rgba(0,0,0,0) 60%),
    radial-gradient(circle at 20% 0%, rgba(0,0,0,0.15), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease;
}
img { max-width: 100%; display: block; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card { 
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.content { padding: 0.25rem 0; }

/* Typography */
h1, h2, h3 { margin: 0 0 0.5rem; line-height: 1.15; }
p { margin: 0 0 1rem; color: #eafff0; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem 0; }
li { margin: 0.25rem 0; }

/* Key components styling */
header, main, footer, nav, article, aside {
  display: block;
}
header {
  text-align: center;
  padding: 1.25rem 1rem;
}
header h1 {
  font-size: clamp(1.6rem, 1.8rem + 1.2vw, 2.8rem);
  line-height: 1.08;
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
header .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
nav {
  margin-top: 0.75rem;
}
nav a {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  transition: transform .15s ease, background .2s ease;
}
nav a:hover { transform: translateY(-1px); background: rgba(0,0,0,.32); }
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
a, button {
  color: var(--text);
  text-decoration: none;
}
.btn, .cta, a.btn, a.cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(0,0,0,.28);
  color: var(--text);
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--scarlet), var(--scarlet-2));
  border: none;
  color: white;
  box-shadow: 0 6px 14px rgba(255,40,60,.4);
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hero image frame for featured visuals */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 720px;
  margin: 0.75rem auto 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1);
  transition: transform .4s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}

/* Content area */
main { padding: 1rem; }
article { max-width: 860px; margin: 0 auto; }

/* Glass panels (fallback-safe) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.16); }
}
footer {
  padding: 1rem 1rem 2rem;
  text-align: center;
}
.product-ad, .sponsored-page {
  display: inline-block;
  width: max-content;
  margin: .25rem;
}
.product-ad a, .sponsored-page a {
  text-decoration: none;
  color: var(--text);
}
.product-ad p, .sponsored-page p { margin: 0; }

/* Lists and emphasis tweaks for accessibility */
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Utility primitives that resemble required selectors */
ul, li { color: #eafff4; }
.tag {
  display:inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: var(--text);
}
aside { display: none; }

/* Responsive behavior: grid helpers for potential layouts */
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 600px) {
  header { padding: 1rem; }
  nav { margin-top: .5rem; }
  .image-frame { max-width: 100%; }
}
@media print {
  body { background: #fff; color: #000; }
  nav, header, footer { display: none; }
  article { display: block; width: 100%; }
  .image-frame { page-break-inside: avoid; }
}
