/* Base */
:root {
  --navy: #0b1220;
  --bg: #0b1a2b;
  --bg-2: #081226;
  --text: #eafff5;
  --muted: #a6ffbf;
  --accent: #39ff14;
  --accent-2: #2efc87;
  --card: rgba(8, 12, 40, 0.48);
  --card-border: rgba(57, 255, 114, 0.35);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --focus: 0 0 0 3px rgba(57,255,114,.65);
  --radius: 12px;
  --gap: 1rem;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  /* Layered background: neon dot pattern + subtle scanlines + gradient */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(57,255,114,.25) 1px, transparent 2px),
    radial-gradient(circle at 25px 25px, rgba(57,255,114,.12) 1px, transparent 2px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(5,8,28,.92), rgba(2,6,23,.88) 60%, rgba(5,8,28,.92) 100%);
  background-size: 40px 40px, 40px 40px, 100% 4px, 100% 100%;
  background-blend-mode: overlay, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  line-height: 1.5;
  font-size: clamp(14px, 1vw + 12px, 18px);
}
img { max-width: 100%; display: block; }

/* Layout helpers */
.container { width: 100%; max-width: clamp(720px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }

/* Glass panel utility (fallback if backdrop-filter not supported) */
.glass {
  background: rgba(8, 12, 40, 0.42);
  border: 1px solid rgba(57,255,114,0.32);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.fallback-glass {
  background: rgba(8, 12, 40, 0.72);
  border: 1px solid rgba(57,255,114,0.5);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.section { padding: 0.75rem; }

/* Typography scale for h1/h2/h3 and content hierarchy */
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 0.9rem + 4.5vw, 3.25rem); color: #eafff5; letter-spacing: .3px; }
h2 { font-size: clamp(1.35rem, 0.6rem + 2.4vw, 2.25rem); color: #eafff5; }
h3 { font-size: clamp(1.05rem, 0.4rem + 1.8vw, 1.5rem); color: #d8ffea; }
p { margin: 0 0 1rem; }

/* Header, main, article, aside, footer defaults (structure) */
header, main, footer, aside { padding: 0.75rem 0; }
header { padding: 1.25rem; }
main { padding: 1rem 0; }
article { padding: 0.25rem 0 1rem; }

/* Header styling (neon navy glass headline) */
header {
  display: block;
  margin: 1rem auto;
  width: min(100%, 1200px);
}
header .title {
  padding: 1rem;
}
header h1 { font-weight: 800; font-size: clamp(1.75rem, 1.2vw + 2.6rem, 3.5rem); margin-bottom: .25rem; color: #eafff5; text-shadow: 0 0 12px rgba(57,255,114,.6); }
header .meta { font-size: 0.92rem; color: var(--muted); }

/* Feature image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(57,255,114,.45);
  box-shadow: 0 6px 20px rgba(0,0,0,.25), inset 0 0 12px rgba(57,255,114,.25);
  display: block;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); }

/* Content panel (glass) */
.content { padding: 1rem; border-radius: var(--radius); background: rgba(8,12,40,.42); border: 1px solid rgba(57,255,114,.34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Cards and utility classes */
.card { background: rgba(8,12,40,.48); border: 1px solid rgba(57,255,114,.34); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tag { display:inline-block; padding:.25rem .55rem; border-radius:999px; font-size:.75rem; background: rgba(57,255,114,.25); border:1px solid rgba(57,255,114,.65); color: var(--text); }

/* Navigation (if present) */
nav { display:flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

/* Product ad / sponsored sections (footer) */
.product-ad, .sponsored-page { text-align: center; background: rgba(8,12,40,.42); border: 1px solid rgba(57,255,114,.34); border-radius: 12px; padding: .75rem; }

/* Link and button styles (CTA variants) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  font-weight: 600;
}
a:hover, button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
.btn { background: rgba(57,255,114,.92); color: #041020; border-color: rgba(0,0,0,.15); text-shadow: 0 1px 0 rgba(255,255,255,.15); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(57,255,114,.9); }
.btn:where(:not(:disabled)):active { transform: translateY(0); opacity: .95; }

/* Primary/secondary CTA emphasis (semantic classes) */
.cta { background: rgba(57,255,114,.75); border: 1px solid rgba(0,0,0,.1); }

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

/* Focus + link accessibility on inline text */
a:focus-visible { text-decoration: underline; }

/* Layout helpers for content grids */
.grid-tight { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }

/* Footer notes and copyright */
footer { padding: 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: stretch; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}