/* Theme Tokens */
:root{
  --bg: #0b0a08;
  --bg-2: #1a1004;
  --text: #eafff4;
  --muted: #a5d8a1;
  --accent: #00e676;       /* green accent */
  --accent-2: #ff8a1f;     /* burnt orange accent */
  --glass: rgba(12, 24, 18, 0.28);
  --glass-strong: rgba(12, 24, 18, 0.42);
  --border: rgba(0, 255, 120, 0.38);
}

/* Section: Base + Layers */
*,
*::before,
*::after{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ color-scheme: dark; }
body{
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
  min-height: 100dvh;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.08) 0%, rgba(0,0,0,0.0) 60%),
    linear-gradient(135deg, rgba(10, 10, 8, 0.75), rgba(4, 8, 6, 0.75) 60%),
    radial-gradient(circle at 20% 0, rgba(0, 255, 110, 0.08), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 110, 0.04), transparent 30%),
    linear-gradient(to bottom right, #0b0a08 0%, #1a130b 60%, #0b0a08 100%);
  background-blend-mode: overlay, overlay, normal, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered scanlines for subtle texture (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, rgba(0,0,0,0.0) 60%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60%);
  background-size: cover, auto, cover;
  overflow-y: auto;
}
@media (prefers-reduced-motion: reduce){
  html, body { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Section: Layout primitives */
.container{ width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Section: Glass panels (applied to structural elements) */
header,
main,
footer,
aside,
article{
  background: var(--glass);
  border: 1px solid rgba(0, 255, 150, 0.28);
  border-radius: 14px;
  padding: 1rem;
  margin: 0.75rem auto;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)){
  header,
  main,
  footer,
  aside,
  article{
    background: rgba(12, 24, 18, 0.72);
    border-color: rgba(0,255,120,0.45);
  }
}

/* Section: Typography (hero, headings, body) */
h1, h2, h3{ margin: .25rem 0 .5rem; font-weight: 700; line-height: 1.15; color: var(--text); }
h1{ font-size: clamp(1.4rem, 2.2vw + 1rem, 2.6rem); letter-spacing: .2px; text-shadow: 0 2px 14px rgba(0,255,120,.25); }
h2{ font-size: clamp(1.15rem, 1.4vw + .8rem, 2rem); }
h3{ font-size: clamp(.95rem, 1.2vw + .6rem, 1.25rem); color: #e6fff0; }
p{ font-size: clamp(0.95rem, 0.9vw + 0.9rem, 1.125rem); color: #e8f7ec; margin: .5rem 0 1rem; }

/* Section: Images and frames */
.image-frame,
.featured-image{ border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,255,120,.45); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img,
.featured-image img{ width: 100%; height: auto; display: block; object-fit: cover; }

/* Section: Content blocks and utilities */
.content{ padding: .75rem; color: var(--text); }
.grid{ display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.card{ background: rgba(10, 20, 12, 0.32); border: 1px solid rgba(0, 255, 120, 0.32); border-radius: 12px; padding: .9rem; }

/* Section: Links & controls */
a,
button,
.btn,
.cta{
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 120, 0.6);
  background: rgba(0, 255, 120, 0.22);
  padding: .5rem 0.9rem;
  display: inline-block;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover{ text-decoration: underline; background: rgba(0, 255, 120, 0.34); transform: translateY(-1px); }
a:focus-visible,
button:focus-visible,
*.cta:focus-visible,
*.btn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn{ background: rgba(0, 230, 120, 0.36); border-color: rgba(0, 230, 120, 0.6); color: #041b0a; }
.btn.secondary{ background: rgba(255, 138, 31, 0.28); border-color: rgba(255, 138, 31, 0.6); color: #061303; }

/* Section: Lists */
ul{ margin: .5rem 0 1rem 1.1rem; padding: 0; }
li{ margin: .25rem 0; }

/* Section: Brand elements */
.product-ad,
.sponsored-page{ display: block; text-align: left; padding: .6rem; color: var(--text); }
.product-ad a, .sponsored-page a{ display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: 8px; background: rgba(0,255,120,.28); border: 1px solid rgba(0,255,120,.6); color: #041b0a; text-decoration: none; }

/* Section: Print styles */
@media print{
  body{ background: white; color: #000; }
  header, nav, footer{ display: none; }
  article{ display: block; border: none; background: none; padding: 0; }
  a{ color: #000; text-decoration: underline; }
}

/* Section: Form elements (baseline) */
input,
textarea,
select{
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(0,255,120,.5);
  color: var(--text);
  padding: .5rem; border-radius: 6px;
  outline: none;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* Section: PW accessibility helpers (labels, etc.) */
label{ font-size: .9rem; color: var(--muted); display: inline-block; margin-bottom: .25rem; }

/* Section: Hero structure tweaks (centering for narrow devices) */
header{ padding: 1.25rem; text-align: left; }
header h1{ margin-bottom: .25rem; }

/* Section: Structural helpers (optional utilities) */
.container--tight{ max-width: clamp(320px, 88vw, 860px); }
.section{ padding: .75rem 0; }
.tag{ display:inline-block; font-size:.75rem; padding:.15rem .55rem; border-radius:999px; background: rgba(0,255,120,.25); border:1px solid rgba(0,255,120,.6); color: var(--text); }

/* Section: Global typography scale for responsive readability */
@media (min-width: 680px){
  p{ font-size: 1.05rem; }
}
@media (min-width: 1024px){
  h1{ font-size: 3rem; }
}