:root{
  --bg: #0a0f1d;
  --bg-2: #0b1020;
  --text: #eaf6ff;
  --muted: #a9b7d9;
  --accent: #ffd600;
  --accent-2: #fff44a;
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 12px 28px rgba(0,0,0,0.45);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body, header, nav, main, article, footer, aside { height: auto; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  background: linear-gradient(135deg, #0b0f1a 0%, #0a0e1a 60%, #0b1220 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,214,0,.12), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(0,0,0,.15), rgba(0,0,0,.0) 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

.card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: .75rem; }

.tag { display:inline-block; padding:.15rem .5rem; font-size:.75rem; border-radius:999px; background: rgba(255,214,0,.25); color: var(--text); border: 1px solid rgba(255,214,0,.6); }

.content { font-size: clamp(0.95rem, 1.4vw, 1.0rem); line-height: 1.6; color: var(--text); }

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

.featured-image { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); background: #111; }
.featured-image img { width: 100%; height: auto; display: block; }

header, nav, main, article, aside, footer {
  position: relative;
  z-index: 1;
}

header {
  padding: 1rem;
  margin: 0 auto 1rem;
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  border-radius: var(--radius);
  background: rgba(15, 18, 28, 0.45);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
header h1 {
  margin: .25rem 0 0.25rem;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
header .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: .25rem 0 0.5rem;
}
nav { margin-top: .25rem; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus { text-decoration: underline; }

main {
  padding: 0 1rem;
}
article {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,.25);
  margin: 0 auto 1rem;
}
article h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: .75rem 0 .5rem;
  color: #fff;
}
article p { color: #eaf5ff; margin: .5rem 0; }
article ul { margin: .75rem 0; padding-left: 1.25rem; color: #eaf7ff; }
article li { margin: .25rem 0; }

footer {
  padding: 1rem;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
.product-ad, .sponsored-page {
  padding: .8rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
}
.product-ad a, .sponsored-page a { display: block; color: var(--text); text-decoration: none; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }
footer p { margin: 0; text-align: center; color: var(--muted); }

a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}
a { color: var(--text); }
a:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.35);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

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

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

/* Fallback for environments without backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  header, article, footer { background: rgba(15,18,28,.92); border-color: rgba(255,255,255,.4); }
  .glass { background: rgba(255,255,255,.15); }
}

/* Global utility targets kept lightweight for production use */
.html, .body, html, body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.content { line-height: 1.6; }