/* Base & Tokens */
:root{
  --bg: #0b0b0b;
  --bg-2: #141414;
  --bg-3: #1f0b00;
  --text: #e9fff0;
  --muted: #cbdad4;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.18);
  --border: rgba(255,255,255,0.28);
  --accent: #39ff14;
  --accent-2: #ff7a00;
  --shadow: 0 6px 18px rgba(0,0,0,.45);
  --radius: 14px;
}
html, body { height: 100%; }
html, body { margin: 0; padding: 0; color: var(--text); background: #000; }

/* Layered background: gradient + subtle noise/scanlines (pure CSS) */
html { background: #000; }
body {
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: #050505;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 170, 60, 0.25), transparent 40%),
    linear-gradient(135deg, rgba(184,60,0,0.28), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
  filter: saturate(1.05);
}
@media (prefers-reduced-motion: reduce){
  body::before { display: none; }
}

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

/* Structural elements */
header, nav, main, article, footer, aside { box-sizing: border-box; }
header, .glass { background: var(--surface); border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Header styling (hero vibe) */
header {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(to right, rgba(0,0,0,.25), rgba(0,0,0,.15));
  margin-block: 0;
}
header h1 {
  font-size: clamp(1.6rem, 2vw + 1rem, 3rem);
  line-height: 1.08;
  margin: 0;
  color: #eafff0;
  text-shadow: 0 0 12px rgba(57,255,112,.4);
}
header nav { display: flex; gap: .75rem; align-items: center; }
header nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
header nav a:hover, header nav a:focus-visible { text-decoration: underline; outline: none; }

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

/* Glass panels (fallback included) */
.card, .content, .product-ad {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.no-backdrop { background: rgba(255,255,255,.14); }

/* Content area (generic) */
.content { color: var(--muted); }

/* Product ad / footer blocks */
.product-ad, .sponsored-page {
  display: block; text-align: center;
}
.product-ad a, .sponsored-page a {
  display: block; padding: .75rem; border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #eafff0; text-decoration: none;
}
.product-ad a:hover, .sponsored-page a:hover { background: rgba(255,255,255,.12); text-decoration: underline; }

/* Button & link styles (solid and outline variants) */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
}
.btn {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(57,255,112,.5);
  background: linear-gradient(135deg, #2aff77 0%, #14d056 100%);
  color: #041b0a;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(57,255,112,.4);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid rgba(57,255,112,.9); outline-offset: 2px; }
.btn.secondary {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: none;
}
.btn.secondary:hover { background: rgba(255,255,255,.08); text-decoration: underline; }

a.btn, a.cta { display: inline-block; }

/* Utility & typography helpers */
.ul, ul { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }
.tag {
  display: inline-block; padding: .25em .6em; border-radius: 999px;
  font-size: .75rem; line-height: 1;
  background: rgba(57,255,112,.25);
  color: #eafff5; border: 1px solid rgba(57,255,112,.5);
}
.image-frame { border-radius: 12px; }

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

/* Accessibility & readability tweaks */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; color: #000; }
  a, button { text-decoration: underline; color: #000; }
  .image-frame { page-break-inside: avoid; }
}

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

/* Layout composition (default stacking) */
footer { padding: 1rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  main { padding: 1.25rem; } 
  footer { grid-template-columns: 1fr 1fr; }
}
