/* Palette & Theme Tokens */
:root {
  --bg: #0b0f0a;
  --bg-2: #141a16;
  --text: #e6ffe6;
  --muted: #9fb3a9;
  --accent: #2ee673;
  --accent-2: #7cff9f;
  --panel: rgba(15, 23, 15, 0.66);
  --panel-2: rgba(20, 120, 80, 0.28);
  --panel-border: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(0,0,0,0.5);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f2f2;
    --bg-2: #ffffff;
    --text: #0b1b0b;
    --muted: #4a5a4a;
    --accent: #1a7a1a;
    --accent-2: #2aa95a;
    --panel: rgba(255,255,255,0.88);
    --panel-2: rgba(240,245,240,0.75);
    --panel-border: rgba(0,0,0,0.08);
  }
}
html, body { height: 100%; }

/* Base & Global */
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans";
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines + soft noise-like texture */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.80)),
    repeating-linear-gradient(to bottom, rgba(46, 255, 115, 0.04) 0px, rgba(46, 255, 115, 0.04) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at 70% 0%, rgba(40,255,120,0.18), transparent 40%),
    #0b0f0a;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--text); text-decoration: none; }

/* Layout helpers & utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }

/* Section primitives */
header, main, article, aside, footer {
  display: block;
}
header {
  padding: 1.25rem;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--panel);
  border-bottom: 1px solid var(--panel-border);
  border-radius: 14px;
  margin: 0.75rem;
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
}
header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--text);
  text-shadow: 0 0 12px rgba(46, 230, 115, 0.25);
}
main { padding: 1rem; }
article { display: grid; justify-items: center; width: 100%; }
.image-frame {
  width: min(680px, 92vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,0.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
footer {
  padding: 1rem;
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}
.product-ad, .sponsored-page {
  display: block;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.product-ad a, .sponsored-page a { display: block; color: var(--text); padding: .25rem 0; font-weight: 600; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }
.product-ad p, .sponsored-page p { margin: 0; }

/* Content & Cards */
.content { padding: 1rem; }

/* Buttons & CTAs */
a, button, .btn, .cta { color: var(--text); text-decoration: none; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 115, 0.85);
  background: rgba(46, 230, 115, 0.25);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(46, 230, 115, 0.4); }
.btn.primary {
  background: linear-gradient(135deg, #2ee673 0%, #1bd06c 100%);
  border-color: rgba(46, 230, 115, 0.95);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(46, 230, 115, 0.95);
  color: var(--text);
}
.cta { /* alias for potential hero CTAs */ }

/* List & tags */
ul { margin: 0; padding-left: 1.25rem; }
li { margin: .25rem 0; }
.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(62, 255, 180, 0.22);
  border: 1px solid rgba(62, 255, 180, 0.6);
  color: var(--text);
}

/* Card & panel aesthetics (glass-like) */
.card {
  background: rgba(14, 22, 18, 0.58);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
@media (min-width: 640px) {
  main { padding: 1.5rem; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .image-frame { width: min(860px, 90%); }
  header { padding: 1.5rem; }
}

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

/* Print styles */
@media print {
  body { color: #000; background: #fff; }
  header, footer { page-break-after: avoid; }
}