:root {
  --bg: #0b0b14;
  --bg-2: #0e0e1a;
  --text: #e9e5ff;
  --muted: #a9a6c9;
  --accent: #ff1e9f;
  --accent-2: #f7ff58;
  --container: clamp(320px, 92vw, 1100px);
}

html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans";
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,0,170,.25) 0%, rgba(255,255,0,.08) 60%, rgba(0,0,0,.0) 100%);
  mix-blend-mode: screen;
  opacity: 0.95;
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  background-size: 100% 4px, 4px 100%;
  opacity: .08;
  pointer-events: none;
  z-index: -1;
}

header, main, footer {
  width: min(100%, var(--container));
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
header { display: flex; flex-direction: column; gap: .5rem; }
header h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--text); letter-spacing: .2px; }
nav { align-self: flex-start; }
nav a { color: var(--accent-2); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); display: inline-block; }
nav a:hover { text-decoration: underline; }

main { padding: 0; }

article { padding: 0; }

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 0 0 14px rgba(255,0,170,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content { padding: 1rem; }

.product-ad {
  display: block;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.product-ad a { color: var(--text); text-decoration: none; display: block; padding: .25rem; }
.product-ad a:hover { text-decoration: underline; }

.sponsored-page { margin-top: .5rem; }

footer { display: block; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

.grid { display: grid; gap: 1rem; }

.card {
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .25em .5em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.15);
  color: var(--text);
}

a, button, .btn, .cta {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
a:hover { text-decoration: underline; }

/* Buttons variants (for potential usage) */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(to right, rgba(255,30,159,.95), rgba(255,255,84,.95));
  color: #000;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.btn.secondary {
  background: rgba(255,255,255,.12);
  color: var(--text);
}
@supports not (backdrop-filter: blur(8px)) {
  header, main, footer {
    background: rgba(0,0,0,.5);
  }
  .image-frame {
    background: rgba(0,0,0,.75);
  }
}

/* Accessibility and motion preferences */
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
}