:root {
  --bg: #0b0b0f;
  --bg-2: #14141a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #e8eaf6;
  --muted: #aab4c8;
  --accent: #7bd9ff;     /* holographic blue/cyan */
  --accent-2: #cbd5e1;   /* holographic silver */
  --ring: #7bd9ff;
  --shadow: 0 10px 28px rgba(0,0,0,.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

/* Layered Background: gradient + subtle scanlines/noise (pure CSS) */
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background: transparent;
  min-height: 100dvh;
}

body {
  position: relative;
  isolation: isolate;
  /* base dark canvas */
  background: linear-gradient(135deg, rgba(6,7,12,1) 0%, rgba(12,14,20,1) 60%, rgba(6,7,12,1) 100%);
  padding: 0;
  margin: 0;
}

/* gradient layer for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, rgba(15, 15, 22, 0.95) 0%, rgba(9, 11, 16, 0.95) 60%, rgba(15, 15, 22, 0.95) 100%);
  pointer-events: none;
  mix-blend-mode: normal;
}

/* subtle scanlines / noise layer (pure CSS) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0px, rgba(0,0,0,.08) 1px, transparent 1px, transparent 2px);
  background-size: auto;
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: overlay;
  filter: saturate(110%);
}

/* Layout helpers (utilities) */
.container {
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.14); }
}

.tag {
  display: inline-block;
  padding: .25em .5em;
  border-radius: 999px;
  font-size: .75rem;
  color: #001018;
  background: rgba(123, 217, 255, .85);
  font-weight: 600;
}

/* Basic typography tweaks for hero / header */
header {
  padding: 1.25rem 1rem;
  display: block;
}
header h1 {
  font-size: clamp(1.25rem, 3vw + 0.5rem, 2.25rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header nav {
  display: flex;
  gap: .5rem;
  align-items: center;
}
header a { color: var(--accent-2); text-decoration: none; }

/* Main layout */
main { padding: 1rem 0; }
article { display: block; }

/* Glass panels (content blocks) with accessible fallback */
.content {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .content { background: rgba(255,255,255,0.15); }
}

/* Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.55);
  background: #0b0b0f;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Footer / product ad areas */
footer {
  padding: 1rem 0 2rem;
}
.product-ad,
.sponsored-page {
  display: block;
  margin: .5rem 0;
  padding: .9rem;
  text-align: left;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.product-ad a,
.sponsored-page a {
  display: block;
  color: #eaffff;
  text-decoration: none;
}
.product-ad p,
.sponsored-page p { margin: 0; font-weight: 600; }

/* Buttons and links (solid + outline variants) */
.btn,
.cta,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn {
  background: var(--accent);
  color: #002033;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible,
a.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 999px;
}
.btn.outline,
a.btn.outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.35);
}
.btn.outline:hover { background: rgba(255,255,255,.08); }

/* Link treatments: underline on hover/focus for accessibility */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 2px; }

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

/* Images responsiveness helper (in case used elsewhere) */
img { max-width: 100%; height: auto; display: block; }

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

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { padding: 0.5rem; }
  .image-frame { border: 1px solid #ccc; }
  a { text-decoration: underline; }
}
