/**
 * XEYROX — Why XEYROX Page Stylesheet
 * Matching Figma reference designs in design-references/why-xeyrox/
 */

/* ==========================================================================
   GLOBAL UTILITIES & TYPOGRAPHY FOR WHY XEYROX
   ========================================================================== */
.why-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #155EEF;
  margin-bottom: 14px;
}

.why-text-blue {
  color: #155EEF;
}

.why-section-container {
  position: relative;
  z-index: 1;
}

.why-section-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 56px auto;
}

.why-section-headline {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0B1B3D;
  margin: 0 0 16px 0;
}

.why-section-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #475467;
  margin: 0;
}

/* ==========================================================================
   SECTION 1 — HERO
   "The pieces work Better together."
   ========================================================================== */
.why-hero-section {
  position: relative;
  padding-top: 110px;
  padding-bottom: 140px;
  background: linear-gradient(180deg, #F5F9FF 0%, #FFFFFF 100%);
  overflow: hidden;
  text-align: center;
}

/* Match Why XEYROX 2-sentence complexity headline proportions to Figma */
.why-hero-section + .growth-complexity-section .growth-complexity-headline {
  font-size: clamp(32px, 3.05vw, 44px);
  line-height: 1.12;
}

.why-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
}

.why-hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0B1B3D;
  margin: 0 0 24px 0;
}

.why-hero-highlight {
  color: #155EEF;
}

.why-hero-body {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
  color: #475467;
  max-width: 720px;
  margin: 0 0 36px 0;
}

.why-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.why-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  background: linear-gradient(90deg, #155EEF 0%, #00C49F 100%) !important;
  color: #ffffff !important;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 6px 22px rgba(21, 94, 239, 0.32);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.why-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(21, 94, 239, 0.42);
  text-decoration: none !important;
}

.why-btn-primary .btn-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.why-btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.why-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  background: #ffffff !important;
  color: #0B1B3D !important;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #D0D5DD;
  text-decoration: none !important;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.why-btn-secondary:hover {
  border-color: #98A2B3;
  background-color: #F8FAFC !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.why-btn-secondary .btn-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.why-btn-secondary:hover .btn-arrow {
  transform: translateX(4px);
}

.why-hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 1;
}

.why-hero-wave-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   SECTION 2 — COMPLEXITY OVERRIDES
   ========================================================================== */
#why-complexity {
  background-color: #ffffff;
}

#why-complexity .growth-complexity-text-col .why-eyebrow {
  margin-bottom: 14px;
}

/* ==========================================================================
   SECTION 3 — THINKING (3 CARDS)
   "Built on a clearer way of thinking."
   ========================================================================== */
.why-thinking-section {
  padding: 110px 0;
  background-color: #F6F9FC;
}

.why-thinking-section .why-section-header,
.why-principles-section .why-section-header {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.why-thinking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-thinking-card {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.why-thinking-card:hover {
  transform: translateY(-4px);
  border-color: #D0D5DD;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.06);
}

.why-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EFF8FF;
  color: #155EEF;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

.why-thinking-card-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #0B1B3D;
  margin: 0 0 12px 0;
}

.why-thinking-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: #475467;
  margin: 0;
}

/* ==========================================================================
   SECTION 4 — OPERATIONS & DELIVERY (DARK SECTION)
   "Keep the moving parts in order."
   ========================================================================== */
.why-ops-section {
  position: relative;
  padding: 100px 0;
  background-color: #071326;
  color: #ffffff;
  overflow: hidden;
}

.why-ops-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.why-ops-glow {
  position: absolute;
  right: 15%;
  top: 35%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(39, 200, 245, 0.12) 0%, transparent 70%);
  filter: blur(80px);
}

.why-ops-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  position: relative;
  z-index: 2;
}

.why-ops-text-col {
  flex: 0 0 42%;
  max-width: 520px;
}

.why-ops-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #10B981;
  margin-bottom: 16px;
}

