/* Section: Base */
:root {
  --bg: #0b0f14;          /* gunmetal base */
  --bg-2: #141a21;        /* gunmetal variant */
  --text: #e9f3ff;         /* high-contrast text on glass */
  --muted: #a9b6d5;        /* muted text */
  --accent: #d6ff00;       /* laser lemon neon */
  --accent-2: #9bff2a;      /* secondary neon */
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --radius: 14px;
  --focus: 2px solid var(--accent-2);
}
html, body, header, nav, main, article, aside, section, footer {
  box-sizing: border-box;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); }

/* Section: Layout & Background (mobile-first) */
html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
  /* Layered subtle glow over gradient (no external assets) */
}
body {
  min-height: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Pure CSS scanlines overlay (soft) */
  background-image: repeating-linear-gradient(to bottom,
    rgba(255,255,255,.04) 0 1px,
    rgba(255,255,255,0) 1px 2px);
  mix-blend-mode: overlay;
  opacity: .65;
}
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .container { padding-inline: 1.25rem; }
}
@media (min-width: 900px) {
  .container { padding-inline: 1.5rem; }
}
.main-wrap { display: block; padding: 1.25rem 0; }

/* Section: Typography (responsive) */
h1, h2, h3, h4 { margin: 0 0 .4rem; font-weight: 700; letter-spacing: .2px; }
h1 {
  font-size: clamp(1.6rem, 3vw + 1rem, 2.6rem);
  line-height: 1.15;
  text-align: center;
  margin: 0.75rem 0 0.5rem;
  color: #eafff6;
  text-shadow: 0 0 8px rgba(214,255,0,.9);
}
p { color: var(--muted); margin: 0.25rem 0 0.75rem; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* Section: Structural Elements (accessible defaults) */
header, main, footer, aside, nav, article {
  display: block;
}
header, footer {
  padding: 1rem;
}
header { text-align: center; padding-top: 1.25rem; padding-bottom: .75rem; }
footer { padding-top: .75rem; padding-bottom: 1.25rem; }

/* Section: Glass panels (frosted glass) */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  color: var(--text);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }
}
.content { padding: 0.5rem 0; }

/* Section: Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Section: Navigation/Controls helpers (buttons & links) */
button, .btn, .cta {
  font: inherit;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25);
  color: #f7fff0;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn { background: linear-gradient(135deg, rgba(214,255,0,.9), rgba(214,255,0,.6)); border: 1px solid rgba(230,255,0,.9); color: #0a0f00; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .9; }

.btn--outline {
  background: transparent;
  border: 1px solid rgba(214,255,0,.95);
  color: var(--text);
}
.cta { padding: .65rem 1.1rem; }

/* Focus visibility for accessibility */
:focus-visible {
  outline: none;
  outline: none;
  box-shadow: 0 0 0 3px rgba(157, 255, 0, .75);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(157,255,0,.75);
  outline-offset: 2px;
}

/* Section: Utilities (grid, container, card, tag) */
.container { max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .95rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.card h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #eafff0;
}
ul, li { margin: 0; padding: 0; list-style: none; }
li + li { margin-top: .35rem; }

/* Section: Print (basic readability) */
@media print {
  html, body { background: #fff; color: #000; }
  .glass { background: #fff; border: 1px solid #aaa; }
  a, button { color: #000; text-decoration: underline; }
}
 
/* Section: Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}