:root {
  --bg: #0b1022;
  --bg-2: #0a1b3a;
  --bg-3: #0b1740;
  --text: #eaf2ff;
  --muted: #a9b8d6;
  --accent: #4b6cff;
  --accent-2: #8a5cff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(10,20,50,.95) 0%, rgba(26,12,60,.95) 60%, rgba(12,20,60,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(80,60,255,.25), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(0,180,255,.20), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

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

.card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Typography & content hierarchy */
header { text-align: center; padding: 2rem 1rem 1rem; }
header h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem); line-height: 1.15; margin: .25rem 0 .5rem; color: var(--text); }
.meta { color: var(--muted); font-size: .92rem; }
nav { margin-top: .5rem; }

nav a { color: var(--text); text-decoration: none; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(140,170,255,.4); background: rgba(63,90,255,.25); }
nav a:hover { text-decoration: underline; }

main { display: block; padding: 1rem 0 2rem; }
article { max-width: 850px; margin: 0 auto; padding: 1rem; border-radius: var(--radius); }
.article-glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }

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

/* Content class for glass panels and readable text */
.content { padding: 0; color: var(--text); font-size: clamp(0.95rem, 0.6vw + 0.95rem, 1.125rem); line-height: 1.55; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(255,255,255,.14); }
}

h1 + .content { margin-top: .75rem; }

/* Lists & bullets */
ul { padding-left: 1.25rem; margin: .75rem 0; }
li { margin: .25rem 0; }

/* Links, buttons, and interactive controls */
a, button, .btn, .cta { color: var(--text); text-decoration: none; border: none; background: transparent; cursor: pointer; font: inherit; }
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; outline: none; }

.btn, .cta, a.btn { display: inline-block; padding: .75rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: linear-gradient(135deg, rgba(75,108,255,.9), rgba(138,92,255,.9)); color: #fff; text-align: center; transition: transform .15s ease, background .2s ease; }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

.btn.secondary, .btn-outline { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--text); }

/* Focus rings for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }

/* Utility & small components */
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; background: var(--accent); color: #fff; }

.product-ad { margin: 1rem 0; padding: .9rem; border-radius: 12px; background: rgba(20,40,120,.28); border: 1px solid rgba(120,140,255,.4); }
.product-ad a { color: #fff; text-decoration: none; display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: rgba(80,120,255,.4); }
.product-ad a:hover { text-decoration: underline; }

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

/* Aside (if used) */
aside { display: block; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; }
  a { color: #000; text-decoration: underline; }
  .content { background: transparent; border: none; box-shadow: none; }
  .image-frame { page-break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

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