/* Base Tokens */
:root {
  --bg: #0a0520;
  --bg-2: #14072a;
  --text: #f6f3ff;
  --muted: #c9baf7;
  --accent: #7a5cff;
  --accent-2: #00e6ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(0, 214, 255, 0.5);
  --card: rgba(255,255,255,.08);
  --card-border: rgba(255,255,255,.25);
}

/* Reset & Base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  background: linear-gradient(135deg, rgba(10,5,32,.95) 0%, rgba(18,7,40,.95) 60%, rgba(8,0,40,.95) 100%);
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(122,92,255,.25) 0 20%, transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(0,230,255,.15) 0 30%, transparent 40%),
    linear-gradient(135deg, rgba(0,0,0,.0), rgba(0,0,0,.0));
  mix-blend-mode: overlay;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  opacity: .25;
  pointer-events: none;
  mix-blend-mode: overlay;
}
a { color: inherit; text-decoration: none; }

/* Layout Helpers */
.container {
  width: min(1120px, 90%);
  margin-inline: auto;
  padding-inline: 0.75rem;
}
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
.content { padding: 0.25rem 0; color: var(--text); }
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(122,92,255,.25);
  border: 1px solid rgba(122,92,255,.5);
  color: #fff;
}
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography & Hero */
header {
  padding: 1.25rem 0;
}
header h1 {
  font-size: clamp(1.75rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.04;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: .5rem;
}
nav a {
  color: var(--text);
  padding: .25rem .6rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Main content & hero content blocks */
main { padding: 0.75rem 0 1.25rem; }
.featured-image { width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.25); margin: 1rem 0; }
.featured-image img { width: 100%; height: auto; display: block; }

/* Paragraphs & sections */
article { margin: 0 auto; }
section { margin: 1rem 0; }
section h3 { font-size: clamp(1.1rem, 0.9rem + 1.5vw, 1.6rem); margin: .25rem 0 0.5rem; color: var(--text); }
p { margin: .6rem 0; }

/* Blockquotes & lists */
blockquote {
  margin: .8rem 0; padding: .6rem 1rem;
  border-left: 4px solid var(--accent);
  color: var(--text);
  font-style: italic;
  background: rgba(0,0,0,.12);
  border-radius: 6px;
}
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .35rem 0; }

/* Footer / Ads as glass panels */
footer {
  padding: 1rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.product-ad, .sponsored-page {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: .9rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a { display: block; color: var(--text); }
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Links & buttons (interactive states) */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn { background: linear-gradient(90deg, var(--accent), #4b25d1); color: #fff; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--text);
}
.cta { composes: .btn; }
a.btn, a.cta { display: inline-block; }

/* Focus ring + accessible focus */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }

/* Images & media helpers for potential .image-frame usage */
aside { display: block; }

/* Layout refinements for narrow screens */
@media (min-width: 600px) {
  footer { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-color-scheme: light) {
  :root { --glass: rgba(255,255,255,.12); --glass-border: rgba(0,0,0,.15); }
}

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
