/* Section: Base tokens */
:root{
  --bg: #0b0f14;
  --bg-2: #141923;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --text: #e8e8ee;
  --muted: #a6a9af;
  --accent: #cbd5e1;
  --accent-2: #8b93a0;
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 10px;
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.22);
  --focus: 0 0 0 3px rgba(125,211,252,.75);
  --gap: 1rem;
}

/* Section: Reset & base layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: linear-gradient(135deg, #0a0b10 0%, #151821 60%, #0a0b10 100%);
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Section: Layered background (gradient + noise/scanlines) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    /* subtle scanlines */
    linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    linear-gradient(to right, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    /* faint noise texture via multiple translucent overlays for depth */
    radial-gradient(circle at 20% 20%, rgba(240,245,255,.05) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(200,210,225,.04) 0 2px, transparent 2px);
  background-size: 100% 4px, 4px 100%, 60vmin 60vmin, 70vmin 70vmin;
  background-blend-mode: overlay;
  opacity: .75;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: -10vmin;
  width: 120vmin;
  height: 120vmin;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  /* Platinum orbital ring feel via layered radial overlays */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(200,210,225,.08) 0 2px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(190,200,218,.06) 0 3px, transparent 3px),
    radial-gradient(circle at 50% 50%, rgba(210,220,235,.04) 0 4px, transparent 4px);
  background-size: 32vmin 32vmin, 56vmin 56vmin, 88vmin 88vmin;
  background-position: center;
  mix-blend-mode: screen;
  opacity: .65;
  pointer-events: none;
  z-index: 0;
}

/* Section: Layout helpers */
.container {
  width: min(100%, clamp(320px, 90vw, 1200px));
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  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(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
}
.tag {
  display: inline-block;
  padding: .25em .5em;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15);
  color: var(--text);
}

/* Section: Typography scale (responsive) */
h1, h2, h3 { margin: .25em 0 .5em; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: .4px; }
h2 { font-size: clamp(1.25rem, 2.5vw, 2.25rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.4rem); }

/* Section: Glass panels & surfaces */
header, main, footer, aside, article, section {
  /* base glass surface for readability on top of the layered bg */
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: .75rem 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside, article, section {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,.4);
  }
}

/* Section: Image frame and media assets */
.image-frame, .featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 8px rgba(255,255,255,.08);
  background: #111;
  display: block;
}
.image-frame { aspect-ratio: 16 / 9; }
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.featured-image { margin: 0.5rem 0 1rem; }

/* Backdrop fallback for image frame when backdrop-filter unsupported (handled via .image-frame above) */
@supports not (backdrop-filter: blur(8px)) {
  .image-frame { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,.4); }
}

/* Section: Content area (within articles) */
.content { padding: .75rem 0; color: var(--text); }

/* Section: Product ads & sponsored sections */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  color: var(--text);
}
.product-ad a, .sponsored-page a { color: inherit; text-decoration: none; display: inline-block; padding: .25rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Section: Interactive controls (buttons, links) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.18);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  user-select: none;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, rgba(180,199,226,.95), rgba(120,132,146,.85));
  border-color: rgba(255,255,255,.55);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.65);
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
a:focus-visible { text-decoration: underline; }

/* Section: Lists
   Basic styling for UL/LI to ensure good contrast on glass panels */
ul { padding-left: 1.25rem; margin: .5em 0; }
li { margin: .25em 0; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Header, Main, Aside, Footer default spacing
   Ensure content sits above background layers */
header, main, aside, footer {
  position: relative;
  z-index: 1;
}
main { padding: 1rem 0; }

/* Section: Misc helpers (optional utilities) */
.hr { height: 1px; background: rgba(255,255,255,.25); border: none; margin: var(--gap) 0; }

/* Section: Typographic helpers for accessibility on glass */
.muted { color: var(--muted); font-size: .95rem; }

/* End of stylesheet */