/* Section: Tokenized Palette & Base */
:root {
  --bg: #030f0a;
  --bg-2: #04140f;
  --text: #eafff0;
  --muted: #b7f07a;
  --accent: #39ff14;
  --accent-2: #7aff70;
  --panel: rgba(6, 28, 18, 0.18);
  --panel-2: rgba(255, 255, 255, 0.08);
  --border: rgba(57, 255, 20, 0.28);
  --ring: 0 0 0 3px rgba(57, 255, 20, 0.5);
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --gap: 1rem;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% -10%, rgba(57,255,20,.12), transparent 25%),
    linear-gradient(135deg, rgba(0,0,0,.65), rgba(0,0,0,.25) 60%, rgba(0,0,0,.65)),
    repeating-linear-gradient(to bottom, rgba(57,255,20,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Section: Layout Utilities */
.container { width: 100%; max-width: clamp(640px, 90vw, 1100px); padding: 0 1rem; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }

/* Section: Global Glass Panels (applied to core structural elements) */
html, body, header, nav, main, article, aside, footer {
  background: var(--panel);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
header { padding: 1.25rem; margin-bottom: .75rem; }
nav { margin-top: .25rem; display: flex; gap: .5rem; align-items: center; }
main { margin: 0 auto 1rem; padding: 0; }
article { padding: 1rem 0; }
footer { margin-top: .75rem; padding-top: .75rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }

/* Section: Typography & Hero */
h1 {
  font-size: clamp(1.75rem, 2.5vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
h2 { font-size: clamp(1.25rem, 2vw, 2rem); margin: .4rem 0 .25rem; }
h3 { font-size: clamp(1rem, 1.5vw, 1.25rem); margin: .4rem 0; color: #d6ffd8; }
p { color: rgba(234, 255, 235, 0.95); margin: 0 0 1rem; }
.meta { font-size: clamp(.9rem, .3vw + .4rem, 1.05rem); color: #d2ffd8; opacity: .95; }

/* Section: Image frame & media */
.image-frame { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(57,255,20,.25); box-shadow: 0 6px 16px rgba(0,0,0,.25); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content block styling (for panels around text/controls) */
.content { padding: .75rem; }

/* Section: Product ad blocks (footer area) */
.product-ad { display: flex; align-items: center; justify-content: center; padding: .75rem; }
.product-ad a { display: block; padding: .75rem 1rem; border-radius: 999px; text-decoration: none; color: var(--text); background: rgba(57,255,20,.22); border: 1px solid rgba(57,255,20,.5); }
.product-ad a:hover { background: rgba(57,255,20,.32); }

/* Section: Links & controls */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: .6rem 1rem;
  border-radius: 8px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a { text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus-visible { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: none; outline-offset: 4px; box-shadow: var(--ring); border-radius: 8px; }

/* Primary/Secondary button variants */
.btn { background: linear-gradient(135deg, var(--accent), #1faa0e); color: #041a08; font-weight: 600; padding: .75rem 1.2rem; border: 1px solid rgba(57,255,20,.6); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(57,255,20,.8); }
.btn--outline:hover { background: rgba(57,255,20,.08); }

/* Focus treatment for interactive elements (WCAG AA) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Section: Lists */
ul { padding: 0; margin: 0 0 1rem 0; list-style: none; }
li { padding: .25rem 0; }

/* Section: Card & tag utilities */
.card { background: rgba(6, 28, 18, 0.18); border: 1px solid rgba(57,255,20,.25); border-radius: 12px; padding: .75rem; }

/* Section: Misc utilities (safe defaults) */
.tag { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .75rem; background: rgba(57,255,20,.6); color: #041a08; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  html, body { height: auto; }
  header, nav, main, article, aside, footer { background: transparent; border: none; box-shadow: none; padding: 0; }
}
