/* minimalist reset and cyberpunk frost-glass styling for the landing page */
/* mobile-first, olive crosshatch background, maroon accents, frosted glass panels */

:root{
  --olive-dark: #3a5a1a;
  --olive-mid: #6b8b32;
  --olive-light: #98b657;
  --maroon: #7a001f;
  --maroon-dark: #4b0014;
  --bg: #0e0e0e;
  --card: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.25);
  --text: #f3efe8;
  --text-soft: rgba(243,238,232,.85);
  --cta: #e03b6f;
  --cta-dk: #9b1b4c;
  --shadow: 0 8px 24px rgba(0,0,0,.45);
  --glow: 0 0 14px rgba(122,0,31,.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: #0a0a0a;
  /* olive crosshatch background (two angled gradients) */
  background-image:
    linear-gradient(45deg, rgba(58,90,26,.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(58,90,26,.25) 25%, transparent 25%),
    radial-gradient(circle at 20% 0%, rgba(0,0,0,.25), transparent 40%);
  background-size: 12px 12px, 12px 12px, cover;
  background-position: 0 0, 6px 6px, 0 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint global glow to reinforce hacker/cyberpunk vibe on base layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% -10%, rgba(122,0,31,.25), transparent 40%),
              radial-gradient(circle at 50% 110%, rgba(58,90,26,.25), transparent 40%);
  mix-blend-mode: screen;
  filter: saturate(110%);
}

/* header hero feel */
header {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(2px);
}
header h1 {
  margin: 0 0 .25rem;
  font-size: 1.75rem;
  letter-spacing: .5px;
  color: #f8efe9;
  text-shadow: 0 0 8px rgba(122,0,31,.6);
}
header .meta {
  font-size: .92rem;
  color: rgba(246,238,232,.85);
  opacity: .95;
}

/* frosted glass article card for content */
main > article {
  max-width: 760px;
  margin: 1.25rem auto;
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 0.5rem 0 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
main > article p {
  color: #f6f2ec;
}
main > article p + p { margin-top: 1rem; }

/* ensure links and interactive elements are accessible */
a {
  color: #a6f1ff;
  text-decoration: none;
}
a:hover, a:focus-visible {
  text-decoration: underline;
  outline: none;
  color: #e6fffb;
}
a:focus-visible {
  outline: 3px solid #ffd24d;
  outline-offset: 2px;
  border-radius: 6px;
}

/* prominent CTA button styling inside the footer ad block */
footer {
  padding: 1.5rem;
  text-align: center;
  color: #ddd;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.15);
}
.product-ad {
  margin: 0 auto 1rem;
  padding: .5rem;
  display: inline-block;
  text-align: left;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
}
.product-ad h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  color: #e8faff;
}
.product-ad a {
  text-decoration: none;
}
.product-ad p {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--maroon), var(--cta-dk));
  box-shadow: 0 6px 14px rgba(122,0,31,.6);
  transition: transform .2s ease;
}
.product-ad p:focus-visible { outline: 3px solid #ffd24d; outline-offset: 2px; }

/* small visual accents for depth (neon-like borders around content blocks) */
main > article,
.product-ad {
  border-left: 2px solid rgba(255,255,255,.2);
  border-right: 2px solid rgba(0,0,0,.15);
}
main > article { position: relative; }
main > article::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: -2px;
  height: 8px;
  background: linear-gradient(90deg, rgba(122,0,31,.0), rgba(122,0,31,.6), rgba(122,0,31,.0));
  filter: blur(0.5px);
  border-radius: 6px;
  pointer-events: none;
  opacity: .9;
}

/* responsive tweaks (desktop) */
@media (min-width: 768px) {
  body { font-size: 16px; }
  header { text-align: left; padding: 3rem 2rem 2rem; }
  header h1 { font-size: 3rem; }
  header .meta { font-size: 1rem; margin-top: .25rem; }

  main > article { margin: 2rem auto; padding: 2rem; }

  .featured-image { margin: 0 0 1rem; }
  footer { padding: 2rem; }
  .product-ad h3 { font-size: 1.15rem; }
  .product-ad p { padding: .75rem 1.25rem; font-size: 1rem; }
}
