/* Tokens */
:root {
  --bg: #0a0a14;
  --bg-2: #0b1020;
  --text: #eaffff;
  --muted: #a6c5d3;
  --accent: #7c3aed;     /* neon purple */
  --accent-2: #0ff0d6;    /* retro teal */
  --card: rgba(18,22,38,.28);
  --card-strong: rgba(18,22,38,.38);
  --border: rgba(255,255,255,.28);
  --focus: 2px solid #ffffff;
  --shadow: 0 8px 28px rgba(0,0,0,.32);
  --radius: 14px;
  --gap: 1rem;
}

/* Base resets & layout helpers */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Neon purple checkerboard layer + teal accents (mobile-friendly, lightweight) */
  background-image:
    linear-gradient(45deg, rgba(124,58,237,.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,255,212,.25) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  background-color: var(--bg);
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  /* Subtle scanline/noise overlay (pure CSS) */
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.04) 0 1px,
      transparent 1px 2px
    ),
    linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.0) 60%);
  mix-blend-mode: overlay;
  opacity: .55;
  z-index: 0;
  /* reduced motion respects */
}
main, header, nav, article, aside, section, footer { z-index: 1; }

/* Layout utility */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  gap: var(--gap);
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: var(--text);
}

/* Typography */
html, body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
h1, h2, h3 {
  margin: 0 0 .5rem;
  line-height: 1.15;
}
p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* Header / Hero */
header {
  padding: 1.25rem 0;
}
header h1 {
  font-size: clamp(1.25rem, 1.2rem + 2vw, 2rem);
  line-height: 1.15;
  letter-spacing: .2px;
  margin: 0 0 .25rem;
  color: #eaffff;
  text-shadow: 0 0 12px rgba(124,58,237,.45);
}
nav a {
  display:inline-block;
  padding:.5rem 1rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(12, 16, 28, .28);
  color: var(--text);
}
nav a:hover { background: rgba(12,16,28,.40); }

/* Image frame with glass feel */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content area (for potential panels) */
.content {
  display: block;
  padding: 0;
  margin: 0;
  color: var(--text);
}
@media (min-width: 720px) {
  .content { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
}

/* Product ad / footer panels */
.product-ad, .sponsored-page {
  display: block;
  border-radius: 12px;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(12,16,28,.28);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

footer {
  padding: 1.25rem 0;
  display: grid;
  gap: .75rem;
  justify-items: center;
  align-items: center;
  text-align: center;
}
@media (min-width: 900px) {
  footer { grid-auto-flow: column; grid-auto-columns: 1fr; }
}

/* Buttons & ctas */
button, .btn, .cta {
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: .6rem 1rem;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--accent-2);
  color: #001014;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
button.primary, .btn.primary, .cta.primary { background: var(--accent); color: white; }
button.outline, .btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(124,58,237,.7);
}
button.icon {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Lists */
ul { margin: 0; padding-left: 1.25rem; color: var(--muted); }
li { margin: .25rem 0; }

/* Print styles */
@media print {
  body { background: white; color: #000; }
  a { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}
