/* Base & Palette */
:root {
  --bg: #0a0f14;
  --bg-2: #0b1220;
  --text: #e6f7ff;
  --muted: #b5c9d9;
  --accent: #00e5ff;       /* cyan */
  --accent-2: #cba6ff;     /* soft lilac */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.15);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.5;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.10) 0%, rgba(187, 107, 255, 0.10) 60%, rgba(0,0,0,0) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0%, rgba(0,180,255,.10), transparent 40%),
    var(--bg);
  background-blend-mode: screen, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }

/* Layout helpers / utilities */
.container { max-width: clamp(640px, 85vw, 1120px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; color: var(--text); box-shadow: var(--shadow); }
.tag { display: inline-block; padding: .25em .5em; border-radius: 999px; font-size: .75rem; border: 1px solid rgba(0,255,255,.5); color: var(--text); background: rgba(0,255,255,.15); }

/* Layered / futuristic surfaces (glass panels) */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.18); }
}

/* Frames for images (as required) */
.image-frame {
  width: 100%; aspect-ratio: 16/9; 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; }

/* Structure selectors (as requested) */
html, body, header, nav, main, article, footer, aside { /* presentational scaffolding */ }
main { display: block; padding: 1rem 0; }

/* Header / Hero */
header {
  padding: 1rem;
  margin: 1rem auto;
  max-width: clamp(640px, 90vw, 1100px);
  border-radius: 16px;
  background: rgba(8, 12, 20, 0.28);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 {
  font-size: clamp(1.6rem, 3.5vw + 1rem, 3rem);
  line-height: 1.05;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
}
header nav a { display: inline-block; padding: .5rem 0.75rem; border-radius: 6px; color: var(--accent); border: 1px solid rgba(0,255,255,.4); }
header nav a:hover { background: rgba(0,255,255,.15); text-decoration: none; }

/* Main content / article */
main { padding: 1rem; }
article { margin: 0 auto; max-width: clamp(640px, 85vw, 1000px); }
article h1 { font-size: clamp(1.4rem, 2.5vw + 1rem, 2.4rem); margin: .25rem 0 0.5rem; }
article h2, article h3 { color: var(--text); margin: 1rem 0 .5rem; font-weight: 600; }
article p { margin: .6rem 0; color: #e7f2fb; }
article ul { margin: .6rem 0 1rem 1.1rem; color: #e7f2fb; }
article ul li { margin: .25rem 0; }

/* Featured image (special case) */
.featured-image { width: 100%; border-radius: 12px; overflow: hidden; margin: 1rem 0; border: 1px solid rgba(255,255,255,.25); }

/* Footer / ads as glass panels in a responsive layout */
footer {
  padding: 1rem;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.product-ad, .sponsored-page { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 72px; }
.product-ad a, .sponsored-page a { display: block; width: 100%; height: 100%; text-decoration: none; color: var(--text); }
.product-ad p, .sponsored-page p { margin: 0; }

/* Button primitives and variants */
.btn { display: inline-block; padding: .75rem 1.15rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: var(--text); cursor: pointer; transition: transform .15s ease, background .2s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: linear-gradient(135deg, rgba(0,213,255,.95), rgba(165,92,255,.95)); border: none; color: #001018; }
.btn--outline { background: transparent; border: 1px solid rgba(0,213,255,.75); color: var(--text); }
a.btn { text-decoration: none; }

/* Focus styles (a11y) */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Lists and anchors accessibility */
ul, li { margin: 0; padding: 0; }
li { list-style: disc; padding-left: 1.25rem; color: var(--text); }

/* Responsiveness helpers */
@media (max-width: 720px) {
  header { padding: 0.75rem; }
  footer { grid-template-columns: 1fr; }
  .image-frame { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn { transition: none; }
}

/* Print-friendly (small) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}