/* Section: Base & Palette */
:root {
  --bg: #0a0028;
  --bg-2: #24005b;
  --surface: rgba(124, 58, 237, 0.20);       /* glass tint (purple) */
  --surface-2: rgba(20, 230, 110, 0.14);     /* lime hint on glass */
  --text: #eaf7ff;
  --muted: #a6a6a6;
  --accent: #9aff4a;                          /* lime neon */
  --accent-2: #b36aff;                        /* purple/lavender */
  --card-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --maxw: clamp(28rem, 8vw + 40rem, 1100px);
  --focus: 2px solid color-mash(var(--accent) rgba(0,0,0,.0));
  --focus-ring: 2px solid color-mix(in oklab, var(--accent) 60%, white);
}

/* Section: Reset & System Font */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-color: #000;
  /* Layered background: purple diagonal lines + gradient + subtle scanlines/noise */
  background-image:
    linear-gradient(135deg, rgba(124,58,237,0.28) 0%, rgba(106,0,255,0.28) 60%, rgba(0,0,0,0.28) 100%),
    repeating-linear-gradient(135deg, rgba(170, 0, 255, 0.22) 0 6px, rgba(0,0,0,0) 6px 12px),
    linear-gradient(to bottom, rgba(0,0,0,.04), rgba(0,0,0,.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: normal, overlay, overlay;
  background-attachment: fixed, fixed, scroll;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Layout Helpers (utilities) */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
  gap: 1.25rem;
}
.card {
  background: rgba(255,255,255,0.08);
  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);
}
.image-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04);
}
.tag {
  display:inline-block;
  padding: .25em .55em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(154, 255, 74, 0.25);
  color: var(--text);
  border: 1px solid rgba(154, 255, 74, 0.55);
}
.content {
  padding: 0.75rem 0 0.25rem;
  color: var(--text);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
  line-height: 1.6;
}
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section: Typography & Hero */
header {
  padding: 2rem 0;
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  letter-spacing: .5px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  margin: 0;
  font-size: clamp(0.8rem, 0.8vw, 0.95rem);
  color: var(--muted);
}
.header-glass {
  display: inline-block;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
main { padding: 1rem 0 2rem; }

/* Section: Links & Buttons */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* Focus treatment for accessibility */
:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 70%, white);
  outline-offset: 2px;
  border-radius: 6px;
}
button, .btn, .cta {
  font: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: linear-gradient(135deg, rgba(0,0,0,.25), rgba(255,255,255,.08));
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(106,0,255,.75));
  border: 1px solid rgba(255,255,255,.55);
}
.btn.outline {
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(124,58,237,.75);
  color: var(--text);
}
.cta { /* alias for link-styled action */ }

/* Section: Page Structure Styling (selectors required) */
html, body, header, nav, main, article, footer, aside { /* generic baseline for layout stability */ }
.image-frame, .image-frame img { }

/* Section: Content Regions */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  border-radius: 12px;
  text-align: center;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { text-decoration: none; color: var(--text); }

/* Section: Layout Wiring (footer & article interactions) */
footer {
  padding: 1.5rem 0 2rem;
  color: var(--text);
  background: rgba(4,6,15,0.25);
  border-top: 1px solid rgba(255,255,255,.15);
  border-radius: 0 0 14px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
footer .grid { padding-top: .25rem; }

/* Ensure responsive typography for content density */
@media (min-width: 720px) {
  .content { font-size: 1.125rem; }
}
@media (min-width: 960px) {
  header { padding: 2.5rem 0; }
  main { padding: 2rem 0 3rem; }
  .container { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; transform: none; }
}
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; color: #000; }
}
