/* Base */
:root {
  --bg: #0b0f0a;
  --bg-2: #1a2a11;
  --surface: rgba(18, 34, 14, 0.28);
  --surface-2: rgba(18, 34, 14, 0.18);
  --text: #eaffd8;
  --muted: #a6c99a;
  --accent: #7c7cff;    /* ultraviolet primary */
  --accent-2: #00ffd6;  /* ultraviolet secondary / neon accent */
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --glow: 0 0 12px rgba(124,124,255,.6);
}

/* Document reset & helpers */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; font-size: 16px; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  line-height: 1.5;
  background-color: var(--bg);
  /* Layered olive glitch + UV accents */
  background-image:
    linear-gradient(135deg, rgba(28, 38, 16, 0.92), rgba(8, 12, 6, 0.95)),
    radial-gradient(circle at 70% -10%, rgba(124, 92, 242, 0.15), rgba(0,0,0,0) 40%),
    linear-gradient(45deg, rgba(0,0,0,0.0), rgba(0,0,0,0.15)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, rgba(0,0,0,0) 2px 4px);
  background-blend-mode: overlay, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }

/* Layout primitives */
.container { max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Section wrappers (semantic blocks) */
header, main, footer, aside, nav, article { display: block; }

/* Glass panel helper (with backdrop) */
.glass {
  background: rgba(14, 24, 14, 0.28);
  border: 1px solid rgba(124, 92, 242, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
  /* Fallback for environments without backdrop-filter */
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(14,24,14,0.60); }
}

/* Utilities (grid, card, tag) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(20, 40, 20, 0.28);
  border: 1px solid rgba(124, 92, 242, 0.35);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(124, 92, 242, 0.25);
  color: #eafff9;
  border: 1px solid rgba(124, 92, 242, 0.5);
}

/* Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 14px rgba(0,0,0,.25), 0 6px 20px rgba(0,0,0,.25);
  background: #0a0f0a;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transform: translateZ(0); /* GPU hint for smoother rendering */
}

/* Typography */
.content { padding: 0.75rem 0 0.25rem; color: var(--text); }

/* Links & buttons (interactive) */
a, button, .btn, .cta {
  font-family: inherit;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.15;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: inherit;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* Button variants */
.btn { display: inline-block; padding: .65rem 1rem; border-radius: 10px; background: var(--accent); color: white; border: 1px solid rgba(124,92,242,.8); box-shadow: var(--glow); transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(124,92,242,.7);
  box-shadow: none;
}
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Secondary accent for emphasis on UV glows */
.glow {
  text-shadow: 0 0 6px rgba(124,92,242,.6);
}

/* Hero pattern typography (h1, lead) */
.hero {
  text-align: center;
  padding: 1rem 0 0;
}
.hero h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.75rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: #eafff5;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.hero p {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
}
.hero-cta { margin-top: .75rem; }

/* Header, main, footer layout styling with glass feel */
header {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem 1rem;
}
header h1 { font-size: clamp(1.25rem, 2vw + 0.75rem, 1.8rem); color: #eaffd8; margin: 0; }
nav {
  display: flex;
  gap: .5rem;
}
nav a { padding: .4rem .75rem; border-radius: 8px; border: 1px solid rgba(124,92,242,.4); background: rgba(124,92,242,.2); color: #eafff5; }

/* Main area layout */
main { padding: 0 1rem 1.5rem; }
article { display: grid; gap: 1rem; justify-items: center; }

/* Footer layout & product ad panels with glass feel */
footer { padding: 1rem; display: grid; gap: 1rem; justify-items: center; text-align: center; color: var(--muted); }
.product-ad, .sponsored-page { width: min(90%, 720px); }

/* Subtle responsive tweaks */
@media (max-width: 700px) {
  nav { justify-content: center; flex-wrap: wrap; }
  .image-frame { border-radius: 10px; }
}

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

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
