/* Production-ready CSS: future cyberpunk landing style */

:root {
  --bg-1: #0a1020;
  --bg-2: #0b1b2b;
  --bg-3: #0f1a32;
  --text: #eaf2ff;
  --muted: #a6b6d6;
  --accent: #6b79ff;      /* blue/purple accent */
  --accent-2: #8a5cff;    /* deeper purple */
  --card: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.28);
  --glass: rgba(14,18,40,0.32);
  --glass-border: rgba(170,190,255,0.4);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 14px;
  --focus-ring: 3px solid rgba(122, 149, 255, 0.95);
}

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

html, body, header, nav, main, article, footer, aside {
  min-height: 0;
}

/* Layered background: gradient + subtle scanlines/noise (pure CSS) */
html, body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  font-family: ui-system, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(135deg, rgba(10,16,32,0.95) 0%, rgba(8,12,28,0.98) 60%, rgba(16,8,40,0.98) 100%),
    linear-gradient(to bottom right, rgba(55, 120, 255, 0.08), rgba(122, 51, 255, 0.08)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  overflow-x: hidden;
}

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

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(107,121,255,.25);
  border: 1px solid rgba(140,160,255,.55);
  color: #eefaff;
}

/* Structural selectors (required) */
html, body { background-attachment: fixed; }
header, nav, main, article, aside, footer {
  /* glassy feel via translucent surfaces; fallbacks via opacity if needed */
  background: rgba(14,18,40,0.28);
  border: 1px solid rgba(150,170,255,0.38);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* Header / hero styling (clear typographic hierarchy) */
header {
  display: grid;
  gap: .5rem;
  justify-items: center;
  padding: 2rem 1rem;
  text-align: center;
  width: min(1100px, 92%);
  margin: 1.25rem auto;
}
header h1 {
  font-family: ui-sans-serif, system-ui;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
  color: #f6faff;
}
header .meta {
  font-size: .85rem;
  color: var(--muted);
}
nav {
  display: inline-flex;
  gap: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  font-weight: 600;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  color: #dbe6ff;
}
@media (min-width: 760px) {
  header { grid-auto-flow: row; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 2.25rem 1.5rem; }
  header h1 { grid-column: 1 / -1; }
  nav { justify-self: end; }
}

/* Featured image / media frame */
.featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #111428;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Main content area */
main {
  padding: 1rem 0 2rem;
}
article {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0 auto;
}
article h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  margin: .25rem 0 0.25rem;
  color: #eaf0ff;
}
article p {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: #e9efff;
}
article ul {
  padding-left: 1.25rem;
  margin: .5rem 0;
}
article li { margin: .3rem 0; }

/* Gentle glass panels for content blocks (fallback handled below) */
header, main > article, footer, aside {
  padding: 1rem;
}
@media (min-width: 900px) {
  main > article {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}

/* Footer / supplementary panels */
footer {
  margin: 2rem auto 3rem;
  width: min(1100px, 92%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  padding: .75rem;
  border-radius: 10px;
  border: 1px solid rgba(170,190,255,.55);
  background: rgba(255,255,255,.08);
}
.product-ad:hover, .sponsored-page:hover {
  transform: translateY(-1px);
}
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Interactive elements */
a, button, .btn, .cta {
  transition: transform .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; color: var(--accent-2); }
button, .btn, .cta {
  font-family: inherit;
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}
.btn {
  background: var(--accent);
}
.btn:hover { transform: translateY(-1px); background: #7b8aff; }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.cta {
  background: transparent;
  color: #e9e7ff;
  border: 1px solid rgba(140,160,255,.8);
}
.cta:hover { background: rgba(140,160,255,.15); transform: translateY(-1px); }
.cta:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* Image frame helper for legacy/NOP frames */
.image-frame, .image-frame img { image-rendering: crisp-edges; }

/* Accessibility: skip link focus (if present) */
:focus { outline: none; }

/* Focus states for interactive elements (high contrast) */
:focus-visible {
  outline: 3px solid rgba(140,180,255,.95);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsiveness and utilities */
@media (max-width: 600px) {
  header { padding: 1.5rem 0.75rem; }
  nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print-friendly (basic readability) */
@media print {
  body {
    background: white;
    color: #000;
  }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; color: inherit; }
} 

/* Fallback for no backdrop-filter support: stronger opacity panels */
@supports not (backdrop-filter: blur(8px)) and not (-webkit-backdrop-filter: blur(8px)) {
  header, main > article, footer, aside {
    background: rgba(8,12,28,0.75);
    border: 1px solid rgba(140,170,255,0.6);
  }
}