:root{
  --bg: #0a0f1a;
  --bg-2: #0b1020;
  --card: rgba(255,255,255,0.10);
  --card-2: rgba(255,255,255,0.18);
  --text: #e8f0ff;
  --muted: #b9c6e8;
  --accent: #1fe4ff;       /* electric blue */
  --accent-2: #d4b012;      /* mustard yellow */
  --border: rgba(255,255,255,0.25);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { height: 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.45;
  background: 
    radial-gradient(circle at 20% -10%, rgba(31, 228, 255, .22), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(212, 176, 18, .15), transparent 35%),
    linear-gradient(135deg, #0a0f1a 0%, #0b1020 60%, #0a0f1a 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout utilities */
.container {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

.card {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.tag {
  display:inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .725rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--text);
}

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #0b0f14;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.image-frame:hover img {
  transform: scale(1.04);
}

/* Glass panels with fallback */
header, main, footer, nav, aside, article {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  margin: 0.75rem 0;
  /* subtle lift for stacking context on mobile */
  transform: translateZ(0);
}

@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  header, main, footer, nav, aside, article {
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Header / hero styling */
header {
  display: grid;
  gap: .5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 1.25rem;
}
header h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 3rem);
  line-height: 1.15;
  margin: .25rem 0;
  letter-spacing: .2px;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.12);
  transition: transform .2s ease;
}
nav a:hover { transform: translateY(-1px); text-decoration: underline; text-underline-offset: 4px; }

/* Main content */
main { display: grid; gap: 1rem; padding: 1rem 0; }

/* Content text helper if used inside content areas */
.content {
  color: var(--text);
  font-size: clamp(1rem, 0.9vw + 0.8rem, 1.125rem);
  line-height: 1.5;
}

/* Links & buttons styling (focus accessible) */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid color-mash(var(--accent) currentColor);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, rgba(31,228,255,.95), rgba(31,228,255,.75));
  color: #041016;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(31, 228, 255, .7);
}
.btn--outline:hover { background: rgba(31,228,255,.08); }

/* Utility helpers */
.ul { padding-left: 1rem; }
li { margin: .25rem 0; }

/* Product ad styling in footer */
.product-ad {
  display: block;
  text-align: center;
  padding: .8rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.14);
  transition: transform .2s ease;
}
.product-ad:hover { transform: translateY(-2px); }

.sponsored-page {
  display: block;
  text-align: center;
  padding: .8rem;
  margin-top: .25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.14);
}
footer p {
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
  margin-top: .5rem;
}

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; border: none; border-radius: 0; }
  a { color: #000; text-decoration: underline; }
}

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