/* Homepage-only sections: About, Services accordion, Why TheClickUp
   Linked only from index.html — do not load on inner pages. */

:root {
  --tcu-blue: #0050E8;
  --tcu-blue-2: #075EEA;
  --tcu-charcoal: #18181b;
  --tcu-muted: #71717a;
  --tcu-surface: #f4f4f5;
  --tcu-card-radius: 24px;
  --tcu-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --tcu-shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Shared pill badge */
.tcu-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--tcu-shadow);
  color: var(--tcu-blue);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tcu-pill__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--tcu-blue);
  flex-shrink: 0;
}
.tcu-pill__dot::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: rgba(0, 80, 232, 0.25);
  animation: rippleFade 1.8s ease-out infinite;
}
.tcu-pill--center {
  margin-left: auto;
  margin-right: auto;
}

.tcu-mark {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.08em 0.18em;
  border-radius: 0.2em;
  background: rgba(0, 80, 232, 0.14);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.12);
}

/* ========== About Us (below hero) ========== */
.home-about {
  position: relative;
  min-height: 0;
  background: var(--tcu-surface);
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
}
.home-about__header {
  margin-bottom: clamp(32px, 4vw, 48px);
  max-width: 18ch;
}
.home-about__title {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.home-about__title-line {
  display: block;
  color: #09090b;
}
.home-about__title-line--muted {
  color: #a1a1aa;
  background: linear-gradient(180deg, #3f3f46 0%, #d4d4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}
.home-about__dark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  border-radius: 32px;
  padding: 48px 28px 0;
  background:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(0deg, var(--tcu-charcoal), var(--tcu-charcoal));
  box-shadow:
    0 7.77px 2.21px rgba(0, 0, 0, 0.06),
    0 3px 3px rgba(0, 0, 0, 0.1),
    0 -8px 0 #2e2e2e inset,
    0 4px 0 rgba(255, 255, 255, 0.3) inset;
  overflow: hidden;
  min-height: 520px;
}
.home-about__avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px;
  border: 1px solid #3f3f46;
  border-radius: 99px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.home-about__avail .tcu-pill__dot {
  background: var(--tcu-blue);
}
.home-about__loc {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 16ch;
}
.home-about__loc span {
  color: var(--tcu-blue-2);
}
.home-about__cta {
  margin-bottom: 8px;
}
.home-about__globe {
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 240px;
}
.home-about__globe img {
  width: 118%;
  max-width: none;
  margin: 0 0 -12% 0;
  display: block;
  filter: drop-shadow(0 -20px 40px rgba(255, 255, 255, 0.08));
}
.home-about__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
}
.home-about__card {
  position: relative;
  flex: 1;
  background: #fff;
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--tcu-shadow);
  overflow: hidden;
}
.home-about__card-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #3f3f46;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 32ch;
}
.home-about__card-foot {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-about__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tcu-surface);
  color: #3f3f46;
  font-size: 0.8rem;
  font-weight: 600;
}
.home-about__quote {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.home-about__quote-img {
  flex-shrink: 0;
  width: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: #e4e4e7;
}
.home-about__quote-img img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center top;
}
.home-about__quote-body {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}
.home-about__quote-mark {
  color: #e4e4e7;
  margin-bottom: 8px;
  line-height: 0;
}
.home-about__quote-text {
  margin: 0 0 16px;
  color: #18181b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.home-about__quote-cite {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.home-about__quote-cite .name {
  font-weight: 600;
  color: #18181b;
}
.home-about__quote-cite .line {
  width: 24px;
  height: 1px;
  background: #d4d4d8;
}
.home-about__quote-cite .role {
  color: var(--tcu-muted);
}

@media (max-width: 991px) {
  .home-about__grid {
    grid-template-columns: 1fr;
  }
  .home-about__header {
    max-width: none;
  }
  .home-about__dark {
    min-height: 0;
    padding-top: 40px;
  }
}

