/* ===== Reset & base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  height: 100vh;
}

body {
  margin: 0;
  height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(
    180deg,
    #0a0a12 0%,
    #0d0a18 25%,
    #0f1220 50%,
    #0a1522 75%,
    #0d1520 100%
  );
}

/* ===== Evolution layer: random nodes, birth flash, connect, lifecycle ===== */
.evolution-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0.5;
  display: block;
}

/* ===== Neuron-like blobs (left & right) ===== */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

body::before {
  left: -15vmax;
  top: 20%;
  background: radial-gradient(circle, rgba(100, 120, 220, 0.5) 0%, transparent 70%);
}

body::after {
  right: -15vmax;
  top: 50%;
  transform: translateY(-50%); /* Center vertically */
  background: radial-gradient(circle, rgba(80, 140, 200, 0.4) 0%, transparent 70%);
}

/* ===== Landing & hero ===== */
.landing {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}

.hero {
  text-align: center;
  max-width: 90rem;
}

/* WE ARE COLONY — Sixtyfour, white */
.hero-title {
  font-family: "Sixtyfour", sans-serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: 0.1em;
  margin: 0 0 0.35rem;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* wearecolony.ai — smaller, white, slightly muted */
.hero-domain {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
}

/* CTA button */
.cta {
  display: inline-block;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #0a0a12;
  background: linear-gradient(135deg, #a0d8ef 0%, #7ec8e3 100%);
  padding: 0.6rem 1.35rem;
  border-radius: 4px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  box-shadow: 0 0 24px rgba(126, 200, 227, 0.5);
  transform: translateY(-1px);
}

.cta:focus {
  outline: 2px solid #7ec8e3;
  outline-offset: 4px;
}

/* Placeholder for #learn-more anchor (optional second block below the fold) */
.learn-more {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.learn-more-tagline {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.cta-secondary {
  background: transparent;
  color: #a0d8ef;
  border: 1px solid rgba(160, 216, 239, 0.5);
}

.cta-secondary:hover {
  background: rgba(160, 216, 239, 0.1);
  box-shadow: 0 0 24px rgba(126, 200, 227, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  html {
    height: -webkit-fill-available; /* Better mobile viewport support */
  }

  body {
    height: 100vh;
    height: -webkit-fill-available; /* Better mobile viewport support */
  }

  .landing {
    height: 100vh;
    height: -webkit-fill-available; /* Better mobile support */
    padding: 1rem;
  }

  .hero-title {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    letter-spacing: 0.06em;
    line-height: 1.1;
  }

  .hero-domain {
    letter-spacing: 0.15em;
  }

  /* Ensure body pseudo-elements don't create bottom overlay */
  body::after {
    top: 50%;
    bottom: auto;
  }
}
