:root{
  --bg: #0a0f1d;
  --bg-2: #0b1020;
  --text: #e9f2ff;
  --muted: #b8c6f3;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(123,140,255,.22);
  --border: rgba(120,140,255,.45);
  --accent: #7b8cff;
  --accent-2: #9af5ff;
  --shadow: 0 8px 22px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid #cfe0ff;
  --tag: rgba(123,140,255,.25);
  --tag-border: rgba(123,140,255,.5);
}
html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body, header, nav, main, article, footer, aside { /* ensure predictable flow */ }
html, body { margin: 0; padding: 0; }

body {
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(10,16,40,.95), rgba(7,9,18,.95) 60%, rgba(0,0,0,.95)),
    radial-gradient(circle at 20% 0%, rgba(123,140,255,.20), transparent 40%);
  background-blend-mode: normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
body::before{
  content:"";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.03) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

.card {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(12,14,34,.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.image-frame {
  width: min(90%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem auto;
  background: linear-gradient(to bottom right, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(120,140,255,.45);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

header {
  width: min(1100px, 100%);
  margin: 2rem auto 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(9,12,28,.60);
  border: 1px solid rgba(120,140,255,.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.12;
  margin: .25rem 0 .25rem;
  letter-spacing: .2px;
  color: #eaf3ff;
}
header .meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(.85rem, 1.6vw, 0.95rem);
  color: #cbd8ff;
  opacity: .95;
}
nav {
  margin-top: .5rem;
  display: inline-flex;
  gap: .5rem;
  padding: .25rem;
  border-radius: 999px;
  background: rgba(123,140,255,.20);
  border: 1px solid rgba(120,140,255,.45);
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 999px;
  transition: transform .2s ease;
}
nav a:hover { transform: translateY(-1px); text-decoration: underline; text-underline-offset: 3px; }

main { padding: 1rem 0 2rem; }
article {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(15,20,50,.60);
  border: 1px solid rgba(120,140,255,.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--text);
}
article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .5rem 0 0.75rem; color:#eaf2ff; }
article h3 { font-size: 1.1rem; margin: .75rem 0 .5rem; color:#dbe7ff; }
article p { margin: .8rem 0; color: #eaf3ff; }
article ul { margin: .6rem 0 1rem 1.2rem; padding: 0; }
article li { margin: .25rem 0; color: #eaf3ff; }
.quote { font-style: italic; border-left: 3px solid rgba(123,140,255,.6); padding-left: .75rem; color: #eaf3ff; }

.content { padding: 1rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); border: 1px solid rgba(123,140,255,.25); }

.product-ad {
  display: block;
  padding: .75rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(120,140,255,.40);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease;
}
.product-ad:hover { transform: translateY(-2px); }

footer {
  margin: 2rem auto;
  padding: 1rem;
  border-top: 1px solid rgba(120,140,255,.4);
  background: rgba(9,12,28,.60);
}
footer .sponsored-page { display: block; }
footer p { margin: .5rem 0 0; color: var(--muted); }

a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  text-decoration: underline;
}

.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(120,140,255,.5);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: transform .15s ease, background .2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.btn.secondary, .cta.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(120,140,255,.6);
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: #647bff; }
.btn:active, .cta:active { transform: translateY(0); }

.tag { display: inline-block; padding: .25em .6em; font-size: .78rem; border-radius: 999px; background: var(--tag); border: 1px solid var(--tag-border); color: #eafdff; }

@media (min-width: 700px){
  header { padding: 1.25rem 1.5rem; }
  article { padding: 1.75rem; }
  .grid { gap: 1.25rem; }
}

@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: 0; box-shadow: none; page-break-after: auto; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}