:root {
  --bg: #0b1220;
  --bg-2: #0a1a38;
  --text: #eaf2ff;
  --muted: #a9b8d6;
  --accent: #416dff;
  --accent-2: #6fa8ff;
  --glass: rgba(8,12,28,0.22);
  --glass-2: rgba(8,12,28,0.18);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; font-size: 16px; }
body {
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, rgba(65,111,255,.12), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(0,0,0,.22), transparent 40%),
              linear-gradient(135deg, #0b1220 0%, #0a1a38 60%, #0b1220 100%);
  background-blend-mode: overlay, overlay, normal;
  font-family: inherit;
  line-height: 1.5;
  font-size: clamp(14px, 1.2vw, 16px);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
body::before {
  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: .4;
}

/* Layout utilities */
.container { width: 100%; max-width: clamp(640px, 86vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Glass panels with graceful fallback */
header, main, article, footer, aside {
  background: rgba(8,12,28,0.22);
  border: 1px solid rgba(120,140,255,0.35);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
header { display: block; }
nav { margin-top: .25rem; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(120,140,255,.45); background: rgba(65,111,255,.25); }
nav a:hover { text-decoration: underline; }

/* Images and image frame styling */
.image-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Compatibility image container used in markup */
.featured-image { margin: 1rem 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* Core content typography */
h1 { font-size: clamp(1.75rem, 4.5vw, 3rem); line-height: 1.15; margin: .25rem 0 0.5rem; color: var(--text); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin: 1rem 0 .5rem; color: var(--text); }
h3 { font-size: clamp(1rem, 2.6vw, 1.25rem); margin: .75rem 0 .25rem; color: var(--text); }
p { margin: 0 0 1rem; color: var(--text); opacity: .95; }
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent-2); background: rgba(65,111,255,.15); border-radius: 6px; color: var(--text); }
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Links and focus states for accessibility */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Buttons and CTAs */
.btn, .cta { display: inline-block; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(65,111,255,.6); background: linear-gradient(#4f7aff, #3256e5); color: #fff; text-decoration: none; font-weight: 600; cursor: pointer; transition: transform .15s ease, background .2s ease; }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); opacity: .9; }
.btn.secondary, .cta.secondary { background: transparent; color: var(--text); border: 1px solid rgba(125,150,255,.6); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Informational card and utility helpers */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* Special sections in footer */
.product-ad { margin: 0; padding: .75rem; text-align: center; background: rgba(8,12,28,.25); border-radius: 12px; border: 1px solid rgba(120,140,255,.4); }
.product-ad a { color: var(--text); display: inline-block; padding: .4rem .8rem; border-radius: 6px; background: rgba(65,111,255,.25); border: 1px solid rgba(65,111,255,.5); text-decoration: none; }
.product-ad a:hover { text-decoration: underline; }

/* Footer text */
footer { margin-top: 1rem; padding: 1rem; text-align: center; color: var(--muted); }

/* Utility: responsive tweaks */
@media (min-width: 600px) {
  .container { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}
@media print {
  body { background: white; color: black; }
  header, main, article, aside, footer { background: none; border: none; box-shadow: none; }
  a { text-decoration: underline; color: black; }
}