/* Palette & Theme Tokens */
:root {
  --bg: #041f14;
  --bg-2: #062016;
  --text: #eafff0;
  --muted: #a6f0c1;
  --accent: #10b981;       /* emerald green */
  --accent-2: #ffd400;     /* cyber yellow */
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-soft: rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,0.28);
}

/* Layered background (gradient + scanlines) */
html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: #000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* emerald gradient + subtle scanlines/noise */
  background:
    linear-gradient(135deg, rgba(4, 50, 30, 0.95) 0%, rgba(2, 60, 20, 0.95) 60%, rgba(6, 20, 12, 0.95) 100%),
    linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0px, rgba(0,0,0,.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay, normal, normal;
  opacity: 0.95;
  pointer-events: none;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(640px, 90vw, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}

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

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(8px)) {
  .card, .image-frame { background: rgba(255,255,255,0.14); }
}

/* Header & hero typography */
header {
  padding: clamp(1rem, 2vw, 2rem);
  text-align: center;
}

header h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.8rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
  color: var(--text);
}

header .meta {
  color: var(--muted);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
}

/* Image framing with aspect ratio and glow */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  margin: 0.5rem 0 1rem;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Content area */
.main, article {
  display: block;
}

.content {
  font-size: clamp(1rem, 0.9vw + 0.9rem, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1rem;
}

h2, h3 {
  color: #ffffff;
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}

h2 {
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.5rem);
}

ul {
  padding-left: 1.25rem;
  margin: .5rem 0 1rem;
}

li { margin: .25rem 0; }

/* Glass panel sections for content blocks */
footer, aside { display: block; }

/* Product ad (glass panel) */
.product-ad {
  display: grid;
  gap: .5rem;
  align-items: center;
  justify-items: start;
  padding: .9rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  max-width: 700px;
  width: 100%;
}
.product-ad h3 { margin: 0; font-size: 1.05rem; }
.product-ad p { margin: 0; color: var(--muted); }

/* Link, button, .btn, .cta styling */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  color: var(--text);
}

a {
  color: var(--accent-2);
}
a:hover { text-decoration: underline; color: #fff; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Primary and secondary CTAs */
.btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.btn:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent-2) 0%, #ffd84a 100%);
  color: #1a1a00;
  border-color: rgba(0,0,0,.2);
}
.btn.outline {
  background: transparent;
  border-color: rgba(255,255,255,.42);
  color: var(--text);
}
.btn:focus-visible, .outline:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Utilities (compact) */
.container + .container { margin-top: 1rem; }

/* Typography helpers for sections */
.section { padding: 1rem; }

/* Lists with strong contrast bullets */
ul { color: var(--text); }

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

/* Small print-style readability (print) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  .product-ad { background: #fff; border: 1px solid #ddd; }
}
