/* Npoint Technologies — placeholder V3 (animated reveal) */

:root {
  --navy:   #0E2A52;
  --green:  #15A37A;
  --grn-bt: #1FC08A;
}

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

html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ── Logo lockup ─────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: flex-end;
  user-select: none;
}

.logo__word {
  display: flex;
  font-size: clamp(56px, 14vw, 132px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #ffffff;
}

/* each letter rises + fades in, staggered */
.logo__word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  animation: letter-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.logo__word span:nth-child(1) { animation-delay: 0.05s; }
.logo__word span:nth-child(2) { animation-delay: 0.13s; }
.logo__word span:nth-child(3) { animation-delay: 0.21s; }
.logo__word span:nth-child(4) { animation-delay: 0.29s; }
.logo__word span:nth-child(5) { animation-delay: 0.37s; }
.logo__word span:nth-child(6) { animation-delay: 0.45s; }

@keyframes letter-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ── The point: drops in, bounces, then idles ───────────────────── */
.logo__dot {
  position: relative;
  width: clamp(13px, 3.2vw, 30px);
  height: clamp(13px, 3.2vw, 30px);
  margin-left: clamp(5px, 1.1vw, 11px);
  margin-bottom: clamp(5px, 1.4vw, 13px);
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--grn-bt);
  opacity: 0;
  /* drop (once) → then hand off to a gentle idle pulse */
  animation:
    dot-drop  0.85s cubic-bezier(0.34, 1.4, 0.5, 1) 0.62s forwards,
    dot-idle  2.6s ease-in-out 1.7s infinite;
}

/* expanding ripple ring, fired as the dot lands */
.logo__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--grn-bt);
  opacity: 0;
  animation: dot-ripple 0.9s ease-out 1.25s 1;
}

@keyframes dot-drop {
  0%   { opacity: 0; transform: translateY(-130%) scale(0.6); }
  55%  { opacity: 1; transform: translateY(0)     scale(1); }
  72%  { transform: translateY(0) scaleX(1.18) scaleY(0.84); } /* squash */
  86%  { transform: translateY(-14%) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dot-ripple {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(3.6); }
}

@keyframes dot-idle {
  0%, 100% { transform: translateY(0)    scale(1); }
  50%      { transform: translateY(-14%) scale(1.04); }
}

/* ── "Technologies" line — fades in last ─────────────────────────── */
.tagline {
  margin-top: clamp(14px, 2.4vw, 26px);
  font-size: clamp(13px, 2.3vw, 22px);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  user-select: none;
  opacity: 0;
  animation: tagline-in 0.9s ease forwards 1.4s;
}

@keyframes tagline-in {
  from { opacity: 0; letter-spacing: 0.62em; }
  to   { opacity: 1; letter-spacing: 0.42em; }
}

@media (prefers-reduced-motion: reduce) {
  .logo__word span,
  .logo__dot,
  .tagline { animation: none; opacity: 1; transform: none; }
  .logo__dot::after { animation: none; }
}
