/* Base / Theme Variables */
:root {
  --bg: #0b071a;
  --bg-2: #1a1230;
  --text: #f5eaff;
  --muted: #c6b8d9;
  --accent: #ff3fbf;
  --accent-2: #b68cff;
  --card: rgba(255,255,255,0.08);
  --card-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 14px;
}

/* Section: Reset / Global */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(14px, 1.2vw + 6px, 18px);
  line-height: 1.5;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(180,110,255,0.22) 0%, rgba(255,60,180,0.14) 60%, rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(12,6,20,0.95), rgba(12,6,20,0.95)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, normal, overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible, a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Section: Layout Helpers */
.container {
  width: 100%;
  max-width: clamp(520px, 90vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  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,0.12); }
}
.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #140316;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
}
ul, li { margin: 0; padding: 0; list-style: none; }

/* Section: Glass Panels & Image Frame */
.image-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.content { padding: 0.75rem 0; color: var(--text); }

/* Section: Hero / Page Structure */
header, main, footer, aside, nav, article { display: block; }

/* Header / Hero */
header {
  padding: 2rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 1.4rem + 2.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Main Content */
main { padding: 1rem 0 0; }
article { display: grid; place-items: center; padding: 1rem 0 0; }
footer {
  padding: 1.5rem 1rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.product-ad, .sponsored-page { width: min(100%, 680px); }

/* Glass panels (sections) in footer */
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .15s ease, background .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover { background: rgba(255,255,255,0.14); text-decoration: underline; text-underline-offset: 2px; }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Buttons (global) */
button, a.btn, a.cta {
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  display: inline-block;
  text-align: center;
}
.btn, .cta { text-decoration: none; color: #0b0b12; background: #fff; }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

/* Solid and Outline Variants */
.btn { background: linear-gradient(135deg, rgba(255,63,191,0.95), rgba(191,0,255,0.85)); color: white; border: 1px solid rgba(255,255,255,0.6); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.6); }
a.btn { text-decoration: none; }

/* Focus & accessibility for interactive elements */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Utility: .container, .grid, .card, .tag already defined above; ensure headline/content contrast */
h2, h3, h4 { color: var(--text); }

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}
  
/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}