/* CSS: future cyberpunk landing with glass panels and layered background */

/* Tokens: midnight blue base with maroon accents */
:root {
  --bg: #0b1020;          /* midnight blue base */
  --bg-2: #0f1a32;        /* deeper blue for depth */
  --text: #eaf2ff;         /* high-contrast text on glass */
  --muted: #b8c7e6;        /* muted text for supporting copy */
  --accent: #8b1e3f;       /* maroon / burgundy accent */
  --accent-2: #e11d48;     /* vivid maroon highlight */
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.25);
  --glass-strong: rgba(255,255,255,0.14);
  --radius: 12px;
  --shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* Global reset + layout primitives (mobile-first) */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  /* layered background: gradient + subtle scanlines/noise */
  background-image:
    linear-gradient(135deg, rgba(11,16,32,.95) 0%, rgba(9,14,28,.95) 60%, rgba(11,16,32,.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::after {
  /* subtle vignette / noise overlay for depth, GPU-friendly */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,.04), transparent 40px),
                    radial-gradient(circle at 0% 100%, rgba(0,0,0,.15), transparent 40px);
  background-size: 100px 100px, 200px 200px;
  mix-blend-mode: overlay;
  opacity: 0.25;
  filter: saturate(110%);
}

/* Layout helpers */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 28px);
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header / Hero pattern */
header {
  padding: clamp(14px, 5vw, 28px);
  text-align: center;
}
header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--text);
}
header nav {
  margin-top: 8px;
}
header nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  transition: transform .15s ease, background-color .2s ease;
}
header nav a:hover { text-decoration: underline; transform: translateY(-1px); }
header nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 999px;
}

/* Main / content area */
main {
  display: block;
  padding: 8px 0 28px;
}
article { display: block; }

/* Image frame styling */
.image-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #000;
  box-shadow: 0 8px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-frame:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Glass panel utility for content blocks outside image area */
.content {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--text);
}
.content h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin: 6px 0 8px; color: var(--text); }
.content p { margin: 0 0 8px; color: var(--muted); line-height: 1.5; }

/* Product ad sections in footer */
.product-ad, .sponsored-page {
  display: inline-block;
  padding: 12px 14px;
  margin: 6px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); }
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
}
.product-ad a:focus-visible, .sponsored-page a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 8px;
}
footer {
  padding: 20px clamp(14px, 5vw, 28px) 40px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}
footer p { margin: 6px 0 0; color: var(--muted); }

/* Links & typography helpers */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
}
a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* Button variants (solid and outline) */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: clamp(14px, 2.2vw, 16px);
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(139,30,63,.25);
  color: var(--text);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #6b0b2a);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Generic typography helpers for headings/text scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.2;
}
p { color: var(--muted); }

/* Lists */
ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}
li + li { margin-top: 6px; }

/* Glass-like block with fallback naming for potential .content blocks */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .glass { background: rgba(255,255,255,.14); }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}
