/* Base & Palette */
:root{
  --bg: #1a0f14;
  --bg-2: #2a0f25;
  --text: #f6f6fb;
  --muted: #c8c0d9;
  --acc: #7d00ff;
  --acc-2: #b600ff;
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.16);
  --border: rgba(255,255,255,.28);
  --shadow: 0 6px 20px rgba(0,0,0,.35);
}

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

html, body, header, nav, main, article, footer, aside{ height: auto; }

/* Layered, futuristic background (gradient + scanlines + subtle glow) */
html, body {
  height: 100%;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  line-height: 1.4;
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(120,0,60,0.85) 0%, rgba(20,0,40,0.85) 60%, rgba(10,0,20,0.85) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px),
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.08), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(0,255,180,.08), transparent 40%);
  background-blend-mode: overlay, overlay, screen, screen;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.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: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .2rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.content { padding: .75rem 0; color: var(--text); }

/* Typography scale (fluid) */
h1, h2, h3 {
  margin: .25rem 0 0.5rem;
  font-weight: 700;
  line-height: 1.12;
}
h1 { font-size: clamp(2rem, 2.5rem + 4vw, 4.5rem); letter-spacing: .5px; color: #fff; }
h2 { font-size: clamp(1.25rem, 1.2rem + 1.5vw, 2.75rem); color: #fff; }
h3 { font-size: clamp(1rem, 0.95rem + 1vw, 1.5rem); color: #fff; }

/* Section-level glass panels (fallback if backdrop-filter not supported) */
header, main, footer, article, .card, .product-ad {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
@supports not (backdrop-filter: blur(1px)) {
  header, main, footer, article, .card, .product-ad {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.4);
  }
}
header { padding: 1rem; margin: 1rem auto; }
main { padding: 1rem; }
footer { padding: 1rem; margin: 1rem auto; display: grid; gap: .75rem; }
.product-ad { padding: .75rem; }

/* Image framing */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .25s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Content styling */
main > article { padding: 1rem; }

/* Links, buttons, CTAs (interactive) */
a {
  color: var(--acc);
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
button, .btn, .cta {
  font: inherit;
  color: #fff;
  background: rgba(0,0,0,0);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: .6rem 1rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn {
  background: linear-gradient(135deg, #7a0035 0%, #940055 60%, #b400ff 100%);
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,.6);
}
.cta {
  display: inline-block;
  background: linear-gradient(135deg, rgba(125,0,255,0.95), rgba(180,0,255,0.95) 70%);
  border: 1px solid rgba(255,255,255,.7);
  padding: .75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
}
.cta:hover { filter: brightness(1.05); }

/* Lists and other typography */
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Utility visuals */
.meta {
  font-size: .9rem;
  color: var(--muted);
  margin-top: .25rem;
}
.kicker { display: inline-block; padding: .25rem .6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); font-size: .75rem; color: #fff; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  main { padding: 0; }
  article { background: transparent; border: none; padding: 0; }
}
  
/* Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
  
/* Layout specifics for this page structure */
header > h1 { margin-bottom: .25rem; }
nav a { margin-inline: .5rem; padding: .25rem .5rem; border-radius: 6px; }
nav a:hover { text-decoration: underline; }

/* Section helpers to emphasize hero contrast */
.featured-image { margin: .75rem 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: var(--shadow); }
@media (min-width: 760px){
  main { padding-top: 0; padding-bottom: 0; }
}
