/* Minimal CSS reset and layout foundation */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
html { font-size: 100%; }
body {
  margin: 0;
  color: #e8eaf6;
  background-color: #0b0b0f;
  /* Black & dark grey grid paper background with neon purple accents */
  background-image:
    /* vertical grid lines */
    linear-gradient(to right, rgba(150, 0, 255, 0.25) 1px, transparent 1px),
    /* horizontal grid lines */
    linear-gradient(to bottom, rgba(150, 0, 255, 0.25) 1px, transparent 1px),
    /* base dark sheet for depth */
    linear-gradient(#0b0b0f, #0b0b0f);
  background-size: 40px 40px, 40px 40px, auto;
  background-position: 0 0, 0 0, 0 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.5;
}

/* Neon cyberpunk accents */
:root {
  --purple-1: #8b5cf6;
  --purple-2: #7c3aed;
  --purple-3: #a855f7;
  --bg-glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text: #e9e3ff;
  --muted: #cbd5e1;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

a, button {
  color: inherit;
  text-decoration: none;
}

/* Layout sections */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 12, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(1.2) blur(4px);
}
.brand {
  font-weight: 700;
  letter-spacing: .5px;
  color: #eaf2ff;
  text-shadow: 0 0 8px rgba(124, 58, 237, 0.9);
  font-family: ui-moppins, system-ui, -apple-system, "Segoe UI";
}
.brand::after {
  content: " • Night Grid";
  color: #d5d4ff;
  font-weight: 500;
  margin-left: .25rem;
  text-shadow: 0 0 6px rgba(124,58,237,0.6);
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), var(--shadow);
}
.hero-copy {
  padding: 0.25rem;
}
.hero-copy h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 800;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #e9e0ff 0%, #d6ccff 40%, #bfb3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(124, 58, 237, 0.8);
}
.subhead {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(99, 102, 241, 0.95));
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 16px rgba(124,58,237,0.6);
  transition: transform .2s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta:focus-visible {
  outline: 3px solid #7c3aed;
  outline-offset: 2px;
}
.hero-media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(2px);
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 2.5rem;
  }
  .hero-copy h1 {
    font-size: 2.4rem;
  }
  .hero-media { min-height: 320px; }
}

/* Features section */
.features {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 14px;
  background: rgba(15, 15, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}
.feature {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.feature h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #e9e0ff;
}
.feature p {
  margin: 0;
  color: var(--muted);
}
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Testimonials section */
.testimonials {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 14px;
  background: rgba(15, 15, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  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(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.testimonial p {
  margin: 0 0 .25rem;
  color: #e9e6ff;
}
.testimonial footer {
  font-size: .9rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Bottom advertisement / ad footer */
.bottom-ad {
  margin-top: 2rem;
  padding: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 14px 14px;
}
.ad-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(99, 102, 241, 0.9));
  color: white;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 18px rgba(124,58,237,0.6);
}
.cta-mini {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.25);
  color: #fff;
}
.cta-mini:hover {
  background: rgba(255,255,255,0.15);
}
.bottom-ad a:focus-visible,
.cta:focus-visible,
.ad-link:focus-visible {
  outline: 3px solid #7c3aed;
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .brand { font-size: 0.95rem; }
  .hero-copy h1 { font-size: 1.6rem; }
}
