:root {
  color-scheme: dark;
  --bg: #02030a;
  --ink: #f8fbff;
  --muted: rgba(230, 238, 255, 0.56);
  --pad: clamp(1.25rem, 3vw, 3.5rem);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 48%, rgba(0, 43, 191, 0.3), transparent 48%), var(--bg);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 34%, rgba(2, 3, 10, 0.04) 62%, rgba(1, 2, 8, 0.55) 100%),
    linear-gradient(to bottom, rgba(1, 2, 8, 0.12), transparent 25%, transparent 75%, rgba(1, 2, 8, 0.46));
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 var(--pad) 3.5rem;
  text-align: center;
  font-size: clamp(3rem, 7.2vw, 8.4rem);
  font-weight: 720;
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-wrap: balance;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.72);
}

h1 em {
  display: inline-block;
  color: rgba(248, 251, 255, 0.7);
  font-style: normal;
  font-weight: 450;
}

footer {
  position: fixed;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  border-top: 1px solid rgba(166, 202, 255, 0.13);
  background: rgba(2, 3, 10, 0.46);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.015em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

footer p { margin: 0; }

@media (max-width: 640px) {
  h1 {
    padding-bottom: 6rem;
    font-size: clamp(2.9rem, 10.8vw, 4.5rem);
    line-height: 0.95;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.69rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 { text-shadow: 0 3px 22px rgba(0, 0, 0, 0.82); }
}
