:root{
  --bg: #0b1a2b;
  --bg-2: #0a2540;
  --bg-3: #0b1e3b;
  --text: #eaf3ff;
  --muted: #b8ccff;
  --accent: #4db2ff;
  --accent-2: #1e66d6;
  --espresso: #2b1f15;
  --glass: rgba(8,12,28,.22);
  --glass-2: rgba(8,12,28,.28);
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(180,210,255,.55);
  --shadow: 0 10px 30px rgba(0,0,0,.28);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(56,176,255,.75);
  --gap: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Layered blue fractal-like background with subtle scanlines (pure CSS) */
  background-image:
    radial-gradient(circle at 20% 20%, rgba(77,178,255,.28), transparent 40%),
    radial-gradient(circle at 72% 40%, rgba(0,110,255,.20), transparent 40%),
    linear-gradient(135deg, #071022 0%, #0a1b35 60%, #0b1e3b 100%),
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,.04) 0 1px,
      rgba(0,0,0,.0) 1px 2px);
  background-size: cover;
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

header, main, footer {
  display: block;
}

/* Glass panels with graceful fallback */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.no-backdrop .glass {
  background: rgba(8,12,28,.40);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Layout regions */
header {
  padding: 1rem;
  margin: 1.25rem auto;
  width: min(1100px, 92vw);
  /* ensure header stands out as a hero glass panel on mobile */
  background: rgba(8,12,28,.28);
  border: 1px solid rgba(120,180,255,.5);
  border-radius: 16px;
  display: block;
}
header h1 {
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.8rem);
  margin: .25rem 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.85rem, 0.6vw + 0.8rem, 1rem);
}
header nav {
  margin-top: .5rem;
}
header nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
header nav a:hover, header nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  border-color: rgba(77,178,255,.8);
  background: rgba(77,178,255,.15);
}
main {
  padding: 1rem 0 2rem;
}
article {
  margin: 0 auto;
  padding: 1rem;
  max-width: min(960px, 92vw);
}
.featured-image {
  margin: .75rem 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  background: rgba(0,0,0,.15);
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  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;
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.03); }

.content {
  color: var(--text);
  font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  margin-top: .25rem;
}
h2, h3 {
  color: #eaf3ff;
}
h2 {
  font-size: clamp(1.25rem, 1vw + 1.25rem, 1.75rem);
  margin: .75rem 0 .5rem;
}
h3 {
  font-size: clamp(1.05rem, .8vw + .95rem, 1.25rem);
  margin: .75rem 0 .5rem;
}
p { margin: .5rem 0 1rem; }

/* Lists and emphasis */
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Buttons and links */
a, button, .btn, .cta {
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
}
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  user-select: none;
}
.btn {
  background: linear-gradient(135deg, rgba(77,178,255,.95), rgba(29,110,255,.95));
  color: white;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

.btn--outline {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-color: rgba(120,180,255,.9);
}
.btn--outline:hover { background: rgba(255,255,255,.14); }

a, .btn, .cta:focus-visible {
  outline: none;
}
.cta {
  background: linear-gradient(135deg, rgba(0,120,255,.95), rgba(56,176,255,.95));
  color: white;
}
.cta:hover { filter: brightness(1.05); }

/* Lists styling for contrast and accessibility */
a:focus-visible, a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.15em;
}
a { color: var(--accent); }
a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(56,176,255,.75); border-radius: 4px; }

/* Utility grid and cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: .6em;
  font-size: .75rem;
  background: rgba(77,178,255,.15);
  color: var(--text);
  border: 1px solid rgba(77,178,255,.5);
}

/* Image frame utility (for potential .image-frame usage) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  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; }

/* Footer with glass panels for ads/content */
footer {
  padding: 1rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;
  background: rgba(0,0,0,.0);
}
.product-ad, .sponsored-page {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-ad a, .sponsored-page a {
  width: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  transition: transform .2s ease, background-color .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}
footer p {
  text-align: center;
  align-self: center;
  color: var(--muted);
  font-size: .9rem;
}
@media (min-width: 900px) {
  main { padding: 0 0; }
  article { padding: 1.25rem; }
}
@media print {
  body { background: white; color: black; }
  header, nav, main, footer { background: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}