/* Base tokens / Palette (lime + sky blue) */
:root {
  --bg: #04140f;
  --bg-2: #062018;
  --text: #eafff5;
  --muted: #b7f0cb;
  --accent: #29f0ff;     /* sky blue */
  --accent-2: #7af77a;   /* lime-ish highlight */
  --panel: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --gap: 1rem;
  --focus: 0 0 0 3px rgba(0, 255, 255, 0.65);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* Base / Reset (mobile-first) */
html, body {
  height: 100%;
}
html { font-size: 16px; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  background: var(--bg);
  /* Layered background: lime polka dots + sky-blue accents + dark gradient */
  background-image:
    radial-gradient(circle at 10px 10px, rgba(0,255,128,.25) 2px, transparent 3px),
    radial-gradient(circle at 60px 60px, rgba(0,191,255,.18) 2px, transparent 3px),
    linear-gradient(135deg, #04140f 0%, #061b17 50%, #000814 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  /* subtle scanline layer (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .22;
  pointer-events: none;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; border-radius: 4px; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Layout utilities */
.container {
  width: min(100%, 1080px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .section-glass { background: rgba(255, 255, 255, 0.22); }
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 .5rem;
  font-weight: 700;
}
h1 {
  font-size: clamp(1.75rem, 2.8vw + 1rem, 3.5rem);
  letter-spacing: .4px;
}
h2 {
  font-size: clamp(1.15rem, 1.8vw + .8rem, 2rem);
  color: #eaffff;
}
h3 { font-size: 1.1rem; }

/* Text helpers */
.subtitle { color: var(--muted); font-size: clamp(0.95rem, 0.8vw + 0.8rem, 1.15rem); }

/* Structural elements */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  padding: 1rem 0;
}
main { padding: 1rem 0 2rem; }
footer { padding: 1rem 0 2rem; }

/* Hero / content panels */
.content { padding: 1rem; }

/* Product ad / utility blocks */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem 1rem;
  text-align: left;
}
.product-ad a, .sponsored-page a { display: block; padding: .6rem .8rem; border-radius: 999px; color: #002e2a; background: rgba(0, 255, 255, 0.28); border: 1px solid rgba(255,255,255,.5); text-decoration: none; font-weight: 700; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Interactive controls */
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: var(--accent);
  color: #002a2a;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #2bf6ff; }
.btn:active { transform: translateY(1px); }
.btn--outline {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.55);
}
.cta { cursor: pointer; }

ul, li { margin: 0; padding: 0; list-style: none; }
ul li { padding-left: 1.2rem; position: relative; }
ul li::marker { color: var(--muted); }

/* Focus & accessibility */
:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; border-radius: 6px; }
/* High-contrast tweaks for glass panels text readability on dark glass */
.section-glass, .card { color: var(--text); }

/* Image usage helper (dots frame) */
.image-caption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* Print styles (readability) */
@media print {
  body { background: #fff; color: #000; }
  .section-glass { background: #fff; border: 1px solid #000; }
  a { color: #000; text-decoration: underline; }
}

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

/* Typography scale for rhythm */
header h1 { margin-bottom: .25rem; }
main > article { margin-block: 1.25rem; }

/* Specific selector targets (per requirement) */
html, body, header, nav, main, article, footer, aside { }
.image-frame, .image-frame img { }
.content { }
.product-ad { }
a, button, .btn, .cta { }
ul, li { }
.container, .grid, .card, .tag { }

/* Minor utility: subtle lime accent tags */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(0,255,128,.25);
  color: #053b2a;
  border: 1px solid rgba(0,255,128,.6);
}
@media (min-width: 720px) {
  .container { padding-inline: 2rem; }
}
