:root{
  --bg: #0a0a14;
  --bg-2: #141022;
  --text: #e8e6ff;
  --muted: #b8a8c3;
  --accent: #ff2d95;
  --accent-2: #7c5cff;
  --glass-bg: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.30);
  --glass-border-strong: rgba(255,255,255,0.48);
  --ring: 0 0 0 3px rgba(124,92,255,.35);
}
html, body { height: 100%; }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background: 
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #000 100%),
    repeating-linear-gradient(to bottom, rgba(255,0,150,.05) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0%, rgba(124,92,255,.25), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255,0,120,.15), transparent 40%);
  background-blend-mode: normal, overlay, screen, screen;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1rem; }
.card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; }

/* Glass panels with backdrop blur (fallback for older browsers) */
header, main, footer, .glass { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 14px; padding: 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, .glass { background: rgba(255,255,255,0.18); border-color: var(--glass-border-strong); }
}

header { text-align: center; padding: 1.25rem 1rem; margin: 0.75rem auto; }
header h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem); margin: .25rem 0 .25rem; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(.8rem, .9vw + .4rem, 1rem); }

nav { margin-top: .5rem; }

nav a { color: var(--text); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; display: inline-block; }
nav a:hover { text-decoration: underline; }

main { padding: 1rem 0; }
article { max-width: 76ch; margin: 0 auto; padding: 0; }

/* Hero image frame */
.image-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 14px rgba(124,92,255,.25); margin: 1rem auto; display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography rhythm */
h1, h2, h3 { line-height: 1.15; margin: .6rem 0; }
p { margin: .6rem 0; color: color-m-mute; }

/* Content text scale for readability */
.content { font-size: clamp(1rem, 0.9vw + .8rem, 1.125rem); line-height: 1.6; color: var(--text); }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0; color: var(--muted); }
li { margin: .25rem 0; }

/* Utility elements */
.tag { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; background: rgba(124,92,255,.25); color: #fff; border: 1px solid rgba(255,255,255,.4); }

/* CTAs and links */
a, button, .btn, .cta { color: #fff; text-decoration: none; outline: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
a, button, .btn, .cta { transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease; }

/* Primary button style */
.btn { display: inline-block; padding: .75rem 1.05rem; border-radius: 999px; font-weight: 700; border: 1px solid rgba(255,255,255,.25); background: var(--accent); color: #fff; cursor: pointer; }
.btn:hover { transform: translateY(-1px); background: #e61d85; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: var(--ring); outline-offset: 2px; }

/* Outline button variant */
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.45); color: var(--text); }
.btn-outline:hover { background: rgba(255,255,255,.08); }

/* Call-to-action variant (often used for hero) */
.cta { background: var(--accent); border: 0; padding: .9rem 1.25rem; border-radius: 999px; font-weight: 700; }

/* Image and content wrappers */
.content { padding: .75rem; }

/* Product ad / footer pills */
.product-ad, .sponsored-page { display: inline-block; margin: .25rem; padding: .6rem .9rem; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); }
.product-ad a, .sponsored-page a { color: #fff; display: inline-flex; align-items: center; gap: .5rem; }

/* Footer layout */
footer { margin: 1rem auto; padding: 1rem; text-align: center; }

/* Print */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}

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