:root{
  --bg: #0a0a0f;
  --bg-2: #141522;
  --text: #e9e6ff;
  --muted: #b9b5cc;
  --accent: #7a5cff;
  --accent-2: #9a78ff;
  --glass: rgba(255,255,255,0.10);
  --glass-2: rgba(255,255,255,0.18);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 10px 28px rgba(0,0,0,.35);
  --ring: 0 0 0 3px rgba(122,92,255,.6);
}

* { 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; }

body {
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  background: 
    radial-gradient(circle at 20% -10%, rgba(122,92,255,.25), transparent 25%),
    linear-gradient(135deg, #0a0b12 0%, #141522 60%, #0b0d16 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-color: #0a0a0f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle noise/scanline layer for future cyberpunk vibe */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .25;
  z-index: 0;
}

/* Layout helpers */
.container { width: min(92%, 1100px); margin-inline: auto; padding: 1rem; }

/* Grid utilities */
.grid { display: grid; gap: 1rem; }

/* Card helper (glass panels) */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }
}

/* Utility: tags */
.tag { display:inline-block; padding:.15em .5em; border-radius:999px; font-size:.75rem; border:1px solid rgba(255,255,255,.35); color:#fff; background: rgba(122,92,255,.25); }

/* Typography scale (fluid) */
h1 { font-size: clamp(1.8rem, 1.6rem + 2vw, 3rem); line-height: 1.15; margin: .25rem 0 0.5rem; letter-spacing: .01em; }
h2 { font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2.25rem); margin: .6rem 0 .5rem; }
h3 { font-size: clamp(1.1rem, 0.8vw + .8rem, 1.4rem); margin: .5rem 0; }
p { margin: .5rem 0 1rem; color: #e8e6ff; }
blockquote { margin: .8rem 0; padding: .5rem 1rem; border-left: 3px solid var(--accent); color:#e7e0ff; background: rgba(122,92,255,.15); border-radius: 6px; }

/* Header (hero area) */
header {
  padding: 1.25rem;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
}
header h1 { margin: .25rem 0 .25rem; font-weight: 700; color: var(--text); }
header .meta { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }

/* Nav */
nav { display: inline-flex; gap: .5rem; align-items: center; }
nav a {
  color: #fff;
  text-decoration: none;
  padding: .45rem .75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { background: rgba(122,92,255,.25); text-decoration: underline; }
nav a:focus-visible { outline: none; box-shadow: var(--ring); }

/* Main content */
main { padding: 0 1rem 1.5rem; }
article { display: grid; gap: 1rem; max-width: 1100px; margin-inline: auto; }

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

/* Content container for article content (glass panels where relevant) */
.content { padding: .5rem 0; }

/* Sectional sparkle: a few frosted panels for CTAs / ads in footer */
.product-ad, .sponsored-page {
  text-align: center;
  padding: .9rem;
}
footer { padding: 1rem 0 1.5rem; display: grid; gap: .75rem; grid-template-columns: 1fr; justify-items: center; }
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Footer sections layout on wide screens */
@media (min-width: 700px) {
  footer { grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
  .product-ad, .sponsored-page { display: block; }
}

/* Glass panels in footer sections (fallback included) */
.product-ad, .sponsored-page {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .product-ad, .sponsored-page { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); }
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; padding: .25rem; }

/* Links and buttons (interactive states) */
a{ color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
button, .btn, .cta {
  font: inherit;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(122,92,255,.6);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); background: #6a46ff; }
button:active, .btn:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: var(--ring); }
.cta { background: transparent; color: var(--accent-2); border-color: rgba(122,92,255,.5); }

/* Lists */
ul { margin: 0 0 1rem 1.25em; padding: 0; }
li { margin: .25rem 0; }

/* Subcontainers for accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
  
/* Aside (generic) */
aside { display: none; }

/* Minor utility tweaks for faster rendering on small screens */
@media (max-width: 560px) {
  header { padding: .75rem; }
  nav { width: 100%; justify-content: space-between; }
  footer { padding: .75rem 0; }
}
