/* CSS: Midnight hacker/glass UI for the provided HTML landing page */

/* Light reset and accessibility helpers */
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }

/* Color system and checkerboard background (gray) */
:root {
  --blue: #4aa3ff;
  --blue-dark: #1e64ff;
  --bg: #0b0f14;
  --card: rgba(20, 28, 52, 0.65);
  --text: #e9f0ff;
  --muted: #a8c6ff;
  --border: rgba(120, 170, 255, 0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  /* gray checkerboard */
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.04) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Layout containers */
header, main, footer { width: 100%; }

/* Frosted glass style for content blocks */
.glass {
  background: rgba(12, 20, 40, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: var(--shadow);
  color: var(--text);
}

/* Page structure styling */
header {
  text-align: center;
  padding: 1.75rem 1rem;
  position: relative;
}
header h1 {
  font-size: 1.95rem;
  line-height: 1.1;
  margin: 0 0.4rem 0.25rem;
  letter-spacing: .4px;
  color: #dcefff;
  text-shadow: 0 0 12px rgba(68, 144, 255, 0.6);
}
header .meta {
  color: var(--muted);
  font-size: .92rem;
  opacity: .95;
}

/* Main content grid (mobile-first) */
main {
  display: block;
  padding: 0 1rem 2rem;
}
main > article {
  max-width: 720px;
  margin: 1rem auto;
  padding: 1rem;
  /* frosted container for the article body */
  background: rgba(14, 22, 42, 0.60);
  border: 1px solid rgba(110, 170, 255, 0.30);
  border-radius: 16px;
  backdrop-filter: blur(6px) saturate(1.15);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  color: #eaf4ff;
  line-height: 1.75;
}
.featured-image {
  margin: 0.75rem 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(180, 210, 255, 0.25);
  background: #111;
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
}
article p { margin: 0.75rem 0; }

/* Footer CTAs and branding */
footer {
  padding: 1.25rem 1rem 2rem;
  text-align: center;
}
.product-ad {
  display: inline-block;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(8, 12, 24, 0.65);
  border: 1px solid rgba(120, 180, 255, 0.28);
  margin-bottom: .75rem;
}
.product-ad h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  color: #dcefff;
}
.product-ad a {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #0b62e6 0%, #2563eb 100%);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease;
}
.product-ad a:hover { transform: translateY(-1px); }
.product-ad a:focus { outline: 2px solid #93c5fd; outline-offset: 2px; }

/* Typography minor niceties for readability on dark bg */
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Responsive tweaks (tablet/desktop) */
@media (min-width: 768px) {
  header { padding: 2.5rem 1.75rem; }
  header h1 { font-size: 2.6rem; }
  main { padding: 1.75rem 0; }
  main > article { padding: 1.75rem; }
}
@media (min-width: 1024px) {
  main { display: grid; place-items: start center; }
  main > article { width: min(78ch, 70%); }
}