/* Minimal CSS reset and base styles for the landing page */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #e9e9f0;
  background-color: #0a0a0f;
  /* Black & dark grey grid paper background with neon purple accents (hacker night theme) */
  background-image:
    linear-gradient(to right, rgba(125, 58, 237, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 58, 237, 0.25) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.5;
}

/* Neon cyberpunk accents and frosted glass basics */
:root {
  --bg-glass: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.15);
  --text: #e9e8ff;
  --muted: #cbd5e1;
  --purple-start: #7c3aed;
  --purple-end: #8b5cf6;
  --focus: #7c3aed;
  --shadow: 0 8px 24px rgba(0,0,0,.5);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.site-header {
  position: sticky; top: 0; z-index: 5;
  padding: 0.9rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(8,8,12,.6);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: saturate(1.2) blur(4px);
}
.brand {
  font-weight: 700;
  color: #e9e9ff;
  text-shadow: 0 0 8px rgba(124,58,237,.9);
}
.brand::after {
  content: " • Night Grid";
  color: #d8d4ff; font-weight: 500; margin-left: .3rem;
  text-shadow: 0 0 6px rgba(124,58,237,.6);
}

main { padding: 2rem 1rem 2.5rem; max-width: 1100px; margin: 0 auto; }

/* Hero section: single column on mobile, 2-column on wide */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
}
.hero-copy h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 .75rem;
  font-weight: 800;
  /* gradient text for neon vibe */
  background: linear-gradient(135deg, #e9e3ff 0%, #d2c4ff 40%, #bfb3ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(124,58,237,.8);
}
.subhead { color: var(--muted); font-size: 1rem; margin-bottom: 0.9rem; }
.cta {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .88rem 1.25rem; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, var(--purple-start), var(--purple-end));
  color: #fff; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(124,58,237,.6);
}
.cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hero-media {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
}
.hero-media img { width: 100%; height: auto; display: block; }

/* Grid behavior for larger screens */
@media (min-width: 768px) {
  .hero { grid-template-columns: 1.02fr 0.98fr; padding: 2.5rem; }
  .hero-copy h1 { font-size: 2.4rem; }
  .hero-media { min-height: 320px; }
}

/* Features section grid */
.features { margin-top: 2rem; padding: 1.25rem; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
}
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: .25rem; }
.feature { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); }
.feature h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: #e9e0ff; }

/* Testimonials grid */
.testimonials { margin-top: 2rem; padding: 1.75rem; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
}
.testimonials h2 { font-size: 1.25rem; margin-bottom: .75rem; color: #e9e0ff; }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.testimonial { padding: 1rem; border-radius: 12px; background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12); }
.testimonial p { margin: 0 0 .25rem; color: #e9e6ff; }

/* Bottom advertisement / product ad bar */
.bottom-ad { margin-top: 2rem; padding: 1rem; text-align: center;
  background: rgba(0,0,0,.4); border-radius: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.ad-link { display: inline-flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(99,102,241,.95));
  color: #fff; font-weight: 700; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(124,58,237,.6);
}
.cta-mini { padding: .25rem .6rem; border-radius: 999px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); color: #fff;
}
.cta-mini:hover { background: rgba(255,255,255,.15); }

/* Focus-visible for ad and CTA/accessibility */
.ad-link:focus-visible, .cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Small screens tweaks */
@media (max-width: 520px) {
  .brand { font-size: .95rem; }
  .hero-copy h1 { font-size: 1.6rem; }
}