/* Global reset (light) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Palette and typography for a hacker, cyberpunk, frosted-glass vibe */
:root {
  --bg-deep: #0a0f1a;
  --bg-navy: #0b1d3b;
  --glass: rgba(8, 12, 28, 0.72);
  --glass-border: rgba(90, 135, 255, 0.45);
  --fg: #eaf2ff;
  --muted: #a7b6d6;
  --accent: #1ec6ff;
  --accent-2: #7a5cff;
  --shadow-dark: rgba(0,0,0,0.6);
  --radius: 14px;
}

html, body {
  height: 100%;
  background: #0000; /* ensure no default bg */
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;

  /* Black abstract blur background with navy hues (layered gradients) */
  background: 
    radial-gradient(circle at 20% -10%, rgba(0, 180, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(0, 60, 120, 0.18), transparent 40%),
    linear-gradient(#05070e 0%, #05070e 60%, #0a0f1f 60%, #0b1220 100%);
  background-size: 1200px 1200px, 1600px 1600px, 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  animation: drift 60s linear infinite;
}
@keyframes drift {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%; }
  50%  { background-position: 60% 20%, 40% 60%, 0% 0%; }
  100% { background-position: 0% 0%, 0% 0%, 0% 0%; }
}

/* Soft frosted-glass overlay for sections */
.header-glass, header {
  /* allow both the header element and a frosted card look */
}
header {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(8, 12, 28, 0.72);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px var(--shadow-dark);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}
header h1 {
  font-size: clamp(1.8rem, 4vw + 1rem, 3.2rem);
  font-weight: 800;
  color: #eaffff;
  letter-spacing: .2px;
  margin-bottom: .35rem;
  text-shadow: 0 0 8px rgba(30, 200, 255, 0.45);
}
header .meta {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: .2px;
}

/* Main content area */
main {
  padding: 0 1rem;
}
article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(60, 120, 255, 0.4);
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.featured-image {
  margin: 1rem 0 1.25rem;
}
p {
  color: #eaf2ff;
  margin: 1rem 0;
}
article > div + div { margin-top: 0.5rem; }

/* Footer / ad section as frosted glass card with CTA */
footer {
  margin-top: 2rem;
  padding: 0 1rem 2rem;
}
.product-ad {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(8, 12, 28, 0.68);
  border: 1px solid rgba(60, 100, 180, 0.55);
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.product-ad h3 {
  font-size: 1.05rem;
  color: #e9f6ff;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b2a57 0%, #0b1a42 100%);
  color: #eaffff;
  text-decoration: none;
  border: 1px solid rgba(110, 170, 255, 0.8);
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.55);
}
.product-ad a:focus-visible {
  outline: 2px solid #7bdcff;
  outline-offset: 2px;
}
.product-ad a p { margin: 0; padding: 0; }

/* Accessibility: ensure focus visibility for keyboard users on links and buttons within layout */
a, button {
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid #7bdcff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Small screens first: comfortable single-column flow */
@media (min-width: 640px) {
  .product-ad {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
@media (min-width: 900px) {
  header { padding: 2.5rem; }
  article { padding: 0 0.25rem; }
}
