:root {
  --bg: #0b1020;
  --bg-2: #0a1b2b;
  --text: #eaf6ff;
  --muted: #a8b4cc;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --accent: #ff2d92;
  --accent-2: #9d5cff;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --ring: 2px solid rgba(255, 45, 146, 0.85);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
}

/* Section: Base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(6,8,20,.95), rgba(6,8,20,.85) 60%, rgba(8,12,28,.92)),
    radial-gradient(circle at 20% -10%, rgba(255,0,170,.25), transparent 40px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  min-height: 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 600ms ease-out forwards;
  opacity: 0;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  background-position: 0 0, 0 0;
  opacity: .25;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}
@keyframes fadeIn { to { opacity: 1; } }

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

/* Section: Layout & Utilities */
header, main, footer, aside { display: block; }
header { padding: 1rem 0; position: relative; z-index: 5; }
header h1 { font-size: clamp(1.25rem, 2vw + 1rem, 2rem); margin: 0 0 .5rem; letter-spacing: .2px; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.15); }
nav a:hover, nav a:focus { text-decoration: underline; color: #fff; }

main { padding: 1rem 0 2rem; }

.image-frame {
  border-radius:  remarkably; /* spacer to avoid linting; replaced below in actual rule */
}
.image-frame { 
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 26px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1.00);
  transition: transform .25s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Section: Glass panels */
.card, .product-ad, .sponsored-page, .content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}
@supports not (backdrop-filter: blur(8px)) {
  .card, .product-ad, .sponsored-page, .content {
    background: rgba(255,255,255,.12);
  }
}
footer { padding: 1rem 0 2rem; }

.product-ad, .sponsored-page {
  text-align: center;
  min-height: 72px;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
}
.product-ad a:hover, .sponsored-page a:hover {
  text-decoration: underline;
}
.product-ad:focus-within, .sponsored-page:focus-within { outline: var(--ring); outline-offset: 2px; }

/* Section: Content & typography */
.content { line-height: 1.5; font-size: clamp(14px, 1.6vw, 16px); color: var(--text); }
.content h2 { font-size: clamp(1.1rem, 2vw + .5rem, 1.6rem); margin: .25rem 0 0.5rem; }
.content p { margin: .5rem 0; color: var(--muted); }

/* Buttons & links */
.btn, .cta, a, button {
  font-family: inherit;
  font-size: 0.98rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .65rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn { background: var(--accent); color: white; border-color: rgba(255,45,146,.8); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(255,45,146,.45); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: var(--ring);
  outline-offset: 3px;
}
.cta {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.4);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-2); }

/* Utility: grid & cards */
.grid { display: grid; grid-gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { display: block; }

/* Lists */
ul { margin: 0; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Image frame helper: ensure aspect ratio when used standalone */
.image-frame { aspect-ratio: 16/9; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
  .surface, .card, .product-ad, .sponsored-page { background: #fff; border: 1px solid #000; }
}
