/* Minimal reset and cyberpunk landing page styling */

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #e9e9f0;
  background-color: #0a0a0f;
  /* black/dark grey grid paper with neon purple accents */
  background-image:
    linear-gradient(to right, rgba(124, 58, 237, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:root {
  --bg-glass: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.18);
  --text: #e9e9f0;
  --muted: #cbd5e1;
  --purple-1: #7c3aed;
  --purple-2: #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;
}

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

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

/* Hero section: mobile-first, two columns on wide screens */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.hero-copy h1 { 
  font-size: 1.9rem; line-height: 1.15;
  margin: 0 0 .75rem; font-weight: 800;
  background: linear-gradient(135deg, #e9e3ff 0%, #d6ccff 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: .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-1), var(--purple-2));
  color: #fff; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(124,58,237,.6);
  text-decoration: none;
}
.cta:hover { transform: translateY(-1px); }
.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,.15); background: rgba(0,0,0,.25); }
.hero-media img { width: 100%; height: auto; display: block; }

/* Responsive: two columns on larger viewports */
@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 */
.features { margin-top: 2rem; padding: 1.5rem; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.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 */
.testimonials { margin-top: 2rem; padding: 1.75rem; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); 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);
  text-decoration: none; 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 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; }
}