/* ========== Services accordion ========== */
.home-services {
  position: relative;
  min-height: 0;
  background: #fff;
  padding-top: clamp(72px, 9vw, 110px);
  padding-bottom: clamp(72px, 9vw, 110px);
}
.home-services__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.home-services__intro .tcu-pill {
  color: #ef4444;
}
.home-services__intro .tcu-pill__dot {
  background: #ef4444;
}
.home-services__intro .tcu-pill__dot::before {
  background: rgba(239, 68, 68, 0.25);
}
.home-services__title {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #09090b;
  max-width: 12ch;
}
.home-services__lead {
  margin: 20px 0 0;
  max-width: 36ch;
  color: #52525b;
  font-size: 1rem;
  line-height: 1.65;
}
.home-services__visual {
  margin-top: 36px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--tcu-shadow-lg);
  background: var(--tcu-surface);
}
.home-services__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.home-services__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-svc {
  margin: 0;
  border-radius: var(--tcu-card-radius);
  background: var(--tcu-surface);
  box-shadow: var(--tcu-shadow);
  overflow: hidden;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.home-svc.is-open {
  background: var(--tcu-charcoal);
  box-shadow:
    0 7.77px 2.21px rgba(0, 0, 0, 0.06),
    0 3px 3px rgba(0, 0, 0, 0.1),
    0 -8px 0 #2e2e2e inset,
    0 4px 0 rgba(255, 255, 255, 0.3) inset;
}
.home-svc__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 28px 28px 26px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.home-svc__trigger:focus-visible {
  outline: 2px solid var(--tcu-blue);
  outline-offset: -4px;
  border-radius: inherit;
}
.home-svc__name {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #71717a;
  transition: color 0.25s ease;
}
.home-svc.is-open .home-svc__name {
  color: #fff;
}
.home-svc:not(.is-open) .tcu-mark {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.home-svc__num {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #a1a1aa;
  padding-top: 0.35em;
}
.home-svc.is-open .home-svc__num {
  color: rgba(255, 255, 255, 0.85);
}
.home-svc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-svc.is-open .home-svc__panel {
  grid-template-rows: 1fr;
}
.home-svc__panel-inner {
  overflow: hidden;
  min-height: 0;
}
.home-svc__body {
  padding: 0 28px 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.home-svc.is-open .home-svc__body {
  opacity: 1;
  transform: none;
}
.home-svc__desc {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 42ch;
}
.home-svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-svc__tags li,
.home-svc__tags a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #27272a;
  color: #d4d4d8;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #3f3f46;
  transition: background 0.2s ease, color 0.2s ease;
}
.home-svc__tags a:hover {
  background: #3f3f46;
  color: #fff;
}
.home-services__more {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 991px) {
  .home-services__grid {
    grid-template-columns: 1fr;
  }
  .home-services__title {
    max-width: none;
  }
  .home-services__visual {
    max-width: 420px;
  }
}

@media (max-width: 575px) {
  .home-svc__trigger {
    padding: 22px 20px 20px;
  }
  .home-svc__body {
    padding: 0 20px 22px;
  }
}

/* ========== Why TheClickUp (Aigocy-style) ========== */
.home-why {
  position: relative;
  min-height: 0;
  background: #f4f4f5;
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(80px, 10vw, 120px);
  /* Guard against GSAP leaving fade classes hidden */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.home-why .overflow-hidden {
  overflow: visible !important;
}
.home-why__header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.home-why__header .tcu-pill {
  color: var(--tcu-blue-2);
  font-weight: 700;
}
.home-why__title {
  margin: 20px auto 0;
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.home-why__title-line {
  display: block;
  color: #11131a;
  -webkit-text-fill-color: #11131a;
  background: none;
}
.home-why__title-line--fade {
  color: transparent;
  background: linear-gradient(180deg, #3f3f46 0%, #c4c4cc 55%, #ececef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.home-why__card {
  background: #fff;
  border-radius: 22px;
  padding: 32px 26px 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(17, 24, 39, 0.04);
  height: 100%;
  min-height: 168px;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-why__card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  }
}
.home-why__card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #11131a;
  line-height: 1.25;
}
.home-why__card p {
  margin: 0;
  color: #667085;
  font-size: 0.98rem;
  line-height: 1.6;
}
.home-why__foot {
  margin: 40px auto 0;
  text-align: center;
  color: #52525b;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 54rem;
  opacity: 1 !important;
  visibility: visible !important;
}
.home-why__foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-why__foot a:hover {
  color: var(--tcu-blue);
}

@media (max-width: 991px) {
  .home-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-why__title {
    max-width: 16ch;
  }
}
@media (max-width: 575px) {
  .home-why__grid {
    grid-template-columns: 1fr;
  }
  .home-why__title {
    max-width: none;
  }
  .home-why__card {
    min-height: 0;
    padding: 26px 22px 28px;
  }
}
