/* Base tokens */
:root{
  --bg: #0a0a12;
  --bg-2: #0b0e1a;
  --text: #e8f6ff;
  --muted: #a8b7cc;
  --accent: #ff2ea6;        /* neon pink */
  --accent-2: #1ee6c0;      /* turquoise */
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --radius: 14px;
  --maxw: clamp(320px, 86vw, 1100px);
}

/* Section: Reset + Layout Primitives */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.6;
  background: 
    linear-gradient(135deg, rgba(6,6,12,.95) 0%, rgba(6,6,12,.92) 60%, rgba(0,0,0,.92) 100%),
    radial-gradient(circle at 20% 0, rgba(0,255,214,.15), transparent 40%),
    radial-gradient(circle at 85% 8%, rgba(255,0,170,.25), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, screen, screen, normal;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
html, body { scroll-behavior: smooth; }

/* Subtle CSS rain/scanline layer across the page */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,.04) 0 1px,
    transparent 1px 2px);
  opacity: .25;
  mix-blend-mode: overlay;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 0, rgba(255,0,170,.9) 1px, transparent 2px),
    radial-gradient(circle at 60% 0, rgba(0,255,214,.8) 1px, transparent 2px);
  background-size: 8px 18px, 9px 18px;
  background-position: top left, top right;
  opacity: .25;
  mix-blend-mode: screen;
  animation: drift 9s linear infinite;
  z-index: 0;
}
@keyframes drift { to { transform: translateY(100%); } }

/* Section: Layout primitives for structural elements */
header, nav, main, article, aside, footer {
  display: block;
  position: relative;
  z-index: 1;
}
header { padding: 1.25rem; }

/* Section: Glass panels (with fallback) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
}
@supports not (backdrop-filter: saturate(1.2) blur(12px)) {
  .glass {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.4);
  }
}

/* Section: Content & image framing */
.content { padding: 1rem; }

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

/* Section: Layout utilities */
.container { width: min(100%, var(--maxw)); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Cards & tags */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; }
.tag {
  display: inline-block; padding: .25em .5em; border-radius: 999px;
  font-size: 12px; color: var(--text);
  background: rgba(30,230,192,.18); border: 1px solid rgba(30,230,192,.4);
}

/* Section: Typography • hero hierarchy */
h1, h2, h3 { margin: .25em 0; font-weight: 700; letter-spacing: .2px; }
h1 {
  font-size: clamp(1.75rem, 3.5vw, 3.5rem);
  line-height: 1.04;
  background: linear-gradient(90deg, rgba(0,255,214,1), rgba(255,0,170,1));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(1.25rem, 2.2vw, 2.4rem); color:#eaffff; }

/* Paragraphs & lists */
p { color: var(--muted); margin: .75em 0; }
ul { padding-left: 1.25rem; margin: .75em 0; }
li { margin: .4em 0; }

/* Section: Links & buttons */
a, button { cursor: pointer; text-decoration: none; color: inherit; }
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* Buttons variants */
.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  font-weight: 600; background: var(--accent); color: #0b0015;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #ff2ea6; }
.btn:active { transform: translateY(1px) scale(.98); }

/* Outline variant (cta) */
.cta {
  background: transparent; color: var(--accent-2);
  border: 1px solid rgba(26,230,197,.6);
  padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600;
}

/* Focus accessibility */
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Section: Product ad styling (footer area) */
.product-ad, .sponsored-page { padding: .75rem; }
.product-ad a, .sponsored-page a { display: block; padding: .75rem; border-radius: 10px; }

/* Header + global typography tweaks for sections that exist in the page */
header { background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; }

/* Section: Print & motion preferences */
@media print {
  body { color: #000; background: #fff; }
  .glass { background: #fff; border: 1px solid #ddd; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}