/* 0: Palette & Utilities */
:root {
  --bg: #0a0f15;
  --bg-2: #0b131a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #e7fbff;
  --muted: #a6b8c9;
  --accent: #2ee6e6;       /* bright turquoise */
  --accent-2: #7af2ff;     /* lighter turquoise for halos */
  --border: rgba(255,255,255,.28);
  --focus: 0 0 0 3px rgba(46, 230, 230, .8);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --card: rgba(255,255,255,.08);
}
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
html {
  background: linear-gradient(135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.2)),
              linear-gradient(135deg, rgba(14, 178, 175, 0.20), rgba(54, 214, 214, 0.10) 60%, rgba(0,0,0,0.0) 100%);
}
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.75) 100%),
              radial-gradient(circle at 20% 0%, rgba(0,255,255,.15), transparent 40%),
              linear-gradient(120deg, #0b1117 0%, #0a0e14 100%);
  background-blend-mode: multiply;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Subtle holographic noise + scanlines */
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .28;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(0, 255, 255, 0.95); outline-offset: 2px; border-radius: 6px; }

/* 1: Layout primitives */
.container {
  width: 100%;
  max-width: clamp(340px, 90vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(46,230,230,.6);
  color: #eaffff;
  background: rgba(46,230,230,.18);
}
ul { margin: 0.8em 0 0.8em 1.2em; padding: 0; }
li { margin: .25em 0; }

/* 2: Layered background/structure for a "holographic" vibe */
/* header, nav, main, article, aside, footer inherit glass treatment below */
header, nav, main, article, aside, footer {
  padding: 0;
}
.image-frame, .image-frame img {
  width: 100%; height: auto;
}
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: translateZ(0); /* GPU hint */
  backface-visibility: hidden;
}
.content {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(8px)) {
  .content { background: rgba(255,255,255,.14); }
}
header {
  text-align: center;
  padding: 1.5rem 1rem 0.75rem;
}
header h1 {
  font-size: clamp(1.6rem, 2.5vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
  text-shadow: 0 0 8px rgba(46,230,230,.5);
}
.meta {
  font-size: .92rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding-bottom: .75rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  transition: transform .15s ease, background .2s ease;
}
nav a:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); text-decoration: underline; }
main { padding: 1rem; }
article { display: grid; gap: 1rem; align-items: start; }

/* 4: Typography & content hierarchy (h1..h3, p) */
h2 {
  font-size: clamp(1.4rem, 1.2rem + 2vw, 2.2rem);
  margin: .5rem 0;
}
h3 {
  font-size: clamp(1.15rem, 1vw + 1.1rem, 1.6rem);
  margin: .25rem 0;
}
p { color: #e9fbff; margin: .25rem 0 0.75rem; }
blockquote {
  margin: .5rem 0; padding: .5rem 1rem; border-left: 4px solid var(--accent);
  background: rgba(46,230,230,.15); border-radius: 6px;
}
.featured-image { margin: .25rem 0 0; }

/* 5: Core UI: links, buttons, CTAs */
a, button, .btn, .cta {
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  color: inherit;
}
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); }

/* Buttons: solid + outline variants */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.0);
  background: var(--accent);
  color: #041010;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); background: #38f0f0; }
.btn:focus-visible { outline: 3px solid rgba(0,255,255,.95); outline-offset: 2px; }
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: rgba(46,230,230,.15); color: #eaffff; }

/* CTA helpers (links styled as buttons) */
.cta {
  display: inline-block; padding: .6rem 1rem; border-radius: 999px;
  border: 1px solid rgba(46,230,230,.55);
  background: rgba(46,230,230,.25);
  color: #001515; font-weight: 600;
}
.cta:hover { background: rgba(46,230,230,.38); }

/* 6: Media & lists */
ul { padding-left: 1.25rem; }
li { margin: .25em 0; }

/* 7: Glass panels across sections (fallback included) */
section {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
section + section { margin-top: .75rem; }

/* 8: Imagery wrapper for consistent framing */
.image-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 9: Footer / product ad blocks as glass panels */
footer {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: start;
  background: rgba(0,0,0,.28);
  border-top: 1px solid rgba(255,255,255,.15);
}
.product-ad, .sponsored-page {
  display: flex; align-items: center; justify-content: center;
  padding: .75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}
.product-ad a, .sponsored-page a { text-decoration: none; color: var(--text); }

/* 10: Print styles (basic readability) */
@media print {
  body { color: #000; background: #fff; }
  nav, .cta, .btn { display: none; }
  section { page-break-inside: avoid; }
}

/* 11: Motion preferences (disable heavy effects) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn { transform: none !important; }
  a { text-decoration: none !important; }
}
