/* Base tokens */
:root {
  --bg: #040a10;
  --bg-2: #071018;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --text: #e8fbff;
  --muted: #a6e8ff;
  --accent: #00e5ff;       /* cyan */
  --accent-2: #ffd700;      /* gold */
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(0, 229, 255, 0.65);
}

/* Layout helpers (mobile-first) */
* { box-sizing: border-box; }
html, body, header, nav, main, article, footer, aside {
  height: auto;
}
html, body {
  height: 100%;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines/noise via CSS only */
  background-image:
    linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(to bottom, rgba(3, 7, 12, 0.95), rgba(3, 7, 12, 0.95)),
    /* subtle scanline texture */
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay, normal, overlay;
  color: var(--text);
  min-height: 100%;
}
header, main, footer, aside {
  display: block;
}
.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,0.12); }
}
.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #002028;
  background: linear-gradient(135deg, rgba(0,229,255,0.9), rgba(0,180,255,0.9));
  border: 1px solid rgba(255,255,255,0.4);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.2);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.content {
  padding: 1rem;
  color: var(--text);
  max-width: 860px;
}
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
ul { padding-left: 1.25rem; margin: 0.75rem 0; }
li { margin: 0.25rem 0; }

/* Hero + content structure styling */
header {
  padding: 2rem 0 1rem;
  text-align: center;
  position: relative;
}
header h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1.08;
  margin: 0 0 0.25rem;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  margin-top: 0.25rem;
}
main {
  padding: 1.25rem 0 2rem;
}
.featured-image { margin: 1rem 0 1.25rem; }
.featured-image img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); }

/* Glassy panels throughout content where applicable */
article {
  margin: 0 auto;
  padding: 1rem;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(8, 16, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(8, 16, 28, 0.65); }
}
article h2 {
  font-size: clamp(1.25rem, 2.5vw + 1rem, 2rem);
  margin: 0 0 0.5rem;
  color: #eafaff;
}
article p {
  font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.15rem);
  line-height: 1.6;
  color: #eafaff;
}
blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  color: #d9fbff;
  font-style: italic;
}
ul { list-style: disc inside; }

/* Footer + product/ad sections */
footer {
  padding: 2rem 0 3rem;
  text-align: center;
}
.product-ad, .sponsored-page {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(2, 6, 12, 0.5);
  border: 1px solid rgba(255,255,255,0.25);
}
.product-ad a, .sponsored-page a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}
.product-ad p, .sponsored-page p { margin: 0; }

/* Interactive elements (buttons, links) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.15em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.28);
  color: var(--text);
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }
.btn--solid {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.95), rgba(0, 180, 255, 0.95));
  color: #001018;
  border: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn--outline {
  background: transparent;
  border-color: rgba(0, 229, 255, 0.9);
  color: var(--text);
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.2em;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}
.cta:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

/* Typography helpers for responsive scale */
h1, h2, h3 { line-height: 1.25; }
p { margin: .25rem 0 1rem; }

/* Link treatment for accessibility */
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }

/* Layout helpers (responsive utilities) */
@media (min-width: 768px) {
  .grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }
  header { padding: 3rem 0 1.5rem; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f8fb;
    --bg-2: #eef4f8;
    --surface: rgba(15, 23, 42, 0.08);
    --surface-2: rgba(15, 23, 42, 0.12);
    --text: #0b1220;
    --muted: #38516a;
    --border: rgba(0,0,0,0.15);
    --accent: #006d8d;
    --accent-2: #b57a00;
  }
  body {
    color: var(--text);
  }
  .product-ad, .sponsored-page { background: rgba(255,255,255,0.8); border-color: rgba(0,0,0,0.15); }
  .card { background: rgba(255,255,255,0.85); }
  a:hover, a:focus { color: var(--accent); }
}
@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, footer { page-break-after: avoid; }
}