/* Theme Tokens */
:root{
  --bg: #041027;
  --bg-2: #0b1a2b;
  --text: #e8f7ff;
  --muted: #a6d9ff;
  --accent: #39ff14;       /* glowstick green */
  --accent-2: #1bdcff;      /* sky-blue accent */
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(57,255,20,.55);
}

/* Global */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100%;
  /* Layered background: gradient + starfield + scanlines (pure CSS) */
  background-image:
    /* sky-blue star dots (layer 1) */
    radial-gradient(circle at 8% 12%, rgba(120,210,255,.95) 1px, transparent 1px),
    radial-gradient(circle at 22% 48%, rgba(110,230,255,.85) 1px, transparent 1px),
    radial-gradient(circle at 60% 28%, rgba(140,255,200,.9) 1px, transparent 1px),
    radial-gradient(circle at 78% 72%, rgba(100,210,255,.8) 1px, transparent 1px),
    radial-gradient(circle at 92% 40%, rgba(150,255,180,.9) 1px, transparent 1px),
    /* gradient base layer (depth) */
    linear-gradient(135deg, #041027 0%, #0b1a2b 60%, #041321 100%);
  background-size: 2px 2px, 2px 2px, 2px 2px, 2px 2px, 2px 2px, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle CSS-driven noise & scanlines (no assets) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  /* faint glow + starfield texture */
  background-image:
    radial-gradient(circle at 6% 8%, rgba(120,210,255,.35) 1px, transparent 1px),
    radial-gradient(circle at 24% 40%, rgba(120,210,255,.25) 1px, transparent 1px),
    radial-gradient(circle at 44% 72%, rgba(120,210,255,.28) 1px, transparent 1px),
    radial-gradient(circle at 72% 20%, rgba(120,210,255,.32) 1px, transparent 1px);
  background-size: 2px 2px;
  background-repeat: repeat;
  opacity: .65;
  filter: saturate(110%);
  animation: star-drift 120s linear infinite;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px;
  mix-blend-mode: overlay;
  opacity: .55;
}
@keyframes star-drift { to { transform: translate3d(-1px, -1px, 0); } }
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  body::after { animation: none; }
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(110%) blur(10px);
  -webkit-backdrop-filter: saturate(110%) blur(10px);
}
@supports not (backdrop-filter: blur(1px)) {
  .card { background: rgba(255,255,255,0.14); }
}
.header-like, header, main, article, aside, footer {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.content { padding: 0.75rem 0; }

/* Image frames */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.15);
  box-shadow: 0 0 14px rgba(0,255,120,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(105%);
}

/* Typography (fluid) */
h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
}
h1 { font-size: clamp(1.75rem, 3vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.4vw + .5rem, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw + .6rem, 1.6rem); font-weight: 700; }

/* Text helpers */
p { font-size: clamp(1rem, .9vw + .8rem, 1.125rem); line-height: 1.5; color: #eaf7ff; margin: .5rem 0; }
blockquote { margin: .75rem 0; padding: .75rem 1rem; border-left: 3px solid var(--accent-2); background: rgba(0,0,0,.15); border-radius: 6px; color: #eaffff; }

/* Lists & items */
ul, ol { padding-left: 1.25rem; margin: .5rem 0 1rem 0; }
li { margin: .25rem 0; }

/* Links & CTAs */
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Buttons & CTAs (solid + outline variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .75em 1.25em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

/* Primary vs outline */
.btn.primary {
  background: linear-gradient(135deg, rgba(57,255,20,.95) 0%, rgba(0,230,120,.95) 100%);
  border: 1px solid rgba(0,0,0,.15);
  color: #04160a;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(57,255,20,.9);
  color: #eafff0;
}
.cta { display: inline-flex; align-items: center; }

/* Utility & layout helpers */
.ul-reset { padding-left: 0; margin: 0; list-style: none; }
.container-tight { max-width: min(980px, 92vw); margin-inline: auto; }

/* Specific selectors required by the HTML structure */
html, body, header, nav, main, article, footer, aside { }
.image-frame, .image-frame img { }
.content { }
.product-ad { padding: .75rem; }
a, button, .btn, .cta { }
ul, li { }
.container, .grid, .card, .tag { }

/* Specific site structure tweaks (safe defaults) */
header { text-align: center; padding: 1.25rem 1rem; }
header h1 { margin-bottom: .25rem; }
header .meta { font-size: .92rem; color: var(--muted); }

/* Footer styling for "glass" panels and CTAs */
footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; align-items: center; padding: 1rem; }

/* Print-friendly (basic readability) */
@media print {
  body { color: #000; background: #fff; }
  header, main, footer { background: #fff; border: none; border-radius: 0; box-shadow: none; }
  a { color: #00a; text-decoration: underline; }
}
@media (min-width: 860px) {
  main { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}