﻿/* ============================================
   Klyper HRMS  -  About the Product
   ============================================ */

.hrms-about {
  --ha-navy: #0a1c3d;
  --ha-royal: #1d5eff;
  --ha-cyan: #00e8ff;
  --ha-muted: #5a6d84;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 5vw, 72px) 0 clamp(52px, 6vw, 80px);
  background:
    linear-gradient(180deg, #eaf5ff 0%, #f5faff 42%, #eef5fc 100%);
  color: var(--ha-navy);
}

.hrms-about__features {
  margin-top: clamp(40px, 4.5vw, 56px);
}

.hrms-about > .container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.hrms-about__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hrms-about__curve {
  position: absolute;
  filter: blur(1.5px);
}

.hrms-about__curve--tl {
  display: none;
  background: none;
  opacity: 0;
  filter: none;
}

.hrms-about__curve--br {
  display: none;
  background: none;
  opacity: 0;
  filter: none;
}

.hrms-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: clamp(8px, 1.2vw, 16px);
  row-gap: clamp(16px, 2.5vw, 24px);
  align-items: start;
}

/* ---------- Left copy ---------- */
.hrms-about__copy {
  max-width: 100%;
  margin-top: 8px;
}

.hrms-about__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 16px 8px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(160, 196, 240, 0.9);
  box-shadow: 0 6px 16px rgba(29, 94, 255, 0.06);
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ha-royal);
}

.hrms-about__badge svg {
  width: 15px;
  height: 15px;
  color: var(--ha-royal);
}

.hrms-about__title {
  margin: 0 0 16px;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: clamp(2.15rem, 1.45rem + 2.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ha-navy);
}

.hrms-about__title-accent {
  position: relative;
  display: inline-block;
  color: var(--ha-royal);
  
}

.hrms-about__title-underline {
  position: absolute;
  left: 0;
  right: -4%;
  bottom: 0;
  width: 104%;
  height: 0.32em;
  overflow: visible;
  pointer-events: none;
}

.hrms-about__subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: clamp(1.02rem, 0.92rem + 0.35vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ha-navy);
}

.hrms-about__subtitle::before {
  content: "";
  flex: 0 0 4px;
  align-self: stretch;
  width: 4px;
  min-height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #1d5eff);
}

.hrms-about__lead {
  margin: 0 0 34px;
  max-width: 36rem;
  font-size: clamp(0.94rem, 0.9rem + 0.18vw, 1.04rem);
  line-height: 1.7;
  font-weight: 500;
  color: var(--ha-muted);
}

/* Benefit points  -  single row */
.hrms-about__points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 16px;
}

