/* Base tokens */
:root {
  --bg: #0b0b12;
  --bg-2: #141320;
  --text: #eaeaf5;
  --muted: #a3a4b8;
  --accent: #ff00ff;
  --accent-2: #e600ff;
  --gunmetal: #2a2f38;
  --glass: rgba(20, 20, 28, 0.22);
  --glass-fallback: rgba(20, 20, 28, 0.60);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 22px rgba(0,0,0,.45);
  --focus: 0 0 0 3px rgba(238, 0, 255, 0.9);
  --bg-noise: rgba(255,0,255,0.04);
  --texture: rgba(0,0,0,0.08);
}

/* Section: Global resets & layout primitives */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Liberation Sans"; font-size: clamp(14px, 1vw + 12px, 16px); }
body {
  margin: 0;
  color: var(--text);
  min-height: 100dvh;
  background: 
    /* Layer 1: neo-magenta gradient casted over gunmetal */
    linear-gradient(135deg, rgba(12,12,22,.95) 0%, rgba(22,0,40,.95) 60%, rgba(12,12,22,.95) 100%),
    /* Layer 2: dark veil for glass contrast */
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.45)),
    /* Layer 3: subtle magenta scanlines / noise feel (pure CSS) */
    repeating-linear-gradient(to bottom, rgba(255,0,180,.04) 0 2px, transparent 2px 4px);
  background-blend-mode: normal, overlay, overlay;
  background-attachment: fixed;
  background-color: #0b0b12;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
* { outline: none; outline-color: transparent; }
:focus { outline: none; }

/* Section: Layout helpers */
.container { width: min(100%, clamp(320px, 90vw, 1200px)); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Section: Generic typography */
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: .25rem 0; color: var(--text); }
p { margin: .25rem 0 .75rem; color: var(--muted); }

/* Section: Header / Nav / Main / Article / Footer visuals */
header, nav, main, article, footer, aside { display: block; }
header { text-align: center; padding: 1rem 1rem 0.75rem; }
header h1 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2.4rem); margin: .25rem 0 .5rem; letter-spacing: .2px; }
nav { margin-top: .25rem; }

/* Section: Image frame (media) */
.image-frame {
  aspect-ratio: 16 / 9;
  -webkit-aspect-ratio: 16 / 9;
  width: min(100%, 760px);
  margin: 1rem auto;
  border-radius: 14px;
  padding: .25rem;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  overflow: hidden;
}
.image-frame img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
}

/* Section: Glass panels (content blocks) */
.card, .content, .tag { background: rgba(255,255,255,0.04); }
.card {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1rem;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(12,12,22,0.78); }
}
.content { padding: 0.75rem; }

/* Section: Utility chips / badges */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  background: rgba(255,0,180,.15);
}

/* Section: Links, buttons, CTAs */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
}
a { color: var(--accent-2); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Focus management (AA accessible) */
a:focus-visible, button:focus-visible { outline: 3px solid rgba(238, 0, 255, 0.95); outline-offset: 3px; }

/* Button variants */
.btn { display: inline-block; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,0,255,.22); font-weight: 600; }
.btn:hover { background: rgba(255,0,255,.37); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(238,0,255,.9); outline-offset: 2px; }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(238,0,255,.85);
}
.btn.outline:hover { background: rgba(238,0,255,.12); }

/* Section: Form base styles (if present) */
input, textarea, select, button { font-family: inherit; font-size: 1rem; padding: .5rem .75rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); color: var(--text); background: rgba(0,0,0,.25); }

/* Section: List defaults */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section: Layout helpers for responsive design */
@media (min-width: 720px) {
  .container { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { font-size: 15px; }
  * { transition: none !important; animation: none !important; }
}

/* Section: Print (basic) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .card { background: none; border: none; box-shadow: none; }
}