:root {
  /* Palette (pastel green + pastel yellow, cyberpunk vibe) */
  --bg: #0a1e12;
  --bg-2: #0c251a;
  --surface: rgba(230, 255, 230, 0.14);
  --surface-2: rgba(247, 238, 170, 0.18);
  --text: #eafaf0;
  --muted: #b7d6a0;
  --accent: #9ff9a2;      /* pastel green */
  --accent-2: #f5f084;    /* pastel yellow */
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 3px solid rgba(159, 249, 162, 0.95);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body, header, nav, main, article, footer, aside {
  /* Ensure predictable rendering across pages */
  height: auto;
  margin: 0;
}

* { -webkit-tap-highlight-color: transparent; }

/* Base typography */
html {
  font-size: 16px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Layered background: gradient + subtle noise/scanlines (pure CSS) */
  background: 
    linear-gradient(135deg, rgba(10, 30, 10, 0.22), rgba(10, 60, 20, 0.22) 60%, rgba(5, 20, 10, 0.22)),
    radial-gradient(circle at 20% 0%, rgba(160, 255, 210, 0.10), transparent 40%),
    linear-gradient(to bottom, var(--bg), var(--bg-2));
  background-blend-mode: normal, overlay, normal;
  padding-block: 2rem;
  position: relative;
  overflow-x: hidden;
}
body::before {
  /* subtle scanlines */
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
body::after {
  /* soft noise-like overlay using gradients */
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03), transparent 40%);
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

/* Global layout helpers */
.container {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
  max-width: clamp(320px, 90vw, 1100px);
}

/* Glass panel utility (fallback included) */
.glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255, 255, 255, 0.22); }
}

/* Layout sections */
header, main, footer, aside, article {
  display: block;
  width: 100%;
}
header {
  display: grid;
  gap: .5rem;
  place-items: center;
  text-align: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  margin: 0 auto 1rem;
  width: min(100%, 1100px);
}
header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--text);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  margin: 0;
}
header nav {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  margin-top: .25rem;
}
header nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.08);
  transition: transform .15s ease, background .2s ease;
}
header nav a:hover { text-decoration: underline; background: rgba(0,0,0,0.12); transform: translateY(-1px); }
header nav a:focus-visible { outline: 3px solid rgba(159, 249, 162, 0.95); outline-offset: 2px; }

/* Main content + content area styling */
main {
  display: block;
}
article {
  max-width: 1000px;
  margin: 0 auto;
}
.image-frame,
.image-frame img {
  display: block;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  background: rgba(0,0,0,.05);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
article h1 {
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: .75rem 0 0.5rem;
  color: var(--text);
}
article p {
  color: var(--text);
  margin: .75rem 0;
}
article h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  margin: 1.25rem 0 .5rem;
  color: var(--text);
}
ul, ol {
  padding-left: 1.25rem;
  margin: .75rem 0;
}
li { margin: .25rem 0; }

/* Lists and content helpers */
.content { color: var(--text); }

/* Product ad / promo blocks in footer */
.product-ad, .sponsored-page {
  display: inline-block;
  margin: .25rem;
}
footer {
  margin-top: 1.25rem;
  padding: 1rem 0;
  display: grid;
  gap: .75rem;
  justify-items: center;
}
footer p { margin: .25rem 0; color: var(--muted); }

/* Utility components */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(159, 249, 162, 0.22);
  color: var(--text);
  border: 1px solid rgba(159, 249, 162, 0.5);
}

/* Interactive controls (buttons/cta/link styles) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  padding: .75em 1.25em;
  border: 1px solid rgba(255,255,255,.45);
  color: var(--text);
  background: rgba(0,0,0,0.0);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a, .btn, .cta {
  /* ensure links also render well as buttons when used */
}
.btn--solid {
  background: linear-gradient(135deg, rgba(159, 249, 162, 0.95), rgba(197, 255, 214, 0.95));
  border-color: rgba(255,255,255,.7);
  color: #07260a;
}
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.65);
  color: var(--text);
}
.cta {
  /* base CTA looks */
  background: linear-gradient(135deg, rgba(249, 246, 173, 0.95), rgba(230, 255, 190, 0.95));
  border-color: rgba(255,255,255,.75);
  color: #0b2100;
}
a.btn:hover, button.btn:hover, .cta:hover {
  transform: translateY(-1px);
  text-decoration: underline;
}
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  text-decoration: underline;
}
@media (hover: hover) and (pointer: fine) {
  a:hover, button:hover { text-decoration: underline; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { page-break-after: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}