/* Base tokens & theme */
:root {
  --bg: #0a0f1a;
  --bg-2: #0a1120;
  --text: #e7f0ff;
  --muted: #a6c3d3;
  --accent: #00d2c8;
  --accent-2: #1e6bff;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.22);
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --focus: 0 0 0 3px rgba(255,255,255,.6);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6faff;
    --bg-2: #ffffff;
    --text: #0b1a28;
    --muted: #4b5c68;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-border: rgba(0,0,0,0.15);
    --shadow: 0 6px 16px rgba(0,0,0,.08);
  }
  body { background: linear-gradient(#f6faff, #eef4ff); }
}

/* Section: Baseline */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

html, body { color: var(--text); background: var(--bg); }
body {
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Layered background: gradient + subtle noise/scanline effect */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 160, 255, 0.15) 0 180px, transparent 181px),
    radial-gradient(circle at 60% 40%, rgba(0, 210, 225, 0.12) 0 260px, transparent 261px),
    linear-gradient(135deg, rgba(2,6,23,0.95), rgba(2,6,23,0.75) 60%, rgba(0,0,0,0.0) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  opacity: 0.9;
  filter: saturate(110%);
  /* Subtle orbital ring hint via faint rings can be perceived from gradients above */
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-block: 1rem;
  padding-inline: 1rem;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:focus-within { outline: none; }

.image-frame, .image-frame img { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.25); }

/* Typography scale (fluid) */
h1, h2 { line-height: 1.08; margin: 0.25rem 0; }
h1 {
  font-size: clamp(1.9rem, 2.5vw + 1rem, 3.6rem);
  font-weight: 700;
  letter-spacing: .2px;
}
h2 { font-size: clamp(1.25rem, 1.8vw + 0.8rem, 2.2rem); font-weight: 700; color: var(--text); }
p { font-size: clamp(1rem, 0.8vw + 0.8rem, 1.15rem); color: var(--text); margin: 0.5rem 0; }

ul { padding-left: 1.25rem; margin: 0.25rem 0 0.75rem; }
li { margin: 0.25rem 0; }

/* Special content elements */
blockquote {
  margin: 1rem 0; padding: .75rem 1rem;
  border-left: 4px solid var(--accent-2);
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.15);
  color: var(--text);
  border: 1px solid rgba(0,210,255,0.4);
}

/* Glass panels (fallback if backdrop-filter unsupported) */
.header-glass, .main-glass, .footer-glass, .content-glass, .product-ad {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .header-glass, .main-glass, .footer-glass, .content-glass, .product-ad { background: rgba(2,6,23,0.75); }
}

/* Images */
.featured-image { width: 100%; margin: 1rem 0 0; }
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); }

/* Link & button treatments */
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

button, .btn, .cta {
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  background: linear-gradient(135deg, rgba(0, 140, 220, 1), rgba(0, 100, 180, 1));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn--outline, .cta--outline {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}
button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
button:active, .btn:active, .cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0 transparent;
  outline: var(--focus);
  outline-offset: 2px;
}

/* Utilities & layout helpers */
.content { padding: 0.5rem 0; color: var(--text); }
.aside { padding: 0.75rem; }

/* Specific page scaffolding */
header { display: grid; justify-items: center; text-align: center; padding: 2rem 1rem; margin: 1rem auto; width: 100%; max-width: 1100px; background: rgba(2,6,23,0.55); border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
header h1 { font-weight: 700; margin: 0; letter-spacing: 0.2px; color: var(--text); }
header .meta { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }

/* Main area wrapping content with glass */
main { padding: 1rem; }
main > article { max-width: clamp(320px, 90vw, 860px); margin: 0 auto; padding: 1rem; border-radius: 12px; background: rgba(6,10,32,0.60); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 10px 28px rgba(0,0,0,.32); backdrop-filter: blur(12px); }

/* Footer & ad blocks */
footer { padding: 1rem; margin-top: 2rem; display: grid; gap: 1rem; justify-items: center; }
footer .product-ad, footer .sponsored-page { width: min(100%, 720px); }

/* Print basics */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; }
}
 
/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}