/* Tokens */
:root {
  --bg: #040a0a;
  --bg-2: #041010;
  --text: #e8ffea;
  --muted: #a6f0b0;
  --accent: #39ff14;
  --accent-2: #2cff8f;
  --glass: rgba(8, 24, 16, 0.28);
  --glass-border: rgba(0, 255, 140, 0.5);
  --shadow: 0 8px 28px rgba(0, 255, 140, 0.25);
  --surface: rgba(2, 12, 9, 0.28);
  --radius: 12px;
}

/* Base reset & global */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(57,255,20,.08), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(0,255,140,.08), transparent 40%),
    linear-gradient(#03060a, #03060a);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(57,255,20,.08), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(0,255,140,.08), transparent 40%),
    linear-gradient(#02060a, #02060a),
    repeating-linear-gradient(to bottom, rgba(57,255,20,.04) 0 2px, rgba(0,0,0,0) 2px 4px);
  background-blend-mode: screen, screen, normal, overlay;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 16px;
  min-height: 100%;
  padding: 0;
  margin: 0;
}

/* Layout helpers (container/grid/card) */
.container { width: min(100%, 1100px); margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border-radius: var(--radius); padding: .75rem; background: rgba(2, 8, 6, 0.25); border: 1px solid rgba(0, 255, 140, 0.4); box-shadow: var(--shadow); }

/* Glass panels (fallback if backdrop-filter unsupported) */
header, main, footer { border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: .75rem; }
@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  header, main, footer { background: rgba(8, 20, 14, 0.35); }
}

/* Header / Hero */
header { display: block; margin: 1rem auto; width: min(100%, 1100px); padding: 1rem 1rem; }
header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 0 8px rgba(57,255,20,.8);
}
nav a { color: #eaffea; text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(57,255,20,.45); }
nav a:hover, nav a:focus { color: #041c0a; background: rgba(57,255,20,.35); text-decoration: none; outline: none; }
nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Main content */
main { padding: 1rem 0; }
article { display: grid; justify-items: center; width: 100%; }

/* Image frame with glow & aspect */
.image-frame { width: min(100%, 900px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(57,255,20,.6); background: rgba(0,0,0,.25); box-shadow: 0 8px 24px rgba(0,255,140,.35); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area inside glass panels if used elsewhere */
.content { padding: .5rem 0; }

/* Product ad / footer sections */
.product-ad, .sponsored-page { border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,255,140,.4); background: rgba(2, 12, 8, 0.28); }
.product-ad a, .sponsored-page a { display: block; padding: .75rem; color: var(--text); text-decoration: none; }
.product-ad a:hover { background: rgba(57,255,20,.15); }
.product-ad p, .sponsored-page p { margin: 0; padding: .25rem 0; color: var(--muted); }

/* Footer text & links */
footer { padding: 1rem; width: min(100%, 1100px); margin: 1rem auto 0; display: grid; gap: .75rem; }
footer p { margin: 0; color: var(--muted); }

/* Interactive controls (buttons/cta) */
.btn, a.btn, .cta { display: inline-block; padding: .75rem 1rem; border-radius: 10px; border: 1px solid rgba(57,255,20,.6); color: #041a0a; text-decoration: none; background: rgba(57,255,20,.25); text-align: center; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover, a.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(57,255,20,.35); }
.btn:focus-visible, a.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Links with underline on focus/hover for accessibility */
a, button, .btn, .cta { color: var(--text); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Typography (scalable, accessible) */
h2, h3 { color: var(--text); }

/* Lists */
ul { margin: 0; padding-left: 1.25rem; color: var(--text); }
li { margin: .25rem 0; }

/* Utilities (compact) */
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; border: 1px solid rgba(57,255,20,.5); color: #eafff0; background: rgba(57,255,20,.15); }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: none; border: none; box-shadow: none; }
  .image-frame { page-break-inside: avoid; width: 100%; height: auto; aspect-ratio: auto; }
  a, button { text-decoration: none; color: inherit; }
}
 
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}