:root {
  --bg: #050816;
  --bg-2: #0a1744;
  --text: #e9f2ff;
  --muted: #a9b7e4;
  --accent: #4ab6ff;
  --accent-2: #7df0ff;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(120, 170, 255, 0.35);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  --focus: var(--accent-2);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color-scheme: dark; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(5,6,24,.95) 0%, rgba(2,8,36,.95) 60%, rgba(3,12,40,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(0,170,255,.15), transparent 40px),
    radial-gradient(circle at 75% 5%, rgba(0,0,0,.15), transparent 60px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, screen, screen, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Glass panels with fallback */
header, .glass, .card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(120, 170, 255, 0.35);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, .glass, .card { background: rgba(255, 255, 255, 0.14); }
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 1100px;
  gap: 0.5rem;
  border-radius: 14px;
  background: rgba(8, 14, 60, 0.65);
  border: 1px solid rgba(120, 170, 255, 0.4);
  box-shadow: var(--shadow);
}

header h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .4px;
  line-height: 1.15;
}

header nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  transition: color .2s ease, transform .2s ease;
}
header nav a:hover { color: var(--accent-2); text-decoration: underline; transform: translateY(-1px); }

/* Main content */
main { padding: 1rem; animation: fadeIn .6s ease forwards; opacity: 0; transform: translateY(6px); }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

article { display: flex; justify-content: center; padding: 1rem 0; }

/* Image frame with aspect ratio and glow */
.image-frame {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(160, 190, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .2s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content helper (optional section) */
.content { padding: 1rem; color: var(--text); }

/* Lists */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Links, buttons, CTAs */
a, button, .btn, .cta { cursor: pointer; text-decoration: none; color: inherit; }

a:focus-visible, button:focus-visible, .cta:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(120,170,255,.6);
  background: linear-gradient(135deg, rgba(0,120,255,.85), rgba(0,180,255,.95));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
  margin: .25rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}
.cta { display: inline-flex; align-items: center; justify-content: center; padding: .6rem .9rem; border-radius: 6px; border: 1px solid rgba(120,170,255,.6); color: var(--text); background: rgba(0,0,0,.2); }

/* Footer / product ad panels */
footer {
  padding: 1.5rem 1rem;
  display: grid;
  gap: .75rem;
  justify-items: center;
  background: linear-gradient(to bottom, rgba(2,6,23,.9), rgba(2,6,23,.65));
  border-top: 1px solid rgba(120,170,255,.25);
}
.product-ad, .sponsored-page {
  width: min(100%, 720px);
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 100, 200, 0.8);
  border: 1px solid rgba(120,170,255,.6);
  transition: transform .2s ease, background .2s;
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); background: rgba(0,120,230,.95); }
footer p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }

/* Small typography helpers */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(120,170,255,.5);
  color: #e8f6ff;
  background: rgba(0,0,0,.25);
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
  .image-frame { page-break-inside: avoid; }
}