/* Palette & Theme Tokens */
:root {
  --bg: #0b0f14;
  --bg-2: #1b2328;
  --text: #e7ffea;
  --muted: #a6b5a2;
  --accent: #2bdc70;
  --accent-2: #7cffb0;
  --panel: rgba(255, 255, 255, 0.12);
  --panel-2: rgba(255, 255, 255, 0.22);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 28px rgba(0,0,0,.35);
  --focus: rgba(43, 220, 112, 0.9);
}

/* Section: base reset & background layering */
html, body, header, nav, main, article, aside, footer { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines/noise */
  background-image:
    linear-gradient(135deg, rgba(15,19,23,.95) 0%, rgba(24,28,32,.92) 60%, rgba(15,19,23,.95) 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.08) 0 1px, rgba(0,0,0,0) 1px 2px);
  background-blend-mode: normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7f5;
    --bg-2: #eef3ee;
    --text: #0f2018;
    --muted: #4b5a50;
    --accent: #0a825e;
    --accent-2: #1fb97d;
    --panel: rgba(255, 255, 255, 0.85);
    --panel-2: rgba(255, 255, 255, 0.95);
    --border: rgba(0,0,0,0.15);
    --shadow: 0 6px 20px rgba(0,0,0,.08);
  }
  body {
    background-image:
      linear-gradient(135deg, rgba(245,247,245,.95) 0%, rgba(237,239,235,.92) 60%, rgba(245,247,245,.95) 100%),
      repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, rgba(0,0,0,0) 1px 2px);
    background-blend-mode: normal, overlay;
  }
}

/* Section: layout helpers */
.container {
  width: 100%;
  max-width: clamp(28rem, 68vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card { border-radius: 14px; padding: 1rem; }

/* Section: glass panels (fallback for backdrop-filter) */
.panel, .product-ad, .sponsored-page {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .panel, .product-ad, .sponsored-page { background: rgba(255,255,255,.22); }
}

/* Section: image frame */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(120, 255, 210, 0.35);
  background: rgba(0,0,0,.25);
  display: block;
  margin: 0 auto;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.01); }

/* Section: content typography */
.content { color: var(--text); font-size: clamp(0.95rem, 1vw + 0.6rem, 1.15rem); line-height: 1.6; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(1.4rem, 2.6vw + 1rem, 2.6rem); }

/* Section: navigation blocks (primary header area if present) */
header { padding: 1.25rem 0; text-align: center; }
header h1 { margin: 0; font-size: clamp(1.25rem, 3vw, 2rem); }

/* Section: partner links (footer blocks) */
footer { padding: 1.25rem 0 0; }
footer p { margin: .5rem 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* Section: utility components */
a, button, .btn, .cta { text-decoration: none; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
ul, li { margin: 0; padding: 0; list-style: none; }

/* Buttons: solid and outline variants; accessible focus rings */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(43, 220, 112, .8);
  background: linear-gradient(135deg, rgba(43, 220, 112, .95), rgba(23, 180, 110, .88));
  color: #041e11; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(43, 220, 112, .9); outline-offset: 2px; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(43, 220, 112, .9);
}
.btn-outline:hover { background: rgba(43, 220, 112, .08); }

.cta { display:inline-flex; align-items:center; gap:.5em; }

/* Utility: chips / tags */
.tag {
  display:inline-block; font-size:.75rem; padding:.25em .6em;
  border-radius:999px; border:1px solid rgba(43,220,112,.6);
  color: var(--accent); background: rgba(43,220,112,.15);
}

/* Section: layout helpers for responsive grids */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Section: navigation (optional nav area) */
nav { display: none; } /* reserved for future nav; kept minimal for this design */

/* Section: print styles */
@media print {
  body { background: #fff; color: #000; }
  .panel, .product-ad, .sponsored-page { background: #fff; border: 1px solid #ddd; box-shadow: none; }
  a { color: #000; }
}

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