:root {
  --bg: #0a0a12;
  --bg-2: #1a1020;
  --text: #eae2ff;
  --muted: #c9bde6;
  --accent: #ff5bd9;
  --accent-2: #f7f28b;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0, rgba(255,235,140,.08), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,0,180,.08), transparent 40%),
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.15)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, normal;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header, main, footer, aside, article {
  display: block;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(640px, 92vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card {
    background: rgba(255,255,255,.14);
  }
}
.tag {
  display: inline-block;
  font-size: 12px;
  padding: .25em .6em;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #0b0b0f;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* Typography & surface */
h1, h2, h3 {
  margin: 0.25rem 0;
  line-height: 1.15;
}
h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: .2px;
}
h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
p { margin: .5rem 0; color: var(--text); }

/* Glassy content blocks */
.content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  line-height: 1.6;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(8px)) {
  .content { background: rgba(255,255,255,.14); }
}

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

/* Elements styling */
a, button, .btn, .cta {
  color: #0b0b0f;
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}
nav a {
  display: inline-block;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}
nav a:hover { background: rgba(255,255,255,.12); }

/* Buttons (variants) */
.btn {
  display: inline-block;
  padding: .6em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
  font-weight: 700;
  color: #0b0b0f;
  transition: transform .15s ease, background .2s ease;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent-2);
  color: #0b0b0f;
  border-color: rgba(0,0,0,.1);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Layout sections */
header {
  padding: 1rem;
  text-align: center;
  display: grid;
  gap: .5rem;
  align-items: center;
  justify-items: center;
}
header h1 { margin-bottom: .25rem; }

/* Page sections */
main { padding: 1rem 0; display: grid; place-items: center; }
article { width: 100%; max-width: clamp(640px, 88vw, 900px); padding: 0.5rem; }

/* Footer / ads */
footer {
  padding: 1rem 0 2rem;
  display: grid;
  gap: .6rem;
  justify-items: center;
  text-align: center;
}
.product-ad, .sponsored-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Accessibility helpers */
ul, li { margin: 0.5rem 0; padding: 0; }
ul { padding-left: 1.25rem; }

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