/* Tokens & Base */
:root{
  --bg: #0a001a;
  --bg-2: #1a0033;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --text: #eaf6ff;
  --muted: #b6cbe8;
  --accent: #00e5ff;        /* sky blue */
  --accent-2: #ff2bd4;      /* magenta */
  --border: rgba(255,255,255,.28);
  --card: rgba(255,255,255,.08);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 3px solid rgba(0,229,255,.95);
  --maxw: clamp(680px, 90vw, 1180px);
  --fg: #ffffff;
}
*{box-sizing:border-box;}
html, body{height:100%;}
html{font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif; font-size: 16px;}
html, body { overscroll-behavior: none;}

/* Layout primitives */
.container{ max-width: var(--maxw); margin-inline: auto; padding: 1rem; }
.grid{ display: grid; gap: 1rem; }
.card{ background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px); }
.glass{ background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px); }
@supports not (backdrop-filter: blur(12px)) {
  .glass{ background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); }
}
.card-header{ font-weight:600; color: var(--fg); margin-bottom:.5rem; }

/* Background: layered gradient + subtle noise/scanlines (pure CSS) */
body{
  min-height:100vh;
  margin:0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(255,0,190,.25), rgba(0,212,255,.25) 60%, rgba(0,0,0,.25) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.15)),
    #0a001a;
  background-blend-mode: overlay, overlay, normal;
  position: relative;
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before{
  content:"";
  position: fixed; inset:0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 2px, transparent 2px),
    radial-gradient(circle at 2px 2px, rgba(0,0,0,.05) 2px, transparent 2px);
  background-size: 4px 4px, 4px 4px;
  opacity:.35;
  mix-blend-mode: overlay;
  pointer-events:none;
  z-index:0;
}
body::after{
  content:"";
  position: fixed; left:0; right:0; top:0; bottom:0;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px;
  opacity:.15;
  mix-blend-mode: overlay;
  pointer-events:none;
  z-index:0;
}
@media (prefers-reduced-motion: reduce){
  body::before, body::after{ display:none; }
}

/* Typography scale (fluid) */
h1, h2, h3{ line-height:1.15; margin:0 0 .5rem; }
h1{ font-size: clamp(2rem, 4vw + 1rem, 3.6rem); letter-spacing:.2px; color:var(--fg); }
h2{ font-size: clamp(1.25rem, 2vw + .8rem, 2rem); color:var(--fg); margin-top:.75rem; }
p{ font-size: clamp(1rem, 1.6vw + .6rem, 1.125rem); line-height:1.6; color: var(--muted); }
blockquote{ margin: .5rem 0 1rem; padding: .5rem 1rem; border-left: 3px solid var(--accent); background: rgba(0,0,0,.25); border-radius: .5rem; color: #eaf6ff; }

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

/* Content helpers */
.content{ color: var(--muted); }
ul{ padding-left: 1.1rem; margin: .25rem 0 1rem; }
li{ margin: .25rem 0; }

/* Interactive elements */
a, button, .btn, .cta{ transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s; text-decoration: none; color: inherit; cursor: pointer; font: inherit; }
a{ color: var(--accent); }
a:focus-visible{ outline: 3px solid rgba(0,229,255,.95); outline-offset: 2px; text-decoration: underline; }
a:hover{ text-decoration: underline; color: #9affff; }
button, .btn, .cta{ background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.28); color: var(--fg); border-radius:.6rem; padding:.65rem 1rem; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5rem; }
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: scale(.98); }
.btn--primary{ background: linear-gradient(135deg, rgba(0,212,255,.95), rgba(0,0,255,.85)); border:1px solid rgba(255,255,255,.8); color:#001018; }
.btn--outline{ background: transparent; border:1px solid rgba(255,255,255,.6); color: var(--text); }
.btn:focus-visible{ outline: 3px solid rgba(0,229,255,.95); outline-offset: 2px; }

/* Layout components used by HTML selectors */
html, body, header, nav, main, article, footer, aside{ /* structural baseline */ }
header{ text-align:center; padding: 2rem 1rem 1rem; }
header h1{ margin:0; }
header .meta{ color: var(--muted); font-size: .92rem; margin-top:.25rem; }

/* Main content blocks */
main{ padding: 1rem; }
article{ display:block; }
.featured-image{ margin: .75rem 0 1rem; }

/* .content container semantics */
.content{ padding: .25rem; }

/* Product ad / footer blocks */
.product-ad, .sponsored-page{ display:block; margin: .5rem 0; }
.product-ad a, .sponsored-page a{ display:flex; align-items:center; justify-content: center; padding: .75rem; border-radius: .75rem; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.3); color: #eafffe; text-align:center; text-decoration:none; }
.product-ad a p, .sponsored-page a p{ margin:0; }

/* Utility primitives (grid & card helpers) */
.grid--auto{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:1rem; }
.tag{ display:inline-block; padding:.25rem .5rem; border-radius:999px; font-size:.75rem; background: rgba(0,0,0,.25); color:#e8f6ff; border:1px solid rgba(255,255,255,.25); }

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

/* Layout defaults for required wrappers to ensure centering on mobile */
@media (min-width: 0px){
  header{ padding-inline: 1rem; }
  .container{ padding-inline: 1rem; }
}
@media (min-width: 640px){
  main{ padding: 1.25rem; }
}
@media (min-width: 1024px){
  .grid{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Respect reduced motion globally (disable transitions/animations) */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Section headers (for organization) */
@media (min-width: 0){
  /* Section: Base styling applied above */
}