/* Section: Base */
:root{
  --bg: #0a0033;
  --bg-2: #14002a;
  --surface: rgba(12, 0, 40, 0.28);
  --surface-2: rgba(12, 0, 40, 0.18);
  --text: #f6f0ff;
  --muted: #c8b6ff;
  --accent: #8a5dff;   /* neon purple */
  --accent-2: #d69b34;  /* bronze */
  --bronze: #cd7f32;
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 2px solid #ffffff;
  --focus-offset: 3px;
}

html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
  color: var(--text);
  background-clip: padding-box;
}

html, body {
  height: 100%;
}

/* Section: Layout & Background (mobile-first) */
html, body {
  margin: 0;
  padding: 0;
  font-family: ui-system, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif;
  font-synthesis: none;
  line-height: 1.55;
  color-scheme: dark;
  background-color: #000;
  /* Layered background: gradient + subtle scanline + soft glow */
  background-image:
    radial-gradient(circle at 20% -10%, rgba(138,93,255,.28), transparent 40%),
    linear-gradient(135deg, rgba(10,0,40,.92) 0%, rgba(14,0,54,.92) 50%, rgba(4,0,20,.96) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 60% 0%, rgba(218,155,52,.08), transparent 40%);
  background-blend-mode: screen, normal, overlay, normal;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}

/* Section: Glass panels (fallback friendly) */
.glass {
  background: rgba(10, 0, 40, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(10, 0, 40, 0.38);
  }
}

/* Section: Typography & components (responsive) */
h1, h2, h3, h4, p { margin: 0 0 0.5rem; }
p { color: #e9e6ff; }

h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1.05;
  letter-spacing: .2px;
}
h2 { font-size: clamp(1.4rem, 2.5vw + 0.6rem, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw + 0.4rem, 1.5rem); }

.meta {
  font-size: clamp(.8rem, 2vw, 1rem);
  color: var(--muted);
  margin-top: .25rem;
}

a { color: var(--accent); text-decoration: none; outline: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(138,93,255,1) 0%, rgba(125,60,255,.9) 60%, rgba(120, 40, 210, 1) 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
  transition: transform .15s ease, box-shadow .2s ease;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
button:active, .btn:active, .cta:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn { display: inline-block; padding: .8rem 1.25rem; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(213, 156, 44, .8);
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}
.btn-outline:hover { background: rgba(213,156,44,.15); }

.cta { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1rem; }

/* Section: Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  overflow: hidden;
  background: rgba(0,0,0,.25);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Section: Utilities & layout helpers */
.container.grid { padding: 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  line-height: 1;
}

/* Section: Lists & accents */
ul, li {
  margin: 0 0 0.75rem 1.25rem;
  padding: 0;
}
ol { padding-left: 1.25rem; }

/* Section: Content container for main articles */
.content { padding: .25rem 0; }

/* Sections: Page structure references */
header, nav, main, article, footer, aside {
  margin: 0;
  padding: 0;
}
header { padding: 1.25rem 0; text-align: center; }
nav { margin-top: .25rem; }

main { padding: 1rem 0 2rem; }
footer { padding: 1rem 0; margin-top: 1rem; }

/* Section: Specific page element targets */
.product-ad {
  padding: .75rem;
  text-align: center;
}
.product-ad a { display: inline-block; width: 100%; text-align: center; padding: .75rem 0; color: #fff; text-decoration: none; }
.product-ad p { margin: 0; font-weight: 700; }

/* Section: Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .glass { background: #fff; border: 1px solid #ddd; box-shadow: none; }
}

/* Section: Responsiveness & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Structural helpers (semantic targets) */
main article { margin: 0 auto; max-width: clamp(320px, 90vw, 860px); padding: 0.5rem 0; }
main article > .featured-image { margin: .75rem 0 1rem; }
@media (min-width: 720px) {
  header { padding: 2rem 0; }
  main { padding: 2rem 0; }
}
