/* Base */

:root {
  --bg: #04060e;
  --bg-2: #0a0b14;
  --text: #e7fff0;
  --muted: #a6ffd2;
  --accent: #00ff87;       /* neon green */
  --accent-2: #ff2d97;     /* hot pink */
  --card: rgba(255,255,255,0.10);
  --card-strong: rgba(255,255,255,0.20);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 3px solid rgba(0,255,135,.9);
  --focus-color: rgba(0,255,135,.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body, header, nav, main, article, aside, footer {
  height: auto;
  min-height: 100%;
}

html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 15%, rgba(255,0,140,.22) 0 15%, transparent 40%),
    radial-gradient(circle at 75% 35%, rgba(0,255,135,.20) 0 20%, transparent 40%),
    linear-gradient(135deg, rgba(4,6,14,.95), rgba(0,0,0,.85) 60%),
    linear-gradient(#04060e, #050910 60%, #000);
  background-attachment: fixed;
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 6px 6px, 6px 6px;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.25;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 25% 0, rgba(255,0,140,.08), transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(0,255,135,.08), transparent 40%);
  mix-blend-mode: overlay;
  opacity: 0.8;
  pointer-events: none;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: clamp(28rem, 72vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .3s ease, opacity .3s ease;
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
}
.card:hover { transform: translateY(-2px); }
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  color: #041b14;
  background: linear-gradient(135deg, #7affbf, #00ff87);
  border: 1px solid rgba(0,0,0,.15);
}

/* Glass panels (with fallback) */

header, main, article, aside, footer {
  background: rgba(10, 12, 24, 0.28);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, article, aside, footer {
    background: rgba(10,12,24,0.62);
    border-color: rgba(255,255,255,.66);
  }
}

/* Typography (fluid) */

h1, h2, h3, h4 {
  margin: 0 0 .5rem;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  color: var(--accent-2);
  letter-spacing: .5px;
}
h2 {
  font-size: clamp(1.25rem, 2.5vw + .6rem, 2.2rem);
  color: var(--accent);
}
p {
  font-size: clamp(1rem, 1.2vw + .6rem, 1.25rem);
  color: #eafff0;
  margin: .5rem 0;
}
blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
ul {
  margin: .5rem 0 1rem 1.25rem;
  padding: 0;
}
li { margin: .25rem 0; }

/* Hero / header specifics */

header {
  text-align: center;
  padding: 1.75rem 1rem;
  margin-block: 0;
}
header h1 {
  margin-bottom: .25rem;
}
header .meta {
  font-family: ui-sans-serif, system-ui;
  font-size: .9rem;
  color: #b8ffbf;
  opacity: .95;
}
nav {
  margin-top: .75rem;
}
nav a {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: 999px;
  color: #001b11;
  background: rgba(0,255,135,.9);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  color: #021b11;
}
@media (min-width: 720px) {
  header { padding: 2.5rem 1rem; }
}

/* Featured image frame (and fallback for non-frame usage) */

.image-frame {
  width: min(100%, 720px);
  margin: .75rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #000;
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
  filter: saturate(1.05);
}
.featured-image {
  display:flex;
  justify-content:center;
  align-items:center;
  padding: .25rem;
}
.featured-image img {
  width: 100%;
  height: auto;
  max-width: 720px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* Content layout within main/article */

.content { padding: .25rem 0 1rem; }

/* Links & buttons */

a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover, a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
button, .btn, .cta {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: .6rem .95rem;
  display: inline-block;
  text-align: center;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn {
  background: var(--accent);
  color: #041b11;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.15);
}
.btn.secondary, .cta {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); background: #0be68a; }
.btn:active { transform: translateY(0); }
.btn.secondary:hover, .cta:hover { background: rgba(0,255,135,.12); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Utility / misc */

ul, li { list-style: disc; }
.container, .grid, .card, .tag { /* kept lean; specifics above */ }

/* Footer / product ad blocks */

footer {
  padding: 1rem;
  display: grid;
  gap: .75rem;
  place-items: center;
}
.product-ad, .sponsored-page {
  width: min(100%, 720px);
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .6rem .8rem;
  color: #fff;
  text-decoration: none;
}
.product-ad {
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
}
.sponsored-page {
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
}
.product-ad p, .sponsored-page p { margin: 0; font-weight: 700; }

/* Print styles (basic readability) */

@media print {
  body { background: #fff; color: #000; }
  header, main, article, aside, footer { background: transparent; border: none; padding: 0.5rem; }
  a { text-decoration: underline; color: #00f; }
}
