/* Reset and base */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0a0f14;
  --cyan: #00e6ff;
  --cyan-dark: #00b6f0;
  --text: #eaffff;
  --glass: rgba(0, 255, 255, 0.12);
  --panel: rgba(10, 12, 18, 0.55);
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background-color: var(--bg-dark);
  /* red crosshatch + subtle dark base for hacker/cyberpunk vibe */
  background-image:
    repeating-linear-gradient(45deg,
      rgba(200, 0, 0, 0.18) 0px,
      rgba(200, 0, 0, 0.18) 2px,
      transparent 2px,
      transparent 4px),
    repeating-linear-gradient(-45deg,
      rgba(200, 0, 0, 0.18) 0px,
      rgba(200, 0, 0, 0.18) 2px,
      transparent 2px,
      transparent 4px);
  background-size: 8px 8px, 8px 8px;
  background-position: 0 0, 4px 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout container and base content spacing (mobile-first) */
main { padding: 1rem; }

/* Header / Hero (frosted glass, cyan glow) */
header {
  margin: 1rem auto;
  padding: 2.5rem 1rem;
  max-width: 1100px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0, 255, 255, 0.25);
}
header h1 {
  font-size: 1.9rem;
  color: #c8ffff;
  line-height: 1.15;
  margin-bottom: .4rem;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}
header .meta {
  display: block;
  font-size: .92rem;
  color: #bdeaff;
  opacity: .95;
}
@media (min-width: 700px) {
  header { padding: 3rem 2.5rem; }
  header h1 { font-size: 2.6rem; }
}

/* Article content (frosted glass card) */
article {
  max-width: 760px;
  margin: 1rem auto;
  padding: 1.2rem;
  color: #eaffff;
  background: rgba(8, 12, 22, 0.28);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 12px;
  line-height: 1.75;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.featured-image { margin: 0 0 1rem; display: block; }
.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.25);
}
@media (min-width: 700px) {
  article { padding: 1.5rem; }
}
@media (min-width: 1024px) {
  article { font-size: 1.05rem; }
}

/* Footer with CTA styled as a prominent cyan button + product ad vibe */
footer {
  padding: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 255, 255, 0.25);
  background: rgba(5, 8, 14, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  margin-bottom: .75rem;
}
.product-ad h3 { margin: 0; font-size: 1.05rem; color: #00e8ff; }
.product-ad a {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #001219;
  font-weight: 700;
  background: linear-gradient(135deg, #00e5ff 0%, #00b8f7 100%);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 14px rgba(0, 255, 255, 0.4);
}
.product-ad a:focus-visible {
  outline: 2px solid #00ffd6;
  outline-offset: 2px;
}
.product-ad p { margin: 0; color: #eaffff; }
footer p { font-size: .9rem; color: #bfefff; }

/* Link styles + accessibility focus for keyboard users */
a { color: #8ff; text-decoration: none; transition: color .2s ease; }
a:hover { color: #b9ffff; }
a:focus-visible {
  outline: 2px solid #00ffd6;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}