/* Base tokens */
:root {
  --bg: #0a0a1a;
  --bg-2: #120a3d;
  --text: #e8eaff;
  --muted: #b6b7d0;
  --accent: #5b8cff;
  --accent-2: #7bd0ff;
  --card: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.25);
  --shadow: 0 6px 20px rgba(0,0,0,.28);
  --radius: 14px;
  --focus: 3px solid rgba(123,208,255,.95);
  --focus-offset: 2px;
}

/* Global sane defaults */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  /* Layered: violet-blue gradient + subtle scanlines */
  background:
    linear-gradient(135deg, rgba(60,0,120,.40) 0%, rgba(10,18,60,.85) 60%, rgba(20,0,60,.92) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-color: var(--bg);
  background-blend-mode: overlay, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout primitives */
.container { width: min(100%, clamp(320px, 86vw, 1100px)); margin-inline: auto; padding: 0 1rem; }

/* Glass panel helper (fallback if backdrop-filter unsupported) */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.18); }
}

header { text-align: center; padding: 1.25rem 1rem; position: relative; }
header h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.8rem); line-height: 1.15; margin: .25rem 0 0.75rem; font-weight: 800; letter-spacing: .2px; color: var(--text); }
header nav { margin-top: .25rem; }
header nav a { color: var(--accent-2); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; }
header nav a:hover, header nav a:focus-visible { text-decoration: underline; outline: none; color: #dff4ff; }

/* Main content */
main { padding: 1rem 0 2rem; }
article { display: block; }

/* Image frame (gallery hero) */
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.25); background: #111; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Text content panel (for potential .content usage) */
.content { color: var(--muted); }

/* Links and controls */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
}
a { transition: color .15s ease; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; color: #dff0ff; }

/* Button variants and focus management (WCAG AA-ish focus) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(91,140,255,.85);
  background: linear-gradient(to bottom right, rgba(83,118,255,.95), rgba(20,72,255,.95));
  color: #fff; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn.secondary {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #e9f4ff;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(0,0,0,.25); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(123,208,255,.95); outline-offset: var(--focus-offset); }

/* Landed CTAs (classed as .cta if used) */
.cta { display:inline-flex; gap:.5rem; align-items: center; }

/* Cards and utility grids */
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem; }

/* Badges / tags */
.tag { display:inline-block; padding:.15rem .5rem; border-radius:999px; font-size:.75rem; color:#dfe8ff; background: rgba(91,140,255,.25); border:1px solid rgba(91,140,255,.55); }

/* Footer / product ads (glass panels) */
footer { padding: 1rem; text-align: center; }
footer .product-ad,
footer .sponsored-page {
  display: inline-block; margin: .25rem; padding: .75rem 1rem;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: var(--text);
  text-align: center;
  min-width: 180px;
}
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Print-friendly (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .glass { background: #fff; border-color: #ccc; }
}

/* Responsiveness & helpers */
@media (min-width: 820px) {
  header { padding: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section headers for organization (no side effects) */
/* Section: Base visuals */

/* Section: Layout helpers */

/* Section: Components (buttons, cards, links) */

/* Section: Print & accessibility refinements */