/* Section: Theme tokens */
:root {
  --bg: #040a14;
  --bg-2: #0a1a2e;
  --text: #eaf6ff;
  --muted: #a9b7d2;
  --accent: #4e8cff;
  --accent-2: #a14eff;
  --card: rgba(255, 255, 255, 0.12);
  --card-2: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 24px rgba(0,0,0,.25);
  --focus: rgba(100, 180, 255, 0.95);
  --radius: 14px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Section: Global resets & base typography (mobile-first) */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    linear-gradient(135deg, rgba(5,10,20,.95), rgba(6,12,30,.95)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  background-size: auto, auto, auto;
  -webkit-tap-highlight-color: transparent;
}

/* Subtle mobile tweak: avoid heavy fixed bg on small viewports */
@media (max-width: 600px) {
  body { background-attachment: scroll; }
}

/* Section: Layout helpers */
.container { width: min(100%, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Section: Glass panels baseline (fallback included) */
.glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
  color: var(--text);
}

/* Backdrop-filter support fallback */
@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
  }
}

/* Section: Hero and typography scaling */
header {
  padding: 2rem 1rem;
  text-align: center;
  margin: 1rem auto;
}
header h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  color: var(--text);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.4vw + 0.8rem, 1.05rem);
}

/* Section: Main content area */
main { padding: 1rem 0; }

/* Section: Article styling (glass panel) */
article {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
article h2 {
  font-size: clamp(1.4rem, 0.8vw + 1rem, 2rem);
  margin: 0 0 0.75rem;
  color: var(--text);
}
article p { margin: 0 0 0.75rem; color: var(--text); }
article ul,
article ol { margin: 0.5rem 0 1rem 1.25rem; color: var(--text); }

/* Section: Images (frame styling) */
.image-frame,
.featured-image {
  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 { aspect-ratio: 16/9; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Utilities / content blocks */
.content { padding: 0; }

/* Section: Simple utility components (cards, grids, tags) */
.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, 0.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.24);
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(78, 140, 255, 0.25);
  color: #eaf5ff;
  border: 1px solid rgba(78,140,255,.55);
}

/* Section: Links & buttons (interactive states) */
a,
button,
 .btn,
 .cta {
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: .75rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 180, 255, 0.9);
  border-color: rgba(100,180,255,0.95);
  border-radius: 8px;
}
.btn {
  background: var(--accent);
  color: #041027;
  border: 1px solid rgba(0,0,0,.15);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Secondary outline variant */
.btn.outline,
.cta {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(78,140,255,.75);
}
.btn.outline:hover,
.cta:hover { background: rgba(78,140,255,.15); }

/* Section: Header/footer link panels (glass-like blocks) */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  display: grid;
  gap: .75rem;
}
footer .product-ad,
footer .sponsored-page {
  display: inline-block;
  margin: 0 .5rem;
  padding: .5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
footer p { color: var(--muted); }

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
}
 
/* Section: Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}