/* Section: Global tokens */
:root {
  --bg: #0b1220;
  --bg-2: #0a1a2b;
  --text: #e9f2ff;
  --muted: #a9c8ff;
  --accent: #2bd4ff;
  --accent-2: #6be3ff;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-2: rgba(255, 255, 255, 0.22);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(43, 212, 255, 0.65);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --container-max: 1180px;
  --gap: 1rem;
}

/* Section: Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  background:
    /* Scanline layer (pure CSS) */
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    /* Subtle glow of cosmic blue venation (overlay) */
    radial-gradient(circle at 70% 20%, rgba(0,180,255,.12), transparent 40%),
    /* Base gradient for future-cyber vibe */
    linear-gradient(135deg, #0a1020 0%, #0b1a2b 60%, #091026 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: calc(min(var(--container-max), 90vw));
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: var(--gap);
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Fallback for environments without backdrop-filter */
  isolation: isolate;
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.12); }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; animation: none; }
}

/* Section: Typography */
h1, h2 {
  line-height: 1.08;
}
h1 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  margin: .25rem 0 0.25rem;
  letter-spacing: .2px;
}
h2 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  margin: 0.75rem 0 0.25rem;
}
p { font-size: clamp(0.95rem, 1.2vw, 1.125rem); margin: .5rem 0; color: color-m-mix(in oklab, var(--text) 86%, black); }
.meta { color: var(--muted); font-size: .92rem; }

/* Section: Interactions */
a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  outline: var(--focus);
  outline-offset: 2px;
}
a:hover, a:focus { text-decoration: underline; }

/* Button styles */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: rgba(43,212,255,.25);
  color: var(--text);
  border: 1px solid rgba(43,212,255,.6);
  transition: transform .15s ease, background .25s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(43,212,255,.40); }
.btn:active { transform: translateY(0); }
.btn--solid {
  background: linear-gradient(135deg, rgba(43,212,255,.9), rgba(107,227,255,.9));
  border: 1px solid rgba(255,255,255,.75);
}
.btn--solid:hover { background: linear-gradient(135deg, rgba(43,212,255,.98), rgba(107,227,255,.98)); }
.cta { /* alias for primary action links */ display:inline-flex; align-items:center; }

/* Section: Utilities */
.tag {
  display:inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(2, 199, 255, .25);
  border: 1px solid rgba(2,199,255,.6);
  color: var(--text);
}
ul { padding-left: 1.2em; }
li { margin: .25rem 0; }

/* Section: Images */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 20px rgba(0,0,0,.15), 0 6px 20px rgba(0, 180, 255, .25);
  background: #0b1220;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
  /* Subtle glow ring on image for depth */
  box-shadow: inset 0 0 40px rgba(0,0,0,.15);
}
.image-frame:hover img { transform: scale(1.02); transition: transform .25s ease; }

/* Section: Content layout within article */
.content { padding: 0; }

/* Section: Page structure selectors to satisfy required selectors */
html, body, header, nav, main, article, footer, aside {
  /* structural spacing via typography helpers; no extra layout rules here */
}
.product-ad, .sponsored-page {
  display: block;
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a {
  width: 100%;
  display: block;
  padding: .9rem 1rem;
  border-radius: .75rem;
  background: rgba(2, 199, 255, .18);
  border: 1px solid rgba(2,199,255,.55);
  text-align: center;
}
.product-ad a p, .sponsored-page a p { margin: 0; font-weight: 500; }

/* Section: Layout adjustments for sections on the page */
header {
  padding: 1.25rem 0;
  text-align: center;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 { font-weight: 700; letter-spacing: .2px; color: #eaffff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
header nav { margin-top: .5rem; }

main { padding: 1rem 0 2rem; }
main > article { display: grid; gap: 1rem; }

.featured-image { width: 100%; display: block; }

/* Section: Print (basic readability) */
@media print {
  body { background: white; color: black; }
  a, button { text-decoration: none; color: black; }
}
 
/* Section: Prefer media queries for responsive refinements */
@media (min-width: 700px) {
  main > article { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
 
/* Section: Animations (neutral, GPU-friendly) */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
main > article, .image-frame, .product-ad, .sponsored-page { animation: fadeInUp .6s ease-out both; }

/* Section: Accessibility helpers */
a, button, .btn, .cta { color: var(--text); }

/* End of stylesheet */