/* ---- Reset ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Page ---- */
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #e6e9ef;
  /* Photo + two gentle overlays:
     - radial: transparent center, darker edges
     - top fade: slight darkening only at the top for headings
  */
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(0,0,0,0.00) 0%,
      rgba(11,19,43,0.12) 38%,
      rgba(11,19,43,0.32) 62%,
      rgba(11,19,43,0.55) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(11,19,43,0.35) 0%,
      rgba(11,19,43,0.00) 45%
    ),
    url('background.jpg') no-repeat center center fixed;
  background-size: cover, cover, cover;
  overflow-x: hidden;
  margin: 0;
}

/* ---- Particles ---- */
#particles-js {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* sits behind overlay */
}

/* ---- Overlay / Card ---- */
.overlay {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 8vh 16px;
}

.content {
  width: min(100%, 880px);
  backdrop-filter: blur(8px) saturate(1.05);
  background: linear-gradient(180deg, hsla(225, 30%, 15%, 0.55), rgba(10,14,28,.35));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: clamp(20px, 4.5vw, 44px);
}

/* ---- Branding ---- */
.logo {
  width: clamp(88px, 12vw, 128px);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

/* ---- Typography ---- */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .35em; }
h1 {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  text-align: center;
}
h2 {
  font-weight: 600;
  font-size: clamp(18px, 3vw, 22px);
  text-align: center;
  color: #b9c0d4; /* muted */
  margin-bottom: 1.25rem;
}
.tagline {
  text-align: center;
  margin: 0 auto 1.25rem;
  color: #b9c0d4;
  max-width: 60ch;
}

/* ---- Grid Cards ---- */
.grid {
  display: grid;
  gap: 16px;
  margin: 24px 0 8px;
}

.card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: clamp(14px, 2.4vw, 20px);
  background: rgba(255,255,255,.02);
}

.about p { margin: .35rem 0; }
.about ul { margin: .5rem 0 0 1.25rem; }
.about li { margin: .25rem 0; }

/* ---- CTA ---- */
.cta {
  display: grid;
  justify-content: center;
  margin-top: 18px;
}
.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  color: #0e152b;
  background: #6ff3c4; /* brand */
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(111,243,196,.25);
}
.btn:focus { outline: none; box-shadow: 0 0 0 4px rgba(111,243,196,.25); }
.btn:hover { transform: translateY(-1px); }

/* ---- Footer ---- */
footer {
  margin-top: 22px;
  text-align: center;
  color: #b9c0d4;
  font-size: .92rem;
}

/* ---- Accessibility / Motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .content { padding: 20px; }
}

/* Accessible helper */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.notify {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 18px auto 4px;
  max-width: 520px;
  width: 100%;
}

.notify input[type="email"] {
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  outline: none;
}
.notify input[type="email"]::placeholder { color: rgba(255,255,255,.68); }

.note {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  color: #d6d9e0;
  min-height: 1.2em;
  margin-top: 4px;
}

/* honeypot */
.hp { position: absolute; left: -9999px; }

@media (max-width: 480px) { .notify { grid-template-columns: 1fr; } }

/* Ensure the injected canvas is visible and full-bleed */
#particles-js,
#particles-js > canvas.particles-js-canvas-el {
  position: absolute;        /* match your original behavior */
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 1;                /* overlay/content is z=2 */
}

/* (Optional) if you want clicks anywhere to still spawn particles,
   leave pointer-events as normal and handle it in JS (see step 2). */