/* Base tokens */
:root{
  --violet-900: #120f2b;
  --violet-800: #2a1740;
  --khaki-400: #b9a66a;
  --khaki-500: #d6c58a;
  --bg: #130f2b;
  --bg-2: #1f0f37;
  --text: #f8f8ff;
  --muted: #cbd5e1;
  --accent: #b39cff;
  --accent-2: #d0c98a;
  --card: rgba(255,255,255,.12);
  --card-strong: rgba(255,255,255,.18);
  --border: rgba(255,255,255,.28);
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --focus: 2px solid #fff;
  --radius: 12px;
}

html, body { height: 100%; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(18,7,40,.95) 0%, rgba(44,10,70,.95) 50%, rgba(15,12,40,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(170, 140, 210, .15) 0 40%, transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, normal, overlay;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html, body { background-attachment: scroll; }
}

/* Layout & typography basics */
header, nav, main, article, footer, aside {
  display: block;
}

header {
  padding: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

header h1 {
  margin: .25rem 0 .75rem;
  font-size: clamp(1.4rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.18);
  font-size: .92rem;
}
nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Main content area */
main {
  padding: 1rem;
  display: grid;
  place-items: center;
}

article {
  width: 100%;
  max-width: clamp(64rem, 90vw, 92rem);
  padding: 0;
}

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

/* Glass panel / content container (fallback if backdrop-filter unsupported) */
.content {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(0,0,0,.22); }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}
.card + .card { margin-top: .5rem; }

.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.18);
  color: var(--text);
}

/* Product ad / footer sections */
footer {
  padding: 1rem;
  display: grid;
  gap: .75rem;
  justify-items: center;
  grid-template-columns: 1fr;
}
.product-ad, .sponsored-page {
  min-width: 0;
  padding: .6rem 0;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  transition: transform .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; transform: translateY(-1px); }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Links & buttons across the page */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.25rem;
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.55);
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: rgba(140, 90, 210, .95);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(140, 90, 210, 1); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.cta { /* alias for primary action styling if used on anchors */ }

/* Utility defaults for lists */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Print optimization */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: inherit; }
}

/* Accessibility tweaks */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Animation */
@media (prefers-reduced-motion: no-preference) {
  .image-frame, .card, .content { transform: translateZ(0); will-change: transform, opacity; opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.main-appear { animation: fadeInUp .6s ease-out both; }

/* Section headers (sectioning only) */
 /* Section headers */