/* Section: Base */
:root{
  --bg: #060f0f;
  --bg-2: #0a1414;
  --text: #eafff0;
  --muted: #9ff2c8;
  --accent: #39ff5b;       /* neon chartreuse */
  --accent-2: #7cff3e;     /* brighter neon */
  --surface: rgba(12, 22, 18, 0.28);
  --surface-2: rgba(12, 22, 18, 0.22);
  --border: rgba(120, 255, 120, 0.45);
  --focus: 0 0 0 3px rgba(60, 255, 140, 0.9);
  --radius: 14px;
  --txt-on-surf: #eafff0;
}
*,
*::before,
*::after{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ color-scheme: dark, light; }
:focus-visible{ outline: none; box-shadow: var(--focus); outline: none; }

/* Section: Layout foundation (mobile-first) */
html, body{ height: 100%; }
body{
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% -10%, rgba(0,255,128,.25) 0 28%, transparent 28%),
    radial-gradient(circle at 85% 5%, rgba(140,255,0,.25) 0 32%, transparent 32%),
    linear-gradient(#050505 0%, #040404 60%, #000814 100%);
  background-blend-mode: normal, normal, overlay;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
body::before{
  content: "";
  position: fixed; inset: 0;
  background:
    repeating-linear-gradient(to bottom,
      rgba(0,255,120,.04) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(to right,
      rgba(0,255,120,.03) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
body::after{
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,.0), rgba(0,0,0,.08) 60%, rgba(0,0,0,.16) 100%);
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}
main, header, footer, aside{ position: relative; z-index: 1; }

/* Section: Global helpers & containers */
.container{ width: 100%; max-width: clamp(680px, 90vw, 1200px); margin-inline: auto; padding-inline: 1rem; }
.grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 1rem; }
.card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: 0 8px 28px rgba(0,0,0,.5); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }

/* Section: Typography & scale (fluid, accessible) */
h1, h2, h3{ margin: 0 0 .5rem; line-height: 1.15; font-weight: 700; letter-spacing: .2px; }
p{ margin: 0 0 1rem; color: rgba(234, 255, 244, 0.95); }
ul{ padding-left: 1.25rem; margin: .5rem 0 1rem; color: rgba(234,255,244,.95); }
li{ margin: .25rem 0; }

/* Section: Glass panels (fallbacks included) */
header, main, article, footer, aside{ background: rgba(10, 20, 18, 0.28); border: 1px solid rgba(120,255,120,.38);
  border-radius: var(--radius); padding: 1rem; }
header{ display: block; text-align: center; padding: 1.25rem 1rem 1.75rem; }
header h1{ font-size: clamp(1.9rem, 4vw + 0.5rem, 3.25rem); text-shadow: 0 0 14px rgba(0,255,140,.6); }
header .meta{ color: var(--muted); font-size: clamp(0.9rem, 0.6vw + 0.6rem, 1.05rem); }

/* Backdrop filter support check (fallback) */
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))){
  header, main, article, footer, aside{
    background: rgba(12, 22, 18, 0.28);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
  }
}
@supports not ((backdrop-filter: blur(12px)) ){
  header, main, article, footer, aside{
    background: rgba(12, 22, 18, 0.22);
    border-color: rgba(120,255,120,.32);
  }
}

/* Section: Navigation (if present) */
nav{ display: none; } /* reserved for future content */

/* Section: Content area styling */
.image-frame{ border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,255,128,.5); box-shadow: 0 6px 20px rgba(0,0,0,.35); background: #000; }
.image-frame img{ width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 16/9; }
.content{ padding: 0.5rem 0 0; }

/* Section: Product ad / CTAs */
.product-ad{ display: block; margin: .25rem 0; padding: .75rem; text-align: center; border-radius: 12px; background: rgba(2,12,8,.25); border: 1px solid rgba(0,255,128,.45); }
.product-ad a{ color: var(--text); text-decoration: none; display: block; padding: .5rem 0; }
.product-ad a:hover, .product-ad a:focus{ text-decoration: underline; outline: none; }

/* Section: Link & Button styles (interactive states) */
a{ color: var(--accent-2); text-decoration: none; }
a:hover, a:focus{ text-decoration: underline; outline: none; }
button, .btn, .cta{ font-family: inherit; font-weight: 700; border-radius: 999px; border: 1px solid rgba(124,255,140,.95); cursor: pointer; padding: .72em 1.1em; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; color: #042a12; background: linear-gradient(135deg, rgba(60,255,140,.95), rgba(0,255,120,.95)); }
button:hover, .btn:hover, .cta:hover{ transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,255,120,.4); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(0,255,140,.65); outline-offset: 2px; }
.btn, .cta{ text-decoration: none; display: inline-block; }
.btn.outline{ background: transparent; color: var(--text); border: 1px solid rgba(124,255,140,.9); }
.btn.outline:hover{ background: rgba(124,255,140,.1); }

/* Section: Hero content hierarchy */
h2{ font-size: clamp(1.25rem, 2.5vw + 0.25rem, 1.75rem); margin: .25rem 0 0.5rem; color: var(--text); }
p.lead{ font-size: clamp(1rem, 1vw + 0.5rem, 1.15rem); color: rgba(234,255,244,.92); }

/* Section: Lists & content blocks */
ul{ list-style: disc; }
li{ padding-left: .4rem; }
blockquote{ margin: .5rem 0 1rem; padding: .5rem 1rem; border-left: 3px solid rgba(0,255,140,.6); background: rgba(2,12,8,.25); }

/* Section: Utility components */
.tag{ display:inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; border: 1px solid rgba(124,255,140,.6); color: #062816; background: rgba(124,255,140,.85); }

/* Section: Typography helpers for responsive scale */
@media (min-width: 720px){
  .container{ max-width: clamp(720px, 80vw, 1200px); }
}
@media (prefers-color-scheme: light){
  :root{
    --bg: #f6fff9;
    --bg-2: #eef7f0;
    --text: #0a2a12;
    --muted: #4b6a4b;
    --surface: rgba(255,255,255,.75);
    --surface-2: rgba(255,255,255,.65);
    --border: rgba(0,0,0,.15);
    --focus: 0 0 0 3px rgba(0, 128, 60, .65);
  }
  body{ background: linear-gradient(#f7fff7, #e8f8ee); color: var(--text); }
  header, main, article, footer, aside{ background: rgba(255,255,255,.6); border-color: rgba(0,0,0,.18); }
  .image-frame{ border-color: rgba(0,0,0,.15); }
  a{ color: #0a6a2a; }
  .btn, .cta{ border-color: rgba(0,128,60,.9); color: #042c14; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; transform: none !important; }
}
@media print{
  body{ background: #fff; color: #000; }
  header, main, footer{ display: block; border: none; background: transparent; box-shadow: none; }
}
@keyframes fadeInUp{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}
/* Apply subtle entry animation to major sections (GPU-friendly) */
header, main, footer, article{ opacity: 0; animation: fadeInUp .6s ease forwards; }
header{ animation-delay: .05s; }
main{ animation-delay: .15s; }
footer{ animation-delay: .25s; }

/* Section: Focused interactive elements for accessibility */
:focus{ outline: none; }
button:focus-visible, a:focus-visible{ outline: 2px solid #00ffa0; outline-offset: 2px; border-radius: 6px; }