html, body {
  height: 100%;
}
:root {
  --bg: #041018;
  --bg-2: #0b1f24;
  --text: #e8fbff;
  --muted: #a9dde8;
  --accent: #0ce1d9;       /* bright turquoise */
  --accent-2: #5bd4ff;     /* sky blue */
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --ring: rgba(16, 235, 230, 0.9);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}
*,
*::before,
*::after { box-sizing: border-box; }
html { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text);
  background-color: var(--bg);
  /* Layered future cyberpunk background: gradient + subtle spiral/noise */
  background-image:
    radial-gradient(circle at 20% 15%, rgba(0, 255, 235, .15), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(0, 180, 255, .12), transparent 40%),
    conic-gradient(from 0deg at 60% 50%, rgba(0, 255, 235, .08) 0deg, transparent 60deg, rgba(0,255,235,.08) 120deg, transparent 180deg, rgba(0,255,235,.08) 240deg, transparent 360deg),
    linear-gradient(135deg, rgba(4,12,20,.95), rgba(4,12,20,.95) 60%, rgba(2,6,10,.95)),
    repeating-linear-gradient(to bottom, rgba(0,255,235,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, screen, normal, normal, normal;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
header, nav, main, article, aside, footer {
  /* basic layout anchors reset where needed */
}
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
header h1 {
  font-size: clamp(1.75rem, 2.6vw + 1rem, 3.25rem);
  line-height: 1.1;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.8vw + 0.6rem, 1.05rem);
}
main {
  padding: 1rem;
}
article {
  max-width: clamp(720px, 86vw, 1100px);
  margin-inline: auto;
}
.featured-image { margin: 1rem 0 1rem; }
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.content { /* generic content container; used alongside article text if needed */ }

ul, ol {
  padding-inline-start: 1.25rem;
  margin: .75rem 0 1.25rem;
}
li { margin: .35rem 0; }
p { margin: .75rem 0; }

a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover, a:focus-visible {
  text-decoration: underline;
}
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,.0);
}
.btn, .cta {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  user-select: none;
}
.btn { background: var(--accent); color: #001b1f; border: 1px solid rgba(0,0,0,.15); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(30, 230, 230, 0.75);
}
.image-frame { /* ensure accessibility for image blocks */ }
.card, .content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(8px)) {
  .card, .content { background: var(--card-2); border: 1px solid rgba(255,255,255,.4); }
}
.container { width: 100%; max-width: clamp(720px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Layout utilities */
.grid { display: grid; gap: 1rem; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Product / ad area in footer */
.product-ad {
  display: inline-block;
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
}
.product-ad a {
  color: #001b1f;
  text-decoration: none;
  display: block;
  padding: .5rem;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
}
.product-ad a:hover { text-decoration: underline; }

/* Footer layout with responsive sections */
footer {
  padding: 1.5rem 1rem;
  display: grid;
  gap: 0.75rem;
  place-items: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 1rem;
}
footer > section { width: 100%; }
footer .sponsored-page { text-align: center; }

/* Visible focus for keyboard users on interactive elements elsewhere */
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* Nav and Aside placeholders (ensuring selectors exist) */
nav { padding: 0.5rem 1rem; }
aside { display: none; }

/* Print styles for basic readability */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .card, .content { background: #fff; border: 0; box-shadow: none; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}