.why-ops-headline {
  font-family: var(--font-primary);
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 20px 0;
}

.why-ops-cyan {
  color: #27C8F5;
}

.why-ops-body {
  font-size: 18px;
  line-height: 1.65;
  color: #CBD5E1;
  margin: 0;
}

.why-ops-visual-col {
  flex: 1 1 58%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.why-ops-visual-wrap {
  width: 100%;
  max-width: 720px;
}

.why-ops-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   SECTION 5 — PRINCIPLES (5 CARDS)
   "Clarity creates room to move."
   ========================================================================== */
.why-principles-section {
  padding: 110px 0;
  background-color: #ffffff;
}

.why-principles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.why-principle-card {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.why-principle-card:hover {
  transform: translateY(-4px);
  border-color: #D0D5DD;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
}

.why-principle-card .why-badge-num {
  margin: 0 auto 20px auto;
}

.why-badge-green {
  background: #ECFDF3;
  color: #12B76A;
}

.why-principle-title {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0B1B3D;
  margin: 0 0 8px 0;
}

.why-principle-desc {
  font-size: 14px;
  line-height: 1.45;
  color: #475467;
  margin: 0;
}

/* ==========================================================================
   SECTION 6 — PRODUCTS GRID (8 CARDS)
   "Different needs. A shared purpose."
   ========================================================================== */
.why-products-section {
  padding: 110px 0;
  background-color: #F5F8FC;
}

.why-products-section#company-family {
  background-color: #ffffff;
}

.why-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .why-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .why-products-grid {
    grid-template-columns: 1fr;
  }
}

.why-product-card {
  background: #ffffff;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.why-product-card:hover {
  transform: translateY(-4px);
  border-color: #D0D5DD;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.06);
}

.why-prod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.why-prod-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-prod-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-prod-name,
.why-product-name {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: #0B1B3D;
  margin: 0;
}

.why-prod-by,
.why-tool-by {
  font-size: 12px;
  color: #667085;
  font-weight: 500;
}

.why-prod-desc,
.why-product-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #475467;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.why-product-footer {
  margin-top: auto;
  padding-top: 8px;
}

.why-prod-link,
.why-product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0B1B3D;
  text-decoration: none;
  transition: color 200ms ease;
}

.why-prod-link:hover,
.why-product-link:hover {
  color: #155EEF;
  text-decoration: none;
}

.why-prod-arrow,
.why-arrow {
  font-size: 14px;
  transition: transform 200ms ease;
}

.why-prod-link:hover .why-prod-arrow,
.why-product-link:hover .why-arrow {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   SECTION 7 — PEOPLE BEHIND SYSTEMS
   "Behind every system, there are people."
   ========================================================================== */
.why-people-section {
  padding: 120px 0;
  background-color: #ffffff;
}

.why-people-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.why-people-visual-col {
  flex: 1 1 54%;
}

.why-people-mosaic-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.06);
}

.why-people-mosaic-img {
  width: 100%;
  height: auto;
  display: block;
}

.why-people-text-col {
  flex: 0 0 46%;
  max-width: 560px;
}

.why-people-headline {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.25vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0B1B3D;
  margin: 0 0 20px 0;
}

.why-people-body {
  font-size: 18px;
  line-height: 1.65;
  color: #475467;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .why-hero-section {
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .why-thinking-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-ops-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .why-ops-text-col {
    max-width: 640px;
    margin: 0 auto;
  }

  .why-principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-people-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 48px;
  }
  .why-people-text-col {
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .why-thinking-grid {
    grid-template-columns: 1fr;
  }

  .why-principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .why-hero-section {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .why-hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .why-btn-primary,
  .why-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .why-thinking-section,
  .why-ops-section,
  .why-principles-section,
  .why-products-section,
  .why-people-section {
    padding: 72px 0;
  }

  .why-principles-grid {
    grid-template-columns: 1fr;
  }

  .why-products-grid {
    grid-template-columns: 1fr;
  }
}
