/* CSS: production-ready, mobile-first cyberpunk landing styling */

:root {
  --bg: #0b0f14;
  --bg-2: #141923;
  --text: #e8e8ee;
  --muted: #a6abb8;
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --accent: #4df3ff;
  --accent-2: #9a7cff;
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --focus: 0 0 0 3px rgba(74, 241, 255, .65);
  --radius: 12px;
  --space: 1rem;
  --text-on-card: #eaf2f7;
}

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

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

html, body { height: 100%; }

html { color-scheme: dark; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: linear-gradient(135deg, #0b0f14 0%, #141923 60%, #0b0f14 100%);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  z-index: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layered background: gradient + subtle noise/scanlines + stars (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.15) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(180,180,180,.08) 0 2px, transparent 2px),
    radial-gradient(circle at 40% 70%, rgba(100,100,100,.04) 0 2px, transparent 2px);
  background-size: 120px 120px, 180px 180px, 220px 220px;
  mix-blend-mode: screen;
  opacity: .25;
  filter: saturate(0.95);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  opacity: .25;
}

/* Focus ring helpers for accessibility */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}

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

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

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

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

ul, li {
  margin: 0;
  padding: 0;
  list-style: disc;
  padding-left: 1.25rem;
}
li { margin: .25rem 0; color: var(--muted); }

/* Header (hero) */
header {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  width: 100%;
  position: relative;
  z-index: 1;
  /* Glassy header panel for hero feel with fallback */
  background: rgba(12,14,20,.55);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  margin: 1rem auto;
  max-width: clamp(320px, 92vw, 1100px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
@supports not (backdrop-filter: blur(12px)) {
  header {
    background: rgba(12,14,20,.75);
  }
}

header h1 {
  margin: 0.25rem 0 0.25rem;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: .5px;
}
header .meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: clamp(.8rem, .4vw + .8rem, 1rem);
}

/* Main content area */
main {
  width: 100%;
  padding: 1rem 0 2rem;
  display: block;
}
article {
  width: 100%;
  max-width: clamp(520px, 90vw, 900px);
  margin: 0 auto;
  padding: 0;
}

.featured-image,
.image-frame {
  width: min(720px, 92%);
  margin: 0.75rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.featured-image img,
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.image-frame {
  aspect-ratio: 16 / 9;
  background: #0b0b0f;
  display: block;
  filter: saturate(1.05);
  transition: transform .25s ease;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.4);
}
.image-frame:hover { transform: translateY(-2px); }

/* Typography hierarchy in content */
h2 {
  font-size: clamp(1.4rem, 0.8vw + 1rem, 2rem);
  margin: .75rem 0;
  color: var(--text);
}
p {
  color: var(--muted);
  margin: 0.75rem 0;
}
blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid rgba(100,120,255,.72);
  color: #eaf2ff;
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Helper content container for .content usage */
.content { padding: .25rem 0; }

/* "Buttons" and links styling (solid and outline variants) */
a.btn,
button.btn,
button.cta,
a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.32);
  text-decoration: none;
  font-weight: 600;
  color: #041018;
  background: linear-gradient(135deg, rgba(74,241,255,.92), rgba(154,124,255,.92));
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
a.btn:hover,
button.btn:hover,
a.cta:hover,
button.cta:hover {
  transform: translateY(-1px);
}
button.btn,
a.btn { color: #041018; }
a.btn:focus-visible,
button.btn:focus-visible,
a.cta:focus-visible,
button.cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
a.btn.outline,
button.btn.outline,
a.cta.outline,
button.cta.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.5);
}
a.btn.primary,
button.btn.primary {
  background: linear-gradient(135deg, rgba(80,255,255,.95), rgba(140,100,255,.95));
  color: #041018;
}
a.btn.primary:hover,
button.btn.primary:hover {
  transform: translateY(-2px);
}

/* "Glass" panels for content blocks where applicable */
.panel {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .panel { background: rgba(255,255,255,.14); }
}

/* Footer and ad sections */
footer {
  padding: 1rem 1rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.product-ad,
.sponsored-page {
  display: flex;
}
.product-ad a,
.sponsored-page a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease;
}
.product-ad a:hover,
.sponsored-page a:hover { transform: translateY(-1px); }
footer p {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  margin: .25rem 0 0;
  font-size: .9rem;
}

/* Image frame utility (if used elsewhere) */
.image-frame--glow {
  box-shadow: 0 0 16px rgba(68, 224, 255, .55);
  border: 1px solid rgba(68,224,255,.5);
}

/* Nav placeholder (present to satisfy selector styling) */
nav { display: none; }

/* Content helpers for layout responsiveness */
@media (min-width: 720px) {
  main { padding: 1.25rem 0 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  html, body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, main, footer { display: block; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fb;
    --bg-2: #ffffff;
    --text: #0b0b0f;
    --muted: #555b6b;
    --card: rgba(0,0,0,.04);
    --border: rgba(0,0,0,.15);
    --accent: #2a6cff;
    --accent-2: #7a28ff;
  }
  body {
    background: linear-gradient(135deg, #f7f7fb 0%, #eceff7 60%, #f7f7fb 100%);
    color: var(--text);
  }
  body::before { opacity: .15; }
  header {
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(0,0,0,.12);
  }
  .panel { background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.15); }
}
