/* Base & Palette */
:root{
  --bg: #05070d;
  --bg-2: #0a111d;
  --text: #eafff7;
  --muted: #a7b8c4;
  --accent: #2fff88;       /* Emerald green accents */
  --accent-2: #DFFF00;     /* Laser lemon highlight */
  --glass: rgba(8, 24, 40, 0.28);
  --border: rgba(0, 255, 140, 0.38);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --radius: 12px;
  --focus: 2px solid var(--accent-2);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* Base reset & globals */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: clamp(14px, 0.9vw + 12px, 18px);
  line-height: 1.5;
  color: var(--text);
  min-height: 100%;
  background: 
    /* layered gradient background */
    radial-gradient(circle at 75% 15%, rgba(65,255,110,.10) 0 15%, transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(255,255,0,.08) 0 15%, transparent 40%),
    linear-gradient(135deg, rgba(5,9,20,.92) 0%, rgba(5,12,25,.88) 60%, rgba(3,6,15,.92) 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.08) 0 1px, transparent 1px 3px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 86vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }

/* Section wrappers with glass panels (fallback included) */
header, main, article, aside, footer {
  background: var(--glass);
  border: 1px solid rgba(0,255,140,.38);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  header, main, article, aside, footer { background: rgba(8,24,40,.55); }
}
header { display: grid; gap: .5rem; align-items: start; text-align: left; }

/* Hero / typographic hierarchy */
h1, h2, h3 { margin: .25rem 0; font-weight: 700; line-height: 1.15; letter-spacing: .2px; }
h1 { font-size: clamp(1.8rem, 2.2vw + 1rem, 3.2rem); color: var(--text); }
h2 { font-size: clamp(1.4rem, 1.4vw + .8rem, 2rem); color: #eaffff; }
h3 { font-size: clamp(1.1rem, 1vw + .7rem, 1.4rem); color: #eaffff; }

/* Article content specifics */
article { display: grid; gap: .75rem; }
.meta { color: var(--muted); font-size: .92rem; margin-top: -.25rem; }

/* Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0,255,140,.38);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  image-rendering: crisp-edges;
  filter: saturate(1.05);
}

/* Content region */
.content { padding: .25rem 0 0; color: var(--text); }

/* Lists & inline helpers */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Inline utility / content chips */
.tag {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(47, 255, 136, .25);
  color: var(--text);
  border: 1px solid rgba(0,255,140,.45);
}

/* Link & button styles with accessible focus */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}
button, .btn {
  display: inline-block;
  border: 1px solid rgba(0,255,140,.55);
  background: linear-gradient(135deg, rgba(0,255,140,.6), rgba(0,255,140,.9));
  color: #00200d;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,255,140,.6);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .95; }

/* Glassy cards and content blocks */
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,255,140,.35);
  border-radius: 12px;
  padding: .9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  transition: transform .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); }

/* Layout primitives */
.container-centered { display: grid; gap: 1rem; justify-items: center; }

/* Header content tweaks for readability on dark glass */
header h1 { margin: 0; padding-bottom: .25rem; }

/* Footer tweaks for ad sections */
.product-ad, .sponsored-page {
  display: block;
  padding: .8rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(3, 15, 26, 0.28);
  border: 1px solid rgba(0,255,140,.28);
}
.product-ad a, .sponsored-page a { display: block; padding: .25rem; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, article, footer { background: transparent; border: none; box-shadow: none; }
}
  
/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}