/* CSS for futuristic cyberpunk landing page (mobile-first, glass panels, layered background) */

:root {
  --bg: #1a0d0d;           /* crimson base */
  --bg2: #21060e;          /* deeper edge tone */
  --text: #f8f8ff;          /* high-contrast text */
  --muted: #c9c9d6;         /* secondary text */
  --accent: #7e4fff;         /* galaxy purple */
  --accent-2: #c18aff;       /* hover/focus accent */
  --surface: rgba(15,0,40,0.28);
  --glass-border: rgba(255,255,255,0.28);
  --glass-bg: rgba(10,0,20,0.28);
  --container-width: 1100px;
}

html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Layered background: gradient + subtle grain/scanlines (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(120,0,0,0.25), rgba(20,0,0,0.85)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  background-attachment: fixed;
  background-size: cover;
  min-height: 100%;
}

header, main, footer, aside, nav, article {
  display: block;
}

/* Glass panels (with fallback if backdrop-filter unsupported) */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(10,0,20,0.75); border-color: rgba(255,255,255,0.5); }
}

.container { max-width: clamp(320px, 92vw, var(--container-width)); margin-inline: auto; padding-inline: 1rem; }

/* Header */
header {
  margin: 1rem auto;
  padding: 1rem; 
  display: block;
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.6rem, 2.5vw + 0.6rem, 3rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: .2px;
}
header .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Main + Article layout (centered article with glass style) */
main { padding: 0; }

article {
  margin: 1rem auto 2rem;
  padding: 1rem;
  max-width: 860px;
  /* Glass panel styling for the article body */
  background: rgba(10,0,20,0.28);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  article {
    background: rgba(10,0,20,0.75);
    border-color: rgba(255,255,255,0.5);
  }
}

.featured-image { margin: 0 0 1rem; }

/* Image frame */
.image-frame { 
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  display: block;
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Typography content within article */
h2 { font-size: clamp(1.4rem, 1vw + 1rem, 2rem); margin: .75rem 0 .5rem; }
h3 { font-size: clamp(1.15rem, 0.8vw + 0.9rem, 1.4rem); margin: .75rem 0; }
p { color: var(--muted); margin: .5rem 0 1rem; }

ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; color: var(--text); }

/* Quotes */
blockquote {
  margin: .5rem 0 1rem;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: #fff;
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
  font-style: italic;
}

/* Footer product ad area */
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}
.product-ad {
  display: inline-block;
  padding: .75rem;
  text-align: left;
  background: rgba(18,0,40,0.28);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  margin: 0.5rem 0;
}
.product-ad h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.product-ad a { color: var(--text); text-decoration: none; display: block; padding: 0.25rem 0; }
.product-ad a:hover { text-decoration: underline; }

/* Utilities and helpers */
.content { padding: 0 1rem; }

/* Grid, card, tag utilities (compact, accessible) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: rgba(12,0,40,0.28); border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }

/* Tags with accessible styling */
.tag {
  display: inline-block;
  padding: .15em .5em;
  font-size: .75em;
  border-radius: 999px;
  background: rgba(126,0,126,0.35);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

/* Link and button treatments */
a, button, .btn, .cta { cursor: pointer; text-decoration: none; color: var(--text); }
a:hover { text-decoration: underline; }

/* Buttons: solid and outline variants */
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(126, 90, 255, 0.9);
  color: var(--text);
  padding: .6rem 1rem;
  border-radius: 8px;
}
.btn-outline:hover { background: rgba(126, 90, 255, 0.15); }

/* Focus visibility for accessibility */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* Links color adjustments for contrast over glass */
a { color: var(--accent); }

/* Responsiveness: navigation/utility spacing adjustments can be added via media queries if needed */
@media (min-width: 720px) {
  header { padding: 1rem 1.25rem; }
  article { padding: 1.25rem; }
}

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

/* Print: basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: none; box-shadow: none; }
  article { background: transparent; border: none; }
  a, button { color: #000; text-decoration: underline; }
}