/* Base & Tokens */
:root{
  --scarlet: #D7263D;
  --scarlet-2: #B61A2A;
  --emerald: #2ECC71;
  --emerald-2: #1BAF66;
  --bg: #0b0b0f;
  --bg-2: #14161c;
  --text: #EFFFF8;
  --muted: #A8F0D2;
  --surface: rgba(14, 28, 26, 0.32);
  --surface-2: rgba(14, 28, 26, 0.22);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.40);
  --accent: var(--emerald);
  --accent-2: var(--scarlet);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid var(--accent);
}
html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}
html, body { height: 100%; }
html { color-scheme: dark; }
body{
  margin: 0;
  font-family: ui-system, system-ui, "-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  color: var(--text);
  /* Layered background: gradient + scanlines + subtle glow/noise */
  background:
    linear-gradient(135deg, rgba(214,38,61,0.25), rgba(0,0,0,0.25) 60%, rgba(0,150,60,0.15) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    #000;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}
@media (prefers-color-scheme: light) {
  :root { --text: #0b0b0b; }
  body {
    background: 
      linear-gradient(135deg, rgba(214,38,61,0.15), rgba(255,255,255,0.10) 60%, rgba(0,180,80,0.10)),
      linear-gradient(to bottom, #fff, #f3f3f3);
  }
}

/* Layout helpers */
.container{ width: 100%; max-width: clamp(320px, 90vw, 1100px); padding-inline: 1rem; margin: 0 auto; }
.grid{ display: grid; gap: 1rem; }
.card{ background: rgba(8, 20, 20, 0.28); border: 1px solid rgba(255,255,255,0.20); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.tag{ display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.18); color: var(--text); }

/* Sections & typography */
header{ padding: 2rem 0; text-align: center; }
header h1{ font-size: clamp(1.75rem, 2.6vw + 1rem, 3.25rem); line-height: 1.08; letter-spacing: .4px; margin: 0 auto; padding: .25rem 0; max-width: 72ch; }
main{ padding: 1rem 0 2rem; display: grid; place-items: center; }
article{ width: 100%; display: grid; place-items: center; }

/* Image frame with aspect ratio, glow, border */
.image-frame{ width: min(92%, 860px); aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); box-shadow: 0 8px 28px rgba(0,0,0,.5); display: grid; place-items: center; }
.image-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); }

/* Glass panels (fallback-friendly) */
.product-ad, .sponsored-page{ width: min(100%, 720px); margin: .5rem 0; padding: .75rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(10, 20, 16, 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
@supports not (backdrop-filter: blur(10px)) {
  .product-ad, .sponsored-page{ background: rgba(10,20,16,0.60); }
}
.product-ad a, .sponsored-page a{ color: var(--text); text-decoration: none; display: block; text-align: center; font-weight: 600; }

/* Links & CTAs */
a, button, .btn, .cta{ color: var(--text); text-decoration: none; outline: none; }
a:hover{ text-decoration: underline; }
button, .btn, .cta{
  background: rgba(27,212,123,0.18);
  border: 1px solid rgba(27,212,123,0.45);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s;
}
button:hover, .btn:hover, .cta:hover{ transform: translateY(-1px); background: rgba(27,212,123,0.28); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible, a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Utility & forms (if present) */
.content{ padding: 1rem; }
ul{ padding-left: 1rem; }
li{ margin: .25rem 0; }

/* Responsive layout utilities (grid variants) */
@media (min-width: 640px){
  .container{ padding-inline: 2rem; }
}
@media (min-width: 860px){
  .grid-2{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
}
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* Print styles */
@media print{
  body{ background: #fff; color: #000; }
  a{ text-decoration: underline; }
  .product-ad, .sponsored-page{ background: #f0f0f0; border: 1px solid #ccc; }
}
  
/* NAV, ASIDE basics (presentational placeholders) */
nav{ display: block; padding: .5rem 0; }
aside{ display: none; }

/* SECTION HEADERS (structure clarity) */
:where(header, main, article, footer){ /* structural helpers if needed in future */ }

/* Hero specifics (clear hierarchy) */
header h1{ color: var(--text); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.content h2{ font-size: clamp(1.25rem, 1.6vw + 1rem, 1.75rem); margin: .5rem 0 .25rem; color: var(--text); }
.content p{ color: var(--muted); margin: .25rem 0 0; }

/* Image frame glow accent aligned to emerald/scarlet theme */
.image-frame{ border-color: rgba(0,0,0,.4); box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 24px rgba(27, 212, 123, 0.25) inset; }
.image-frame::after{ content:''; position:absolute; inset:0; border-radius:12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); pointer-events:none; }