:root {
  --bg: #0a0f12;
  --bg-2: #0b1b1b;
  --text: #e6fffe;
  --muted: #a6f0e9;
  --accent: #00e0c9;
  --accent-2: #00ffd9;
  --card: rgba(6, 14, 14, 0.66);
  --card-2: rgba(6, 14, 14, 0.5);
  --border: rgba(0, 230, 210, 0.4);
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --focus: 3px solid rgba(0, 224, 192, 0.9);
}

/* Base reset and layout */
html, body, header, nav, main, article, footer, aside {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans"; }
body {
  color: var(--text);
  background: linear-gradient(135deg, #021013 0%, #041414 40%, #021013 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: clamp(14px, 1.4vw, 16px);
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,255,230,0.05), rgba(0,0,0,0.0)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, rgba(0,0,0,0.0) 1px 2px);
  mix-blend-mode: overlay;
  z-index: -1;
  filter: saturate(110%);
  opacity: 0.75;
}
header, main, article, aside, footer {
  background: rgba(2, 10, 10, 0.28);
  border: 1px solid rgba(0, 230, 210, 0.4);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  margin: 0.75rem auto;
  width: min(1100px, calc(100% - 2rem));
  box-shadow: var(--shadow);
}

/* Navigator/hero */
header {
  text-align: center;
}
header h1 {
  font-size: clamp(1.4rem, 2.4vw + 1rem, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: #eaffff;
  text-shadow: 0 0 12px rgba(0, 224, 192, 0.6);
}
header .meta {
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  color: var(--muted);
  margin-bottom: 0.75rem;
}
nav a {
  color: #d8fffb;
  text-decoration: none;
  padding: .4rem .65rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 224, 192, 0.5);
}
nav a:hover { text-decoration: underline; }

/* Main content grid */
main {
  display: block;
}
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 230, 0.4);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.2);
  aspect-ratio: 16/9;
  display: block;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}
.content {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
.content h2, .content h3 { color: #eaffff; margin: .75rem 0 .25rem; }
.content p { margin: .5rem 0; }
.content ul { padding-left: 1.1rem; margin: .4rem 0; }
.content li { margin: .25rem 0; }

/* Card and tag helpers */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 210, 0.6);
  color: #eaffff;
  background: rgba(0, 230, 210, 0.15);
  font-size: .8rem;
}

/* Product/ad sections in footer */
.product-ad, .sponsored-page {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(0, 230, 210, 0.4);
  border-radius: var(--radius-sm);
  padding: .6rem;
  text-align: center;
}
.product-ad p, .sponsored-page p {
  margin: .25rem 0 0;
  font-weight: 600;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 230, 210, 0.5);
}
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Interactive controls (links/buttons) */
a, button, .btn, .cta {
  color: var(--text);
  background: transparent;
  border: 0;
  padding: .6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid rgba(0, 224, 192, 0.9);
  outline-offset: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 8px;
}
.btn.primary {
  background: linear-gradient(135deg, rgba(0, 224, 192, 0.9), rgba(0, 170, 170, 0.95));
  border: 1px solid rgba(0, 224, 192, 0.95);
  color: #041414;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.btn.secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0, 224, 192, 0.5);
}
.cta { font-weight: 700; }

/* Lists */
ul, li { margin: 0; padding: 0; }
li { padding-left: .25rem; }

/* Layout utilities used by the page */
.content-area { padding: 0.25rem 0 0; }

/* Misc layout helpers (compact names to fit size) */
.aside { padding: .25rem; }

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

/* Typography refinements for readability on glass */
h1, h2, h3, h4 { letter-spacing: .2px; }
h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: clamp(1.25rem, 1.2vw + 1rem, 1.9rem); }
h3 { font-weight: 600; font-size: clamp(1rem, 0.8vw + 0.9rem, 1.25rem); }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  a, a:visited { text-decoration: underline; color: black; }
  header, main, article, footer { border: 1px solid #000; background: white; }
}
