/* Palette & Theme Tokens - Emerald Mint Cyberpunk */
:root{
  --bg: #02140f;
  --bg-2: #041f12;
  --surface: rgba(6, 24, 20, 0.60);
  --text: #eafff3;
  --muted: #9ff2d4;
  --accent: #2fffb0;      /* mint neon */
  --accent-2: #00e6a8;     /* mint glow */
  --ring: #1bffd4;
  --glass: rgba(18, 255, 210, 0.10);
  --border: rgba(0, 255, 170, 0.28);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Reset & Base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + mint glow + scanlines/noise */
  background-image:
    radial-gradient(circle at 15% 0%, rgba(0, 255, 170, 0.10), transparent 40%),
    linear-gradient(135deg, #041018 0%, #041e14 40%, #041b12 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.06) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle emerald noise/scanlines overlay (pure CSS) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,255,170,.06) 1px, transparent 1px),
    radial-gradient(circle at 3px 3px, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 4px 4px, 8px 8px;
  mix-blend-mode: overlay;
  opacity: .25;
}

/* Layout Helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(2, 6, 6, 0.40);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  color: #032317;
  background: rgba(47, 255, 176, 0.35);
  border: 1px solid rgba(0,255,170,0.6);
  border-radius: 999px;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0,255,170,.40);
  box-shadow: 0 6px 20px rgba(0,255,170,.25), inset 0 0 14px rgba(0,255,170,.15);
  background: rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.product-ad {
  display: block;
  padding: .9rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(2, 20, 14, 0.60);
  border: 1px solid rgba(0,255,170,.40);
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s ease;
}
.product-ad:hover { transform: translateY(-1px); background: rgba(2, 20, 14, 0.72); }
.sponsored-page { /* similar panel for footer item */ }

/* Typography & Hierarchy */
h1, h2, h3, h4 {
  margin: .4rem 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 2.8vw + 1rem, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.4rem, 1.6vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1vw + .9rem, 1.6rem); }
h4 { font-size: clamp(1rem, .9vw + .8rem, 1.25rem); }

/* Header / Hero */
header {
  padding: 1.75rem;
  margin: 1.25rem auto;
  max-width: 1000px;
  text-align: center;
  border-radius: 14px;
  background: rgba(5, 24, 20, 0.62);
  border: 1px solid rgba(0, 255, 170, 0.38);
  box-shadow: 0 12px 32px rgba(0,255,170,.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  header { background: rgba(5, 24, 20, 0.82); }
}
header .meta {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
header nav {
  margin-top: .5rem;
}
header nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(0,255,170,.35);
}
header nav a:hover, header nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  background: rgba(0,255,170,.15);
}
header h1 {
  margin: .25rem 0 0.5rem;
  font-weight: 800;
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  line-height: 1.04;
  color: var(--text);
  text-shadow: 0 0 16px rgba(0, 255, 170, 0.25);
}

/* Main / Article */
main { padding: 1.5rem 0; }
article {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(6, 20, 18, 0.52);
  border: 1px solid rgba(0, 255, 170, 0.28);
  box-shadow: var(--shadow-soft);
}
article p { margin: 0.8rem 0; color: #eafff0; }
article ul { padding-left: 1.25rem; margin: .6rem 0; }
article li { margin: .25rem 0; }

/* Links & CTAs */
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  border: 1px solid rgba(0,255,170,0.40);
  padding: .55rem .9rem;
  display: inline-block;
  background: rgba(0,0,0,.25);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  cursor: pointer;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  text-decoration: underline;
  background: rgba(0,255,170,.22);
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.btn { /* general purpose pill-ish button */
  padding: .6rem 1rem;
}
.btn--solid {
  background: linear-gradient(135deg, rgba(0,255,170,.95), rgba(0,255,150,.75));
  border-color: rgba(0,255,170,.95);
  color: #002317;
}
.btn--outline {
  background: rgba(0,0,0,.15);
  border-color: rgba(0,255,170,.8);
  color: var(--text);
}
.cta { font-weight: 600; }

/* Image Handling */
.image-frame { width: 100%; }

/* Footer / Aside */
footer {
  padding: 1.25rem 1rem 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
footer p { margin: .25rem 0; color: var(--muted); }

/* Print Accessibility */
@media print {
  body { background: #fff; color: #000; }
  header, main, article, footer { background: transparent; color: #000; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
@media (min-width: 900px) {
  main { padding: 2rem 0; }
  article { padding: 1.25rem; }
  footer { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}