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

/* Theme & helpers */
:root {
  --bg: #0a0a14;
  --text: #eae6f2;
  --muted: #c8b6cb;
  --glass: rgba(255, 255, 255, 0.08);
  --card: rgba(0, 0, 0, 0.4);
  --border: rgba(255, 255, 255, 0.18);
  --focus: #8b5cf6;
  --maroon: #5b0a18; /* hacker-ish maroon accent */
}

/* Base layout */
html, body { height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial;
  color: var(--text);
  background: #0a0a14;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  /* Purple waves backdrop (subtle) via layered gradients on a dark canvas */
  background-image:
    radial-gradient(circle at 20% -10%, rgba(180,0,180,.25) 0 25px, transparent 26px),
    radial-gradient(circle at 80% 10%, rgba(100,0,120,.25) 0 28px, transparent 28px),
    linear-gradient(135deg, #0a0a14 0%, #15031a 60%, #0a0a14 100%);
  background-blend-mode: screen, screen, normal;
  min-height: 100%;
}

/* Subtle decorative waves at the bottom/top via pseudo layers (kept lightweight) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 25% 25%, rgba(180,0,180,.25) 0 60px, transparent 60px),
    radial-gradient(circle at 75% 30%, rgba(90,0,140,.25) 0 60px, transparent 60px);
  mix-blend-mode: screen;
}
body::after {
  content:"";
  position: fixed;
  left: 0; right: 0; bottom: -20vh;
  height: 40vh;
  background: radial-gradient(circle at 20% 50%, rgba(180,0,160,.4) 0 60px, transparent 60px),
              radial-gradient(circle at 70% 60%, rgba(60,0,90,.4) 0 60px, transparent 60px);
  background-size: 40px 40px;
  opacity: .6;
  z-index: -1;
  pointer-events: none;
  filter: saturate(110%);
}

/* Layout sections */
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: .25rem;
  /* glossy, hacker vibe via gradient text */
  background: linear-gradient(90deg, #ffffff 0%, #d8c8ff 60%, #ffd6ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.meta {
  font-size: .92rem;
  color: #e8d7f5;
  opacity: .95;
}
main { padding: 1rem; }

/* Content card with frosted glass look (mobile-first) */
article {
  max-width: 860px;
  margin: 1.25rem auto;
  padding: 1.75rem;
  border-radius: 14px;
  background: rgba(12, 0, 20, 0.65);
  border: 1px solid rgba(120, 0, 40, 0.55); /* maroon tint for hacker vibe */
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f3eaff;
  line-height: 1.75;
}
.featured-image { margin-bottom: 1rem; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); }
.featured-image img { display: block; width: 100%; height: auto; }

/* Typography inside article for readability on small screens */
p { margin: 1rem 0; color: #f1e7f7; }

/* Footer / CTA region */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #cbd3de;
  background: #0a0a14;
  border-top: 1px solid rgba(255,255,255,.08);
}
.product-ad {
  display: inline-block;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-bottom: .75rem;
}
.product-ad h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: #f0e5ff;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  margin: 0;
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); background: rgba(255,255,255,.28); }

/* Focus styles for accessibility (keyboard users) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Small-screen polish */
@media (min-width: 600px) {
  header h1 { font-size: 3rem; }
}
@media (min-width: 900px) {
  article { padding: 2rem; }
  .product-ad a p { padding: .8rem 1.2rem; }
}
@media (max-width: 420px) {
  article { padding: 1rem; }
  .product-ad a p { padding: .6rem .9rem; font-size: .92rem; }
}