/* Base + Palette */
:root{
  --bg: #050818;
  --bg-2: #0b1020;
  --text: #eaffff;
  --muted: #a9c8ff;
  --accent: #00ff88;      /* chartreuse neon */
  --accent-2: #4cc6ff;     /* neon blue */
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --radius: 14px;
  --ring: 0 0 0 3px rgba(0,255,136,.65);
  --fs-base: clamp(14px, 1.2vw + 12px, 18px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(6,12,40,.95), rgba(4,8,22,.95)),
    radial-gradient(circle at 20% 0%, rgba(0,255,136,.15), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0,128,255,.15), transparent 40%);
  background-blend-mode: normal, overlay, overlay;
  min-height: 100%;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}
body::before {
  /* subtle neon waves + scanlines (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, rgba(0,255,200,.08), transparent 40%),
    linear-gradient(135deg, rgba(0,255,255,.05) 0 25%, transparent 25% 50%, rgba(0,255,136,.05) 50% 75%, transparent 75% 100%);
  background-size: 100% 100%, 100% 100%;
  mix-blend-mode: overlay;
  z-index: -1;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.3), transparent);
}
body::after {
  /* faint scanlines */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 1px,
      transparent 1px,
      transparent 2px
    );
  background-size: auto 2px;
  mix-blend-mode: overlay;
  z-index: -1;
  opacity: .4;
}

/* Layout utilities */
.container {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-inline: auto;
  max-width: clamp(640px, 92vw, 1100px);
}
.grid { display: grid; gap: 1rem; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Section structure styling (semantic selectors) */
html, body, header, nav, main, article, footer, aside { /* kept accessible by default */ }

/* Section glass panels (frosted glass with fallbacks) */
header, main, footer, aside {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: .75rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
@supports not ((backdrop-filter: blur(8px))){
  header, main, footer, aside {
    background: rgba(255,255,255,.12);
  }
}

/* Typography (fluid, accessible) */
h1, h2, h3 { color: var(--text); margin: .25rem 0 .5rem; line-height: 1.15; }
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3.75rem); font-weight: 800; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.6vw + .75rem, 2.25rem); }
h3 { font-size: clamp(1rem, .9vw + .5rem, 1.25rem); font-weight: 700; }
p { font-size: var(--fs-base); line-height: 1.5; color: var(--muted); }

/* Content wrapper */
.content { padding: .75rem 0; }

/* Image frame styling */
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; border:1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.25); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product ad block (footer zone) */
.product-ad { display: block; text-align: center; padding: .8rem; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); color: var(--text); text-decoration: none; }

/* Links, buttons, utilities (interactive states) */
a, button, .btn, .cta { font: inherit; color: var(--text); text-decoration: none; cursor: pointer; border-radius: 999px; transition: transform .15s ease, background .25s ease, border-color .25s ease, color .25s ease; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }
a:focus-visible, button:focus-visible { outline: 0; box-shadow: none; outline: none; outline: none; }
a:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; border-radius: 999px; }

/* Primary/Secondary CTA styles */
.btn, .cta { padding: .7rem 1.15rem; display: inline-flex; align-items: center; justify-content: center; }
.btn { background: rgba(0,255,136,.28); border: 1px solid rgba(0,255,136,.66); color: #eafff0; }
.btn:hover { background: rgba(0,255,136,.38); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(0,255,136,.8); outline-offset: 3px; }

.cta { padding: .6rem 1rem; border: 1px solid rgba(76,198,255,.6); background: rgba(76,198,255,.22); color: #eaffff; }
.cta:hover { background: rgba(76,198,255,.32); transform: translateY(-1px); }

/* Outline variant example (applied to any element with class 'outline' if used) */
a.outline, .outline { background: transparent; border: 1px solid rgba(76,198,255,.8); color: var(--text); padding: .6rem 1rem; border-radius: 999px; }

/* Utility: .tag */
.tag { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .75rem; background: rgba(0,255,136,.25); color: #eafff0; border: 1px solid rgba(0,255,136,.6); }

/* Lists (accessible defaults) */
ul { margin: .5rem 0 1rem 1.15rem; padding: 0; }
li { margin: .25rem 0; }

/* Hero section heuristics (within header) */
header h1 { margin-bottom: .25rem; }
header nav { margin-top: .5rem; display: flex; gap: .5rem; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  body::before, body::after { background-size: 0 0, 0 0; }
}

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  header, main, footer { border: none; background: none; padding: 0; }
  .container { max-width: 100%; }
}
