:root {
  --bg: #0b0f14;
  --bg-2: #141a22;
  --text: #eaf6ff;
  --muted: #a9b7c8;
  --accent: #7fff00;
  --accent-2: #aaff00;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-stroke: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 20px rgba(0,0,0,.35);
  --radius: 12px;
}

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

html, body {
  height: 100%;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(135deg, rgba(10,12,14,.9), rgba(10,12,14,.75)),
              radial-gradient(circle at 10% 0%, rgba(127,255,0,.08), transparent 40%),
              repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px),
              repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px);
  background-color: var(--bg);
  background-blend-mode: overlay, overlay, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(680px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

.card {
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}

@supports not (backdrop-filter: blur(8px)) {
  .card {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.4);
  }
}

/* Glass panels (section blocks) */
.section-glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  margin: .75rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .section-glass {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.45);
  }
}

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

/* Core typography */
h1, h2, h3 {
  line-height: 1.15;
  margin: .25rem 0;
}
h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 800;
  letter-spacing: .2px;
}
h2 {
  font-size: clamp(1.5rem, 2.5vw + .5rem, 2.25rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.15rem, 1vw + .6rem, 1.4rem);
  font-weight: 700;
  color: #eaffcc;
}
p {
  color: var(--muted);
  font-size: clamp(1rem, 0.8vw + .9rem, 1.125rem);
  margin: .5rem 0 1rem;
}
blockquote {
  margin: .5rem 0 1rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  color: #eafff0;
  background: rgba(0,0,0,.25);
  border-radius: 6px;
}
ul, ol {
  margin: .5rem 0 1rem 1.25rem;
  color: var(--muted);
}
li { margin: .25rem 0; }

/* Utility content styling */
.content {
  padding: 0.75rem;
  color: var(--text);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(127,255,0,.18);
  border: 1px solid rgba(127,255,0,.4);
  color: #eaffd8;
}

/* Header / navigation styling (production-ready focus states) */
header {
  padding: 1.75rem 1rem;
  text-align: center;
  position: relative;
}
header h1 {
  margin: 0.25rem 0 0.5rem;
}
header .meta {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}
nav {
  margin-top: .75rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { background: rgba(0,0,0,.35); transform: translateY(-1px); }
nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: transparent;
  background: rgba(0,0,0,.4);
}

/* Buttons and links (solid + outline) */
.btn,
a.btn,
a.cta,
button.btn {
  border: 1px solid rgba(127,255,0,.75);
  background: rgba(127,255,0,.25);
  color: #041400;
  padding: .65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
a.btn { color: #041400; }
.btn:hover,
a.btn:hover,
a.cta:hover,
button.btn:hover {
  background: rgba(127,255,0,.38);
  transform: translateY(-1px);
}
.btn:focus-visible,
a.btn:focus-visible,
a.cta:focus-visible,
button.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(127,255,0,.9);
}
.cta {
  font-weight: 700;
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}
.btn.secondary:hover {
  background: rgba(255,255,255,.12);
}

/* Product ad / footer styling for glass panels */
footer {
  padding: 2rem 1rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
  justify-items: center;
  color: var(--muted);
}
.product-ad,
.sponsored-page {
  width: 100%;
}
.product-ad a,
.sponsored-page a {
  display: block;
  padding: .65rem;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #fff;
}
.product-ad a:hover,
.sponsored-page a:hover {
  background: rgba(0,0,0,.35);
}
footer p {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: .5rem 0 0;
}

/* Print styles (readability) */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  header, main, footer { background: transparent; box-shadow: none; border: none; }
  a { text-decoration: underline; }
}
  
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}