/* Base Palette & Background */
:root{
  --bg: #041412;
  --bg-2: #062017;
  --surface: rgba(0,255,170,.22);
  --surface-2: rgba(0,255,170,.12);
  --text: #eafff5;
  --muted: #a7f3d0;
  --accent: #2dff93;
  --accent-2: #7af3c6;
  --border: rgba(0,255,170,.38);
  --shadow: 0 6px 24px rgba(0,0,0,.28);
}
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  /* Layered background: gradient + faint grid/scanlines + subtle glow */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(0,255,140,.15), transparent 40%),
    linear-gradient(135deg, rgba(0,255,140,.14), rgba(100,255,170,.08) 40%, rgba(0,255,140,.14)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.045) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient( to bottom, rgba(3,7,9,.9), rgba(3,7,9,.9) );
  background-blend-mode: screen, overlay, normal, normal, normal;
  min-height: 100%;
  overflow-x: hidden;
}
@media (prefers-color-scheme: light) {
  :root { --text: #102018; --bg: #f6fffb; --surface: rgba(0,80,60,.12); }
  body { background-blend-mode: normal; }
}

/* Layout Helpers */
.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1rem;
}
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px){
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.card { padding: 1rem; border-radius: 12px; }

/* Glass Panels (Frosted) */
header, main, footer, aside, article, .image-frame, .product-ad, .sponsored-page {
  background: linear-gradient(to bottom right, rgba(7, 21, 14,.22), rgba(7, 21, 14,.14));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  header, main, footer, aside, article, .image-frame, .product-ad, .sponsored-page {
    background: rgba(7,21,14,.80);
    border: 1px solid rgba(0,255,170,.4);
  }
}
header { padding: 1.75rem 1rem; text-align: center; }
header h1 { margin: 0 0 .25rem; font-size: clamp(1.6rem, 1.8rem + 2vw, 2.6rem); line-height: 1.05; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(.8rem, .8vw + .6rem, 1rem); margin-top: .25rem; }

/* Typography & Links */
h2, h3 { margin: .75rem 0 .25rem; font-weight: 700; letter-spacing: .2px; }
p { margin: .5rem 0; color: #eafff5; }
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; color: #baffd2; }
a:focus-visible { outline: 2px solid #acf2bd; outline-offset: 3px; }

/* Hero & CTAs */
main { padding: 1rem 0 2rem; }
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(0,255,170,.4); display: block; background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); }
.featured-image { padding: .5rem 1rem; }
h2 { font-size: clamp(1.25rem, 0.8rem + 2.5vw, 1.75rem); color: #eafff5; }
p.emph { font-style: italic; }
.btn, .cta, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn { background: linear-gradient(135deg, #0bdc87 0%, #2affaa 100%); color: #062012; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, #15f29a 0%, #0bdc87 60%, #09b977 100%); color: #041b12; border-color: rgba(0,0,0,.15); }
.btn.outline { background: rgba(0,0,0,.0); color: var(--text); border-color: rgba(0,255,170,.55); }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: rgba(255,255,255,.15); }
.cta { gap: .5rem; }

/* Utilities & Decorations */
.tag {
  display:inline-block; padding:.15em .5em; border-radius:999px;
  font-size:.75rem; font-weight:700;
  background: rgba(42,255,164,.25); border: 1px solid rgba(42,255,164,.5);
  color: #eafff0;
}
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Sections & Layout */
.product-ad, .sponsored-page {
  padding: .75rem 1rem; display: block; text-align: center;
}
.product-ad a, .sponsored-page a { text-decoration: none; color: #d0fff0; }
.product-ad p, .sponsored-page p { margin: .25rem 0; font-weight: 700; }

/* Header and Nav adjustments for mobile-first feel */
nav { margin-top: .5rem; }
nav a { display: inline-block; padding: .4rem .8rem; border-radius: 6px; }

/* Accessibility & Motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (min-width: 0px) {
  /* focus ring for keyboard users */
  :focus { outline: 2px solid #8af5a8; outline-offset: 2px; }
  :focus-visible { outline: 2px solid #8af5a8; outline-offset: 3px; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  header, main, article, footer { border: none; background: transparent; box-shadow: none; }
  a, a:visited { color: #000; text-decoration: underline; }
}
