:root {
  --bg: #0a0410;
  --bg-2: #2a0031;
  --surface: rgba(12, 0, 22, 0.55);
  --surface-2: rgba(12, 0, 22, 0.35);
  --text: #e9f7e2;
  --muted: #b6b6b6;
  --accent: #9dff4a;      /* lime */
  --accent-2: #7a2b9c;    /* deep plum */
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid #eaff66;
  --focus-offset: 2px;
  --card-glow: 0 6px 18px rgba(0,0,0,.25);
}

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

html, body { height: 100%; }

html { color-scheme: dark; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: gradient + subtle lime glow + scanlines illusion */
  background: linear-gradient(135deg, var(--bg-2) 0%, #26001c 60%, #000 100%);
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* subtle lime glow + cyberpunk vibe via layered scanlines/noise */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.0) 0 97px, rgba(0,0,0,.14) 97px, rgba(0,0,0,.0) 98px),
    linear-gradient(to right, rgba(0,0,0,.04), rgba(0,0,0,.04)),
    radial-gradient(circle at 20% -10%, rgba(140,255,100,.10), transparent 40%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), rgba(0,0,0,0));
}

.container,
.grid,
.card,
.tag,
.image-frame,
.content,
.product-ad,
header,
main,
footer {
  /* ensure layout helpers exist in CSS even if not present in HTML */
  z-index: 1;
}

/* Layout helpers */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--card-glow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
}

/* Glassy surface styling for the main regions (fallback included) */
header,
main,
footer,
aside,
article {
  background: rgba(12, 0, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

@supports not (backdrop-filter: blur(8px)) {
  header,
  main,
  footer,
  aside,
  article {
    background: rgba(12, 0, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: none;
  }
}

.header-content { text-align: center; }

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Typography and content flow */
.content {
  line-height: 1.6;
  color: var(--text);
}
h1, h2, h3 {
  margin: .25rem 0;
  line-height: 1.25;
}
h1 { font-size: clamp(1.4rem, 2.5vw + 1rem, 2.4rem); color: #eaffc8; text-shadow: 0 0 8px rgba(150,255,140,.6); }
h2 { font-size: clamp(1.1rem, 1.5vw + 0.8rem, 1.6rem); color: #e7d6ff; }
h3 { font-size: clamp(1rem, 1.2vw + .8rem, 1.25rem); color: #e9ffd4; }

/* Lists and links */
ul, ol { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; color: #e9f3d9; }
a, button, .btn, .cta {
  transition: transform .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; color: var(--accent-2); }

/* Buttons and CTAs (solid and outline variants) */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #041200;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(158, 255, 74, 0.8);
}
.btn--outline:hover { background: rgba(158, 255, 74, 0.12); }

/* Utility: tags */
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(156, 255, 118, 0.18);
  border: 1px solid rgba(156, 255, 118, 0.6);
  color: #eaffd5;
}

/* Product ad styling (footer section) */
.product-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .6rem;
  border-radius: 12px;
  background: rgba(20, 0, 40, .55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  margin: .5rem 0;
}
.product-ad a {
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: .4rem 0;
  text-align: center;
}
.product-ad a:hover { text-decoration: underline; }

/* Header layout tweaks for hierarchy */
header {
  text-align: center;
  padding: 1rem;
}
header h1 { margin: .25rem 0 .5rem; font-size: clamp(1.8rem, 2.4vw + 1rem, 2.8rem); }
header .meta { color: var(--muted); font-size: .9rem; }

/* Layout orchestration for main content */
main {
  display: grid;
  justify-items: center;
  padding: 1rem 0 2rem;
}
article {
  max-width: 900px;
  padding: 1rem;
  margin: 0;
}
article p { margin: .5rem 0; }

/* Print styles for readability */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: transparent; border: none; padding: 0; }
  a { text-decoration: underline; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}