.ha-point {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.ha-point__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.ha-point__icon svg {
  width: 22px;
  height: 22px;
}

.ha-point__icon--blue {
  color: #2563eb;
  background: linear-gradient(160deg, #eaf2ff, #dbeafe);
}

.ha-point__icon--violet {
  color: #6366f1;
  background: linear-gradient(160deg, #eef0ff, #e0e7ff);
}

.ha-point__title {
  margin: 0;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ha-navy);
}

.ha-point__desc {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  font-weight: 500;
  color: #7a8aa0;
}

/* ---------- Right illustration  -  circular orbit ---------- */
.hrms-about__visual {
  position: relative;
  min-height: clamp(280px, 32vw, 350px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-left: -8px;
}

.ha-eco {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  margin-left: 0;
  margin-right: 0;
  background: transparent;
  overflow: visible;
  isolation: isolate;
}

.ha-eco__wash {
  display: none;
  background: none;
  filter: none;
  pointer-events: none;
}

.ha-eco__blob {
  display: none;
}

/* Orbit rings + spoke connectors */
.ha-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ha-orbit__ring {
  fill: none;
  stroke-linecap: round;
}

.ha-orbit__ring--outer {
  stroke: rgba(37, 99, 235, 0.22);
  stroke-width: 1.4;
  stroke-dasharray: 6 8;
  animation: ha-orbit-spin 48s linear infinite;
  transform-origin: 200px 200px;
}

.ha-orbit__ring--mid {
  stroke: rgba(29, 94, 255, 0.28);
  stroke-width: 1.6;
}

.ha-orbit__ring--inner {
  stroke: rgba(56, 140, 255, 0.2);
  stroke-width: 1.2;
  stroke-dasharray: 3 6;
  animation: ha-orbit-spin-rev 36s linear infinite;
  transform-origin: 200px 200px;
}

.ha-orbit__spokes line {
  stroke: rgba(37, 99, 235, 0.28);
  stroke-width: 1.35;
  stroke-linecap: round;
}

.ha-orbit__nodes circle {
  fill: #3b82f6;
  opacity: 0.55;
}

/* Shared slab  -  premium layered 3D tile */
.ha-slab {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px 8px;
  width: 88px;
  height: 86px;
  border-radius: 16px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  animation: none;
  will-change: auto;
}

.ha-slab__face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ha-slab__wave {
  display: none;
  background: none;
  opacity: 0;
  filter: none;
}

/* Solid depth edges (no neon glow) */
.ha-slab__edge-b,
.ha-slab__edge-r {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.ha-slab__edge-b {
  left: 3px;
  right: -2px;
  bottom: -10px;
  height: 12px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(90deg, #4db8f0 0%, #2aa0e8 50%, #1a7fc4 100%);
  box-shadow: 0 8px 14px rgba(20, 60, 120, 0.22);
}

.ha-slab__edge-r {
  top: 4px;
  bottom: -2px;
  right: -9px;
  width: 11px;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, #5cc0f5 0%, #2a98d8 45%, #156fa8 100%);
  box-shadow: 4px 2px 12px rgba(20, 60, 120, 0.16);
}

.ha-slab__badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.ha-slab__badge svg,
.ha-slab__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ha-slab__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
}

.ha-slab__label {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 9.5em;
}

/* Blue glass slabs */
.ha-slab--blue {
  color: #ffffff;
  background:
    linear-gradient(
      148deg,
      #4a82ff 0%,
      #2563eb 38%,
      #1a3fa8 72%,
      #0c2466 100%
    );
  border: 1px solid rgba(160, 200, 255, 0.35);
  box-shadow:
    0 14px 28px rgba(15, 40, 100, 0.28),
    0 4px 10px rgba(15, 40, 100, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -14px 24px rgba(0, 0, 0, 0.22);
}

.ha-slab--blue .ha-slab__label {
  color: #ffffff;
}

.ha-slab--blue .ha-slab__badge {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ha-slab--blue .ha-slab__wave {
  display: none;
  background: none;
  opacity: 0;
  filter: none;
}

/* White glossy slabs */
.ha-slab--white {
  color: #0a1c3d;
  background: linear-gradient(165deg, #ffffff 0%, #f7faff 50%, #eaf2fc 100%);
  border: 1px solid rgba(200, 218, 240, 0.95);
  box-shadow:
    0 14px 28px rgba(20, 50, 110, 0.16),
    0 4px 10px rgba(20, 50, 110, 0.08),
    inset 0 1px 0 #ffffff,
    inset 0 -10px 18px rgba(180, 205, 235, 0.25);
}

.ha-slab--white .ha-slab__label {
  color: #0a1c3d;
}

.ha-slab--white .ha-slab__icon svg {
  stroke: #3b6df5;
}

.ha-slab--white .ha-slab__icon--violet svg {
  stroke: #5b6cf0;
}

.ha-slab--white .ha-slab__wave {
  display: none;
  background: none;
  opacity: 0;
  filter: none;
}

.ha-slab:hover {
  z-index: 8;
  transform: translate(-50%, -50%) scale(1.06);
}

/* Center core */
.ha-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  width: clamp(92px, 26%, 108px);
  transform: translate(-50%, -50%);
}

.ha-core__body {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #ffffff;
  background:
    linear-gradient(
      150deg,
      #5a90ff 0%,
      #2f6aef 35%,
      #1a48b8 68%,
      #0c2870 100%
    );
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 14px 28px rgba(15, 40, 100, 0.28),
    0 0 0 8px rgba(37, 99, 235, 0.08),
    0 0 0 16px rgba(37, 99, 235, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -14px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: none;
}

.ha-core__body .ha-slab__edge-b,
.ha-core__body .ha-slab__edge-r {
  display: none;
}

.ha-core__glow {
  display: none;
}

.ha-core__icon {
  width: 52%;
  height: 52%;
  position: relative;
  z-index: 1;
}

.ha-core__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 2px 4px rgba(0, 20, 60, 0.25));
}

.ha-core:hover .ha-core__body {
  transform: scale(1.05);
}

/*
  Circular orbit positions (6 modules @ 60deg).
  Radius ~37% from center. Order clockwise from top:
  attendance -> leave -> reports -> expenses -> shifts -> payroll
*/
.ha-slab--attendance {
  top: 13%;
  left: 50%;
  animation-delay: 0s;
  z-index: 5;
}

.ha-slab--leave {
  top: 31.5%;
  left: 82%;
  width: 96px;
  height: 90px;
  animation-delay: 0.35s;
  z-index: 4;
}

.ha-slab--reports {
  top: 68.5%;
  left: 82%;
  animation-delay: 0.2s;
  z-index: 4;
}

.ha-slab--expenses {
  top: 87%;
  left: 50%;
  animation-delay: 0.6s;
  z-index: 5;
}

.ha-slab--shifts {
  top: 68.5%;
  left: 18%;
  width: 98px;
  height: 90px;
  animation-delay: 1s;
  z-index: 4;
}

.ha-slab--payroll {
  top: 31.5%;
  left: 18%;
  animation-delay: 0.8s;
  z-index: 4;
}

@keyframes ha-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes ha-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes ha-orbit-spin-rev {
  to { transform: rotate(-360deg); }
}

/* Reveal */
.hrms-about .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hrms-about .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hrms-about__copy.reveal.is-visible {
  transform: translateY(-8px);
}

.hrms-about .reveal-delay-1 { transition-delay: 0.1s; }

@media (max-width: 1100px) {
  .hrms-about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
  }

  .hrms-about__copy.reveal.is-visible {
    transform: translateY(-4px);
  }

  .ha-eco {
    max-width: 340px;
  }

  .hrms-about__visual {
    min-height: clamp(260px, 30vw, 320px);
  }
}

@media (max-width: 960px) {
  .hrms-about {
    padding: clamp(32px, 4vw, 48px) 0 clamp(44px, 5.5vw, 64px);
  }

  .hrms-about__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 20px;
    text-align: center;
    align-items: center;
  }

  .hrms-about__copy {
    max-width: 560px;
    margin: 0 auto;
  }

  .hrms-about__copy.reveal.is-visible {
    transform: none;
  }

  .hrms-about__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hrms-about__subtitle {
    justify-content: center;
  }

  .hrms-about__subtitle::before {
    display: none;
  }

  .hrms-about__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hrms-about__points {
    text-align: left;
    max-width: 100%;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .hrms-about__visual {
    min-height: clamp(280px, 72vw, 360px);
    width: 100%;
    margin-left: 0;
    justify-content: center;
    align-items: center;
  }

  .ha-eco {
    max-width: min(340px, 86vw);
    margin: 0 auto;
  }

  .hrms-about__features {
    margin-top: clamp(32px, 4.5vw, 44px);
  }
}

@media (max-width: 640px) {
  .hrms-about {
    padding: 28px 0 48px;
  }

  .hrms-about__title {
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
  }

  .hrms-about__subtitle {
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
  }

  .hrms-about__lead {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.55;
  }

  .hrms-about__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    max-width: 100%;
  }

  .ha-point__icon {
    width: 40px;
    height: 40px;
  }

  .ha-point__title {
    font-size: 0.88rem;
  }

  .ha-point__desc {
    font-size: 0.75rem;
  }

  .hrms-about__visual {
    min-height: min(300px, 88vw);
  }

  .ha-eco {
    max-width: min(300px, 90vw);
  }

  .ha-core {
    width: 78px;
  }

  .ha-slab {
    padding: 8px 6px;
    gap: 3px;
    border-radius: 14px;
    width: 74px;
    height: 72px;
  }

  .ha-slab__badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .ha-slab__badge svg,
  .ha-slab__icon svg {
    width: 20px;
    height: 20px;
  }

  .ha-slab__icon {
    width: 32px;
    height: 32px;
  }

  .ha-slab__label {
    font-size: 0.46rem;
  }

  .ha-slab__edge-b {
    bottom: -8px;
    height: 9px;
  }

  .ha-slab__edge-r {
    right: -7px;
    width: 8px;
  }

  .ha-core__icon {
    width: 50%;
    height: 50%;
  }

  .ha-slab--leave,
  .ha-slab--shifts {
    width: 80px;
    height: 76px;
  }
}

@media (max-width: 480px) {
  .hrms-about__points {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
    max-width: 360px;
  }

  .ha-point {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
  }

  .ha-point__icon {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 400px) {
  .hrms-about__visual {
    min-height: 240px;
  }

  .ha-eco {
    max-width: 240px;
  }

  .ha-core {
    width: 68px;
  }

  .ha-slab {
    width: 64px;
    height: 62px;
    padding: 6px 4px;
    border-radius: 12px;
  }

  .ha-slab__badge {
    width: 28px;
    height: 28px;
  }

  .ha-slab__badge svg,
  .ha-slab__icon svg {
    width: 16px;
    height: 16px;
  }

  .ha-slab__icon {
    width: 26px;
    height: 26px;
  }

  .ha-slab__label {
    font-size: 0.4rem;
  }

  .ha-slab--leave,
  .ha-slab--shifts {
    width: 70px;
    height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ha-slab,
  .ha-core__body,
  .ha-orbit__ring--outer,
  .ha-orbit__ring--inner {
    animation: none;
  }

  .hrms-about .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
