:root{
  --bg: #0b1020;
  --bg-2: #0a0f22;
  --surface: rgba(14, 11, 38, 0.66);
  --surface-2: rgba(14, 11, 38, 0.38);
  --text: #e9e5ff;
  --muted: #b8b0d9;
  --accent: #9b5cff;
  --accent-2: #d9a8ff;
  --outline: rgba(155, 92, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.28);
  --card: rgba(7, 7, 20, 0.64);
  --shadow: 0 12px 28px rgba(0,0,0,0.4);
  --radius: 14px;
  --radius-sm: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  line-height: 1.6;
  background: 
    radial-gradient(circle at 15% 20%, rgba(155,0,255,.25), transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(0,255,235,.15), transparent 40%),
    linear-gradient(135deg, #07061a 0%, #0b1020 40%, #0a0e1c 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

a, button, .btn, .cta { cursor: pointer; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease, text-decoration .2s; }
a:hover, a:focus { color: var(--accent-2); text-decoration: underline; }

button, .btn, .cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  background: linear-gradient(180deg, rgba(155,92,255,.95), rgba(92,0,255,.95));
  color: #fff; font-weight: 600; letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn { /* default primary style */
  background: linear-gradient(180deg, rgba(155,92,255,.95), rgba(92,0,255,.95));
}
.btn.secondary, .cta {
  background: rgba(13,13,28,.6);
  border: 1px solid rgba(255,255,255,.25);
  color: #e8e8ff;
}
.btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.btn:focus-visible, .cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

header, main, footer, aside { padding: 1rem; }

/* Glass panels with fallbacks */
header {
  width: min(1100px, 92%);
  margin: 1rem auto;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(12, 10, 28, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 1.25rem 1rem;
}
header h1 { margin: 0 0 .25rem; font-size: clamp(1.5rem, 1.2rem + 2vw, 2.8rem); color: #fff; }
header .meta { color: var(--muted); font-size: clamp(.8rem, .5vw + .8rem, 1rem); }
nav { margin-top: .25rem; }
nav a { color: var(--muted); text-decoration: none; padding: .25rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); }
nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: underline; }

main { width: min(1100px, 92%); margin: 0 auto; }

/* Article content area (glass panel) */
article {
  max-width: clamp(320px, 90%, 860px);
  margin: 1rem auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(12, 10, 28, 0.62);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.featured-image { width: 100%; margin: 0 0 1rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.featured-image img { width: 100%; height: auto; display: block; }

/* Image frame patterns */
.image-frame { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 4px 16px rgba(0,0,0,.25); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { padding: 1rem 0; }

/* Lists and typography */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; color: var(--text); }
li { margin: .25rem 0; }

/* Utility classes */
.container { width: min(1100px, 92%); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); padding: .9rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* Tag chips */
.tag { display: inline-block; padding: .15em .6em; font-size: .75rem; border-radius: 999px; border: 1px solid rgba(155,92,255,.8); color: #f3eaff; background: rgba(155,92,255,.18); }

/* Section-like blocks in footer (ads) */
.product-ad, .sponsored-page {
  background: rgba(12,10,28,.55);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
}
.product-ad a, .sponsored-page a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Aside (optional in layout) */
aside { padding: .75rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.25); background: rgba(12,10,28,.55); }

/* Footer copy */
footer { display: grid; gap: 1rem; grid-template-columns: 1fr; width: min(1100px, 92%); margin: 0 auto; }

/* Print styles for readability */
@media print {
  body { color: #000; background: #fff; }
  header, nav, footer { display: none; }
  article { background: none; border: none; box-shadow: none; padding: 0; }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}