:root {
  --bg: #0a0f14;
  --bg-2: #111821;
  --surface: rgba(255, 255, 255, 0.14);
  --surface-2: rgba(255, 255, 255, 0.22);
  --text: #eafaf0;
  --muted: #a6b7b0;
  --accent: #39ff6b;
  --accent-2: #2aff87;
  --border: rgba(125, 210, 170, 0.45);
  --card: rgba(12, 18, 25, 0.22);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

/* Section: Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(135deg, rgba(3,8,20,.95), rgba(12,18,26,.95)),
    radial-gradient(circle at 15% 5%, rgba(57,255,120,.08), transparent 35%),
    radial-gradient(circle at 95% 95%, rgba(57,255,120,.05), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; }

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

header, main, footer, aside { display: block; }

/* Section: Glassy surfaces (fallback-ready) */
header, main, footer {
  background: rgba(8, 12, 20, 0.22);
  border: 1px solid rgba(120, 210, 170, 0.45);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer { background: rgba(8, 12, 20, 0.92); }
}
header { text-align: center; padding: 1.25rem; margin: 1rem auto; }

/* Section: Typography & helpers */
h1, h2, h3 { margin: 0.25em 0; font-weight: 700; letter-spacing: .2px; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
p { margin: .5em 0 1em; color: rgba(234, 248, 240, 0.95); }

/* Section: Content helpers */
.image-frame { width: 100%; max-width: 720px; margin: 1rem auto; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), inset 0 0 12px rgba(57,255,120,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content panel (generic) */
.content { padding: 0; }

/* Section: Lists & chips */
ul { padding-left: 1.25rem; margin: .75em 0; }
li { margin: .25em 0; }

/* Section: Cards & tags */
.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: .75rem; }

/* Section: Utility components */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(57,255,120,.15);
  color: #eafff2;
  border: 1px solid rgba(57,255,120,.5);
}

/* Section: Links & actions (a, button, .btn, .cta) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid #9dffbd; outline-offset: 4px; }

/* Solid button variant */
.btn {
  background: linear-gradient(135deg, rgba(57,255,126,.9), rgba(57,255,126,.75));
  border-color: rgba(57,255,126,.95);
  box-shadow: 0 6px 16px rgba(57,255,126,.25);
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(57,255,126,.98), rgba(57,255,126,.82)); }

/* Outline variant */
.btn--outline {
  background: transparent;
  border-color: rgba(57,255,126,.9);
  color: var(--text);
}
.btn--outline:hover { background: rgba(57,255,126,.08); }

/* CTA helpers (often used for hero actions) */
.cta { padding: .9rem 1.2rem; }

/* Section: Hero / article content styling */
main { padding: 1rem 0 2rem; }
article { display: block; text-align: left; }

/* Section: Footer layout & product ad blocks */
.product-ad, .sponsored-page { display: block; padding: .75rem; border-radius: 12px; text-align: center; margin: .5rem 0; background: rgba(2,6,23,.28); border: 1px solid rgba(120,210,170,.45); }

/* Section: Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  a, button, .btn, .cta { transition: none; }
}
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; padding: 0; border-radius: 0; }
  a { color: #000; text-decoration: underline; }
}

/* Section: Minor refinements for responsiveness */
header { margin: 1rem auto; max-width: clamp(680px, 90vw, 1100px); text-align: center; }
main { max-width: clamp(680px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }
footer { max-width: clamp(680px, 90vw, 1100px); margin: 1rem auto; padding: 0.75rem 1rem; display: grid; gap: .75rem; }

/* Section: Focus visibility enhancements for interactive elements inside content */
:focus-visible { outline: 2px solid #9dffbd; outline-offset: 4px; border-radius: 6px; }

/* Section: Structural selectors kept explicit as requested */
html, body, header, nav, main, article, footer, aside { }

/* Section: Image frame ensuring contrast on glow */
.image-frame { border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 0 12px rgba(57,255,120,.25); }

/* Section: Utility typography helpers (optional, compact) */
.meta { color: var(--muted); font-size: clamp(.85rem, 1.2vw, 1rem); margin-top: .25rem; }

/* Section: Naming alignment with selectors to ensure coverage */
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* End of stylesheet */