/* Base & Palette */
:root {
  --bg: #0a0f14;
  --bg-2: #0b1320;
  --panel: rgba(124, 255, 0, 0.14);     /* chartreuse glass tint */
  --panel-2: rgba(0, 229, 255, 0.28);   /* neon blue highlight */
  --text: #eafff5;
  --muted: #b7ffd0;
  --accent: #00e5ff;                     /* neon blue */
  --accent-2: #7fff00;                   /* chartreuse glow */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 18px rgba(0,0,0,.32);
  --border: rgba(255,255,255,.28);
  --focus: 2px solid rgba(0,229,255,.95);
  --gap: 1rem;
}

/* Layout foundations */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(127, 255, 0, .14) 0%, rgba(0, 180, 255, .14) 60%, rgba(0,0,0,.25) 100%),
    radial-gradient(circle at 20% -10%, rgba(124,255,0,.08) 0 40%, transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  overflow-x: hidden;
}

/* Glass panels (broad surfaces) */
header, main, footer {
  background: rgba(10, 14, 18, 0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem auto;
  max-width: min(1100px, 92vw);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header { padding: 1.25rem; display: block; }
main { padding: 0; }
footer { padding: 1rem; display: block; }

/* Section internals to maintain visual hierarchy */
header h1, main h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.25rem;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
}
nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  color: var(--accent-2);
}
.featured-image {
  display: grid;
  gap: .75rem;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #111;
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

article {
  background: rgba(8, 12, 18, 0.22);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  margin-top: .5rem;
}
article h2 { font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin: .75rem 0 .5rem; color: var(--text); }
article p { color: var(--text); opacity: .94; line-height: 1.55; }
article ul, article ol { padding-inline-start: 1.25rem; margin: .5rem 0 1rem; }
article li { margin: .25rem 0; }

/* Content helper (optional but provided) */
.content { padding: 0; margin: 0; }

/* Product ad / sponsored blocks in footer */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(2, 6, 12, 0.22);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; width: 100%; }
.product-ad:hover, .sponsored-page:hover { background: rgba(2,6,12,.32); }
.product-ad p, .sponsored-page p { margin: 0; }

/* Typography & UI helpers */
h2 { color: var(--text); }
p { margin: .5rem 0 1rem; }
ul, li { color: var(--text); }
ul { padding-left: 1.25rem; margin: .25rem 0; }
li { line-height: 1.55; }

/* Interactive controls (buttons/links) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  color: #031018;
  text-decoration: none;
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
  color: #eafff5;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); outline: none; }
button, .btn, .cta {
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255,255,255,.6);
  color: #eafff5;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, .9);
  color: #eafff5;
}
.btn--solid {
  background: rgba(0, 229, 255, .9);
  border: none;
  color: #021018;
}
button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
}
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Grid & cards helpers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1120px); padding: 0 1rem; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.card {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-sm);
  padding: .75rem;
  color: var(--text);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .25em .6em;
  border-radius: 999px;
  background: rgba(0, 230, 255, .15);
  border: 1px solid rgba(0, 230, 255, .4);
  color: var(--text);
}

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

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: transparent; border: none; box-shadow: none; border-radius: 0; padding: 0; }
  a { text-decoration: underline; }
}
