/* Base */
:root {
  --bg: #050812;
  --bg-2: #0a1020;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --text: #e9f4ff;
  --muted: #a6b4d9;
  --accent: #2bd6ff;       /* neon blue */
  --accent-2: #ffb3d1;     /* pastel pink */
  --ring: #4ae6ff;
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 12px;
  --radius-sm: 8px;
  --card: rgba(255,255,255,0.08);
}
html, body {
  height: 100%;
}
html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle grid/scanlines (pure CSS) */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(60,120,255,.15), transparent 40%),
    linear-gradient(135deg, rgba(6,10,25,.95), rgba(6,10,25,.75)),
    repeating-linear-gradient(to right, rgba(0, 180, 255, .10) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(to bottom, rgba(0, 180, 255, .10) 0 1px, transparent 1px 60px);
  background-blend-mode: overlay, normal, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
* { box-sizing: border-box; }

/* Layout helpers */
.container { width: min(100%, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 0.9rem; box-shadow: var(--shadow); }

/* Sectioning elements */
header, main, footer, aside { display: block; }

/* Glass panels (fallback included) */
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.no-backdrop {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
header { padding: 1rem; margin: 0.75rem auto; max-width: 1100px; }
header h1 { font-size: clamp(1.4rem, 1.2rem + 2vw, 2.8rem); line-height: 1.15; margin: .2rem 0 .4rem; color: #eaffff; }
header .meta { color: var(--muted); font-size: .9rem; }

/* Hero/intro body structure */
main { padding: 0 0 1.5rem; }
article { margin: 0 auto; padding: 0 0.25rem; max-width: clamp(640px, 90%, 1100px); }
.featured-image { margin: 0 0 0.75rem; }
.featured-image img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 10px 28px rgba(0,0,0,.25); display: block; }
article h1 { font-size: clamp(1.6rem, 1rem + 3vw, 2.8rem); color: #eaffff; margin: .25rem 0 0.5rem; }
article p { color: var(--text); line-height: 1.6; font-size: clamp(1rem, 0.9vw + 0.9rem, 1.125rem); }
ol, ul { padding-inline-start: 1.25rem; margin: .25rem 0 0.75rem; }
li { margin: .25rem 0; }

/* Blockquote emphasis */
blockquote { margin: .5rem 0; padding-left: 1rem; border-left: 4px solid var(--accent); color: #eaffff; }

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

/* Navbar links and general link/button styling */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  padding: .55rem .95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s;
}
a { display: inline-flex; align-items: center; gap: .5rem; }
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }

/* Buttons variants */
.btn.primary, .cta {
  background: linear-gradient(135deg, rgba(39, 210, 255, 0.95) 0%, rgba(0,150,255,0.95) 100%);
  border: 1px solid rgba(255,255,255,.45);
  color: #001019;
  font-weight: 600;
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--text);
}
.btn:hover, .cta:hover, .btn.primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(39,210,255,1) 0%, rgba(0,150,255,1) 100%);
}
.btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.btn.outline, .cta.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: var(--text);
}
.btn.small { padding: .45rem .75rem; font-size: .9rem; }

/* Utility & small components */
.container.grid { padding: 0; }

/* Product Ad / Sponsored blocks in footer */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a { display: block; padding: .25rem; color: var(--text); text-decoration: none; }
.product-ad p, .sponsored-page p { margin: 0; }

/* Footer text */
footer { padding: 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: stretch; }

/* Small screens adjustments */
@media (max-width: 720px) {
  header { padding: .75rem; }
  article { padding: 0 0.25rem; }
  .image-frame { border-radius: 10px; }
  footer { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
  a, button, .btn, .cta { transition: none; }
}

/* Print styles (basic readability) */
@media print {
  html, body { background: #fff; color: #000; }
  body { -webkit-print-color-adjust: exact; }
  header, nav, footer { display: none; }
  article { max-width: 100%; margin: 0; padding: 0; }
  .image-frame { page-break-inside: avoid; }
}