/* ==========================================================================
   PeopleSuite Website Intro / Preloader Styles
   File: intro.css
   Resolution-independent, high-DPI vector animation styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Inter:wght@700;800&display=swap');

/* Prevent scroll during intro */
body.ps-intro-locked {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Instant skip if already seen in current session */
.ps-intro-skip #ps-intro-overlay {
  display: none !important;
}

/* Full-viewport overlay container */
#ps-intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #f7f8f2 0%, #ebece4 40%, #d8dad0 75%, #c5c7bb 100%);
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Background subtle ambient lighting layer */
.ps-intro-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 65%);
  mix-blend-mode: soft-light;
}

/* Fullscreen canvas for glowing orb, particle ribbons, and corner rays */
#ps-intro-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Center stage container for the SVG logo & shadow */
.ps-intro-stage {
  position: relative;
  z-index: 2;
  width: min(92vw, 860px);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* The vector SVG logo */
.ps-logo-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.04));
}

/* Floor shadow ellipse */
.ps-shadow {
  transform-origin: center center;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

/* Zero-FOUC initial states: ensures absolutely NO static elements flash before animation starts */
.ps-blue-hex,
.ps-blue-glow-hex,
.ps-grey-hex,
.ps-connect-line,
.ps-connect-line-blue,
.ps-node-dot,
.ps-node-dot-blue,
.ps-wordmark,
.ps-char,
#ps-shadow-group {
  opacity: 0;
}

/* Vector paths styling (matching authentic PeopleSuite logo structure) */
.ps-blue-hex {
  fill: none;
  stroke: #1b75bb;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-grey-hex {
  fill: none;
  stroke: #525559;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-connect-line {
  fill: none;
  stroke: #525559;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-connect-line-blue {
  fill: none;
  stroke: #1b75bb;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-node-dot {
  fill: #525559;
}

.ps-node-dot-blue {
  fill: #1b75bb;
}

/* Wordmark typography */
.ps-wordmark {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 88px;
  letter-spacing: -0.025em;
  user-select: none;
}

/* Optional protective knockout halo (Solution 3) */
.ps-wordmark.has-halo .ps-char {
  stroke: #f6f8fb;
  stroke-width: 14px;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke fill;
}

.ps-text-people {
  fill: #525559;
}

.ps-text-suite {
  fill: #1b75bb;
}

/* Subtle gloss / shimmer sweep across the wordmark */
.ps-shimmer-sweep {
  opacity: 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Discreet, modern Skip Button */
.ps-skip-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #55595c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  pointer-events: auto;
  opacity: 0;
  animation: psFadeIn 0.5s ease 0.8s forwards;
}

.ps-skip-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1b75bb;
  border-color: rgba(27, 117, 187, 0.25);
  box-shadow: 0 6px 16px rgba(27, 117, 187, 0.12);
  transform: translateY(-1px);
}

.ps-skip-btn:active {
  transform: translateY(0);
}

.ps-skip-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.ps-skip-btn:hover svg {
  transform: translateX(2px);
}

@keyframes psFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ps-intro-stage {
    width: 95vw;
  }
  .ps-skip-btn {
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .ps-intro-stage {
    width: 98vw;
  }
  .ps-skip-btn {
    top: 12px;
    right: 12px;
  }
}
