/* Base */
:root {
  --bg: #0a0f1a;
  --bg-2: #0b2a46;
  --bg-3: #0b1020;
  --text: #eaf6ff;
  --muted: #a8caff;
  --accent: #4fe6ff;      /* sky blue accent */
  --accent-2: #ff4dba;    /* pink accent */
  --card: rgba(255,255,255,0.08);
  --card-strong: rgba(255,255,255,0.16);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 2px solid color-m-mix(in oklab, var(--accent), white 0%);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: linear-gradient(135deg, rgba(0,180,255,.14) 0%, rgba(255,0,148,.14) 60%, rgba(0,0,0,.25) 100%), #040612;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Sky-blue fractal-like glow with pink hints (pure CSS textures) */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(0,180,255,.12) 0 6px, transparent 7px),
    radial-gradient(circle at 75% 38%, rgba(255,0,140,.10) 0 6px, transparent 7px),
    linear-gradient(135deg, rgba(0,180,255,.08), rgba(255,0,140,.08) 60%, rgba(0,0,0,.0) 100%);
  background-size: 60px 60px, 60px 60px, cover;
  mix-blend-mode: screen;
  filter: saturate(1.05);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* subtle scanlines */
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 100% 2px;
  opacity: .25;
  mix-blend-mode: overlay;
}
:focus { outline: none; }
main { position: relative; z-index: 1; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 1rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

header, main, footer, aside { /* structural targets */ }
header {
  display: block;
  padding: 1rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
header h1 { margin: 0 0 .25rem; font-size: clamp(1.8rem, 2vw + 1rem, 3rem); line-height: 1.05; letter-spacing: .5px; }
header .meta { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .95rem; }

nav { display: block; margin-top: .5rem; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
}
nav a:hover { text-decoration: underline; }

main { padding: 1rem 0; }
article { max-width: 70ch; margin: 0 auto; padding: 0 1rem; }
.featured-image { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 0 12px rgba(0,0,0,.25); margin-bottom: .75rem; }
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 16/9; }

h2 { font-size: clamp(1.25rem, 2vw + 1rem, 2rem); margin: .75rem 0 .25rem; color: #eaffff; }
p { margin: 0 0 1rem; color: #eaf2ff; line-height: 1.6; }
blockquote {
  margin: .75rem 0 1rem;
  padding: .6rem .9rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  color: #eaf4ff;
}
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; color: #eaffff; }
li { margin: .25rem 0; }

.image-frame, .image-frame img { /* for requirement styling, even if not in HTML here */
  display: block;
}
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { padding: 1rem; }

/* Glass panels with accessible fallbacks */
.card, .section { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@supports not (backdrop-filter: blur(10px)) {
  .card, .section { background: rgba(255,255,255,.14); }
}

.product-ad { display: block; padding: .5rem; border-radius: 10px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.25); margin: .5rem 0; text-align: center; }
.product-ad a { color: var(--text); text-decoration: none; display: block; padding: .5rem .75rem; }
.product-ad a:hover { text-decoration: underline; }

/* Links and controls */
a, button, .btn, .cta { font-family: inherit; color: inherit; }
a { text-decoration: none; color: var(--accent); }
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; outline-color: var(--accent); }

/* Buttons variants */
.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255,255,255,.45);
  color: #04131a;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #eaffff;
}
.cta {
  display:inline-block;
  padding:.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.25);
  color: #fff;
}
.cta:hover { text-decoration: underline; }

/* Utility */
.container, .grid, .card, .tag { /* structural utilities defined above */ }

/* Tag style */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(79,214,255,.25);
  color: #eaffff;
  border: 1px solid rgba(79,214,255,.55);
}

/* Structural sections sizing on breakpoints */
@media (min-width: 720px) {
  header { padding: 1.25rem 1.5rem; }
  main { padding: 1.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; color: black; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
}