/* Base Tokens */
:root {
  --bg: #0a0f0a;
  --bg-2: #111714;
  --text: #eafff3;
  --muted: #b7d6c2;
  --accent: #2be57e;       /* green */
  --accent-2: #b8743e;     /* bronze */
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 6px 20px rgba(0,0,0,.45);
  --radius: 12px;
  --focus: 2px solid #8bf38b;
}

/* Base / Layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100%;
  /* Layered background: gradient + subtle noise/scanlines + bronze grid */
  background:
    radial-gradient(circle at 20% -10%, rgba(0, 255, 140, 0.15), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(180, 115, 60, 0.15), transparent 40%),
    linear-gradient(135deg, rgba(10,12,14,0.95), rgba(6,9,8,0.95) 60%),
    repeating-linear-gradient(0deg, rgba(182, 115, 60, 0.25) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(182, 115, 60, 0.25) 0 1px, transparent 1px 40px);
  background-color: var(--bg);
  background-blend-mode: overlay;
  overflow-x: hidden;
}

/* Subsections */
header, nav, main, article, aside, footer {
  display: block;
}

/* Section styling (glass panels) */
.header-panel,
.glass {
  background: rgba(8, 14, 14, 0.22);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Generic container / grid helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
}
.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(43, 229, 126, 0.15);
  border: 1px solid rgba(43, 229, 126, 0.35);
  color: var(--text);
}

/* Core layout targets (per requirement) */
html, body, header, nav, main, article, footer, aside {
  /* ensures explicit presence in styling pass */
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 6px 18px rgba(0,0,0,.45),
    0 0 28px rgba(0, 255, 140, 0.25) inset;
  background: #111;
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04);
}
.content {
  padding: 0.5rem 0;
  color: var(--text);
}
.product-ad {
  display: block;
  margin: 0.5rem 0 0;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  text-align: center;
  transition: transform .2s ease;
}
.product-ad a { color: var(--text); text-decoration: none; display: block; }
.product-ad:hover { transform: translateY(-2px); }
.sponsored-page {
  display: block;
  margin: 0.5rem 0;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.25);
  text-align: center;
}
footer p {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Typography & hero hierarchy (minimal, responsive) */
header {
  padding: 1rem;
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.4rem, 4vw + 0.5rem, 2.4rem);
  line-height: 1.15;
  letter-spacing: .2px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-block;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  background: rgba(255,255,255,.08);
}

/* Link & Button treatments (focus visible) */
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
a:hover { text-decoration: underline; }

/* Buttons variants */
.btn {
  display: inline-block;
  padding: 0.72rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, rgba(46, 255, 170, .65), rgba(12, 180, 110, .55));
  color: #062c14;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(43, 229, 126, 0.8);
}
.btn.primary {
  background: linear-gradient(135deg, #2bff9c, #1a9e60);
  color: #04160f;
  border: 1px solid rgba(0,0,0,.15);
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,.25);
}
.cta { display: inline-flex; align-items: center; gap: .5rem; }

/* Layout primitives */
main {
  padding: 1rem 0 2rem;
}
@media (min-width: 720px) {
  .container.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (min-width: 860px) {
  .container.main-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .glass, .header-panel { background: #fff; border: 1px solid #ddd; box-shadow: none; }
}
