/* Base Reset & Palette */
:root {
  --bg: #071c1a;
  --bg-2: #0b2b2b;
  --text: #eafff6;
  --muted: #97f0e0;
  --accent: #1ff0c2;
  --accent-2: #00e6a0;
  --panel: rgba(8, 14, 14, 0.28);
  --panel-strong: rgba(0, 255, 200, 0.45);
  --shadow: 0 8px 24px rgba(0,0,0,.4);
  --radius: 14px;
  --chip: rgba(0,255,200,.25);
  --chip-border: rgba(0,255,200,.5);
}

html, body { height: 100%; }
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Layered, responsive background (gradient + subtle scanlines) */
body {
  min-height: 100dvh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.5;
  background-color: #040f12;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(0,255,210,.25), transparent 40%),
    radial-gradient(circle at 85% 8%, rgba(0,180,120,.18), transparent 40%),
    linear-gradient(135deg, rgba(0,255,210,.14), rgba(0,128,60,.22) 60%, rgba(0,0,0,.50)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 2px, transparent 2px 4px),
    #040b0f;
  background-blend-mode: screen, screen, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.prefers-light, @media (prefers-color-scheme: light) {
  /* Light mode adjustments (better legibility) */
}
@media (prefers-color-scheme: light) {
  body {
    --bg: #f8fbf9;
    --bg-2: #eef6f4;
    --text: #0b2a21;
    --muted: #3a6a5b;
    --panel: rgba(255,255,255,0.9);
    --panel-strong: rgba(0, 128, 0, 0.25);
    background-color: #f7fbfa;
    background-image: none;
  }
  header, main, footer, aside {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08);
  }
  a { color: #0a6b3a; }
  .btn { border-color: rgba(0, 128, 0, 0.75); background: linear-gradient(135deg, rgba(0,128,0,.9), rgba(0,180,0,.9)); color: #06240f; }
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 86vw, 1120px);
  padding-inline: 1rem;
  margin-inline: auto;
}

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

.card {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(8,12,12,0.28);
  border: 1px solid rgba(0,255,200,0.38);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--text);
  background: var(--chip);
  border: 1px solid var(--chip-border);
}

/* Base elements */
html, body, header, nav, main, article, aside, footer {
  /* Glass panel aesthetic on structural regions */
  background: var(--panel);
  border: 1px solid rgba(0, 255, 200, 0.35);
  border-radius: var(--radius);
  backdrop-filter: saturate(1.05) blur(12px);
  -webkit-backdrop-filter: saturate(1.05) blur(12px);
  padding: 1rem;
  box-shadow: var(--shadow);
}

header {
  text-align: center;
  padding: 2.2rem 1rem;
}
header h1 {
  margin: 0 0 .4rem;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  letter-spacing: .02em;
  line-height: 1.18;
}

main {
  padding: 1rem;
}

article {
  display: block;
  margin: 0 auto;
  max-width: 960px;
}

.image-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,255,200,.55);
  margin: 1rem auto;
  background: #000;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Product/ad blocks in footer */
.product-ad, .sponsored-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6em 1em;
  border-radius: 12px;
  margin: .4rem;
  text-align: center;
  text-decoration: none;
  background: rgba(8,12,12,.28);
  border: 1px solid rgba(0,255,200,.55);
  color: var(--text);
  transition: transform .15s ease, box-shadow .2s ease;
}
.product-ad:hover, .sponsored-page:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.product-ad a, .sponsored-page a { color: inherit; text-decoration: none; }

footer { padding: 1rem; text-align: center; }

/* Typography & links */
a, button, .btn, .cta {
  font-family: inherit;
  text-decoration: none;
  color: var(--text);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .15s ease;
}
a { color: var(--accent-2); }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border: none;
  border-radius: 999px;
}

/* Buttons & CTAs */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75em 1.25em;
  border-radius: 999px;
  border: 1px solid rgba(0,255,200,.85);
  background: linear-gradient(135deg, rgba(0,255,210,.95), rgba(0,180,120,.95));
  color: #041913;
  font-weight: 700;
  cursor: pointer;
  text-shadow: none;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(0,255,200,.75);
}
.btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
.btn.secondary:focus-visible {
  outline: 3px solid rgba(0,255,200,.7);
}
.btn[disabled], .cta[disabled] {
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(.2);
}

/* Lists */
ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Content helper */
.content { color: var(--text); }

/* Image frame helpers (explicit selector) */
.image-frame { /* already styled above; kept for specificity if extended in future */ }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  .image-frame { page-break-inside: avoid; }
}

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