/* ===============================
   CASE STUDY HERO
================================= */

.case-study-wrapper {
  max-width: 1410px;
  margin: 0 auto;
  padding: 25px;
}

/* Theme */
.dark-section {
  background: #2e3538;
  color: #fff;
}

.light-section {
  background: #fff;
  color: #222;
}
.back-project {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.back-project:hover {
  color: #f26722;
  opacity: 1;
  transform: translateX(-4px);
}

.case-study-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(242, 103, 34, 0.12);
  color: #f26722;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  margin-bottom: 22px;
}

.case-study-title {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
}

.case-study-subtitle {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.4;
  color: #f26722;
  margin-bottom: 20px;
}

.case-study-description {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.8;
  color: #d8d8d8;
  max-width: 600px;
}

.case-study-hero img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .case-study-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }

  .case-study-btn .btn-text-wrapper {
    max-width: 230px;
    height: auto;
    text-align: center;
    line-height: 1.4;
  }

  .case-study-btn .btn-text {
    font-size: clamp(14px, 4vw, 16px);
    white-space: normal;
  }

  .case-study-btn i {
    font-size: 16px;
    flex-shrink: 0;
  }
}
/* CTA Buttons */

.case-study-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.case-study-btn-outline {
  padding: 15px 32px;
  border: 2px solid #f26722;
  border-radius: 50px;
  color: #f26722;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.case-study-btn-outline:hover {
  background: #f26722;
  color: #fff;
}
.hero-points-wrapper{
    display:flex;
    justify-content:center;
    margin-top:50px;
}

.hero-points{
    display:flex;
    gap:20px;
    justify-content:center;
    max-width:900px;
    width:100%;
    align-items:stretch;
}
.hero-point{
    flex: 0 1 230px;
    max-width: 230px;
    min-height:120px;

    display:flex;
    align-items:center;
    gap:14px;

    padding:18px;

    border-radius:16px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    transition:.35s ease;
}
.hero-point > div{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    flex: 1;
}
.hero-point:hover {
  transform: translateY(-5px);
  border-color: #f26722;
  background: rgba(242, 103, 34, 0.08);
}

.hero-point i {
  font-size: 28px;
  color: #f26722;
  flex-shrink:0;
     align-self:center;
}

.hero-point h5 {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 700;
}

.hero-point p {
  margin: 0;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.5;
  min-width: 42px;
}
@media (max-width: 991px){

    .hero-point{
        text-align:left;
    }

    .hero-point h5,
    .hero-point p{
        text-align:left;
    }

}
@media (max-width: 767px){

    .hero-points{
        flex-direction:column;
        max-width:100%;
        gap:16px;
    }
.hero-point{
    flex:none;
    max-width:100%;
}

    .hero-point{
        max-width:100%;
        width:100%;

        display:flex;
        align-items:center;

        text-align:left;

        padding:18px 20px;

        min-height:90px;
    }

    .hero-point i{
        font-size:26px;
        width:40px;
        text-align:center;
        flex-shrink:0;
    }

    .hero-point h5{
        margin-bottom:4px;
    }

}
/* Responsive */

@media (max-width: 991px) {
  .case-study-hero {
    text-align: center;
  }

  .case-study-description {
    margin: auto;
  }

  .back-project {
    display: inline-flex;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 20px;
    font-size: 14px;
  }

  .case-study-tag {
    display: inline-block;
  }
  .case-study-hero img {
    margin-top: 40px;
  }
}
.challenge-section {
  padding: 80px 60px;
  background: #f8f9fb;
}

.section-tag {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(242, 103, 34, 0.1);
  color: #f26722;
  border-radius: 40px;
  font-weight: 600;
  margin-bottom: 18px;
}
.section-heading-white h2,
.section-heading h2 {
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 700;
  margin-bottom: 50px;
}

.section-heading-white h2 {
  color: #fff;
}

.section-heading h2 {
  color: #2e3538;
}

.section-heading-white h2 span,
.section-heading h2 span {
  color: #f26722;
}
@media (max-width: 991px) {
  .section-heading-white h2,
  .section-heading h2 {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .section-heading-white h2,
  .section-heading h2 {
    margin-bottom: 25px;
  }
}

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

.challenge-card {
  background: #fff;

  border-radius: 20px;

  padding: 35px;

  border: 1px solid #ececec;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);

  transition: all 0.35s ease;
}

.challenge-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
  border-color: #f26722;
}

.challenge-icon {
  width: 70px;

  height: 70px;

  background: #f26722;

  color: #fff;

  border-radius: 18px;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 28px;

  margin-bottom: 24px;
}

.challenge-card h4 {
  font-size: 22px;

  font-weight: 600;

  margin-bottom: 12px;
}

.challenge-card p {
  color: #666;

  line-height: 1.7;

  margin: 0;
}

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

@media (max-width: 767px) {
  .challenge-grid {
    grid-template-columns: 1fr;
  }
}
.solution-section {
  padding: 80px 60px;
  background: #2e3538;
}

.workflow {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 10px;

  flex-wrap: wrap;

  margin-top: 70px;
}

.workflow-item {
  flex: 1 1 125px;

  text-align: center;
}

.workflow-icon {
  width: 75px;

  height: 75px;

  margin: auto;

  border-radius: 50%;

  background: #f26722;

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 28px;

  margin-bottom: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.workflow-item:hover .workflow-icon {
  transform: scale(1.15);
}

.workflow-item h4 {
  font-size: 22px;

  margin-bottom: 10px;

  font-weight: 600;
  color: #eee;
}

.workflow-item p {
  color: #d8d8d8;

  line-height: 1.6;
  font-weight: 500;
}

.workflow-arrow {
  display: flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 20px;

  color: #f26722;

  font-size: 24px;

  margin-top: 28px;
}
.mobile-arrow {
  display: none;
}

.desktop-arrow {
  display: block;
}
@media (min-width: 992px) and (max-width: 1200px) {
  .workflow {
    justify-content: center;
    gap: 50px 35px; /* row gap | column gap */
  }

  .workflow-item {
    flex: 0 0 calc(33.333% - 35px);
    max-width: 260px;
  }

  .workflow-arrow {
    display: none;
  }

  .workflow-item h4 {
    font-size: 20px;
  }

  .workflow-item p {
    font-size: 15px;
  }
}
@media (max-width: 991px) {
  .workflow {
    flex-direction: column;

    align-items: center;
  }

  .workflow-arrow {
    margin: 8px 0;
  }
  .desktop-arrow {
    display: none;
  }

  .mobile-arrow {
    display: block;
  }
}
@media (max-width: 767px) {
  .workflow-icon {
    width: 70px;
    height: 70px;
    font-size: 26px;
    margin-bottom: 18px;
  }
}

.transformation-section {
  padding: 80px 60px;
  background: #fff;
}

.transformation-table {
  display: grid;

  grid-template-columns: 1fr 80px 1fr;

  gap: 20px;

  align-items: center;

  margin-top: 60px;
}
.transform-item {
  display: flex;
  align-items: center;
}
.table-header {
  font-size: 24px;

  font-weight: 700;

  text-align: center;

  margin-bottom: 20px;
}

.before {
  color: #d9534f;
}

.after {
  color: #198754;
}

.compare-box {
  display: flex;

  align-items: center;

  gap: 18px;

  padding: 22px 24px;

  border-radius: 16px;

  font-size: 18px;

  font-weight: 500;
}

.before-box {
  background: #fff4f4;

  border-left: 5px solid #d9534f;
}

.after-box {
  background: #f2fff5;

  border-left: 5px solid #198754;
}

.compare-box i {
  font-size: 24px;
}

.compare-arrow {
  text-align: center;

  font-size: 24px;

  color: #f26722;
}
@media (max-width: 767px) {
  .transformation-section {
    padding: 60px 20px;
  }

  .transformation-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
  }

  /* Hide desktop headers */
  .table-header,
  .transformation-table > div:empty {
    display: none;
  }

  .compare-box {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    justify-content: flex-start;
    padding: 20px;
    font-size: 16px;
  }

  .compare-box i {
    font-size: 22px;
    min-width: 24px;
    text-align: center;
  }

  .compare-arrow {
    margin: 18px 0;
    font-size: 28px;
  }

  .compare-arrow i {
    transform: rotate(90deg); /* Right → Down */
  }

  /* Show BEFORE above every red card */
  .before-box::before {
    content: "BEFORE";
    display: block;
    width: 100%;
    text-align: center;
    color: #d9534f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    position: absolute;
    top: -42px;
    left: 0;
  }

  /* Show AFTER above every green card */
  .after-box::before {
    content: "AFTER";
    display: block;
    width: 100%;
    text-align: center;
    color: #198754;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    position: absolute;
    top: -42px;
    left: 0;
  }

  .before-box,
  .after-box {
    position: relative;
    margin-top: 45px;
  }

  .after-box {
    margin-bottom: 45px;
  }
}
.impact-section {
  padding: 80px 60px;
  background: #2e3538;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.impact-item {
  text-align: center;
  padding: 35px 25px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
  border: 1px solid #ececec;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
}

.impact-item:hover {
  transform: translateY(-10px);
  border-color: #f26722;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

.impact-icon {
  width: 80px;
  height: 80px;
  margin: auto;
  border-radius: 50%;
  background: #f26722;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 25px;
  box-shadow: 0 12px 24px rgba(242, 103, 34, 0.25);

  transition: 0.35s ease;
}
.impact-item:hover .impact-icon {
  transform: scale(1.08) rotate(-8deg);
}

.impact-item h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  margin-bottom: 15px;
}

.impact-item p {
  color: #666;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .impact-section {
    padding: 70px 25px;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 45px;
  }

  .impact-item {
    padding: 30px 20px;
  }

  .impact-icon {
    width: 70px;
    height: 70px;
    font-size: 26px;
    margin-bottom: 20px;
  }

  .impact-item p {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 576px) {
  .impact-section {
    padding: 60px 20px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .impact-item {
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
  }

  .impact-icon {
    width: 65px;
    height: 65px;
    font-size: 24px;
  }
}
.users-section {
  padding: 80px 60px;
  background: #f8f9fb;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.user-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: 0.35s ease;
}

.user-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

.user-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: #f26722;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.user-card h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  margin-bottom: 10px;
}

.user-card h5 {
  font-size: clamp(16px, 1.8vw, 18px);
  color: #f26722;
  margin-bottom: 25px;
  font-weight: 600;
}

.user-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-card ul li {
  font-size: clamp(15px, 1.5vw, 17px);
  padding: 8px 0;
  color: #555;
  position: relative;
}

.user-card ul li::before {
  content: "✓";
  color: #f26722;
  font-weight: 700;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .users-section {
    padding: 70px 25px;
  }

  .users-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Center the last card */
  .user-card:last-child {
    grid-column: 1 / -1;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .users-section {
    padding: 60px 20px;
  }

  .users-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .user-card {
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
    padding: 35px 25px;
  }
}

.technology-section {
  padding: 80px 60px;
  background: #2e3538;
}

.technology-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 50px;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 22px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.3s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.tech-badge:hover {
  border-color: #f26722;
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.tech-badge i {
  color: #f26722;
  font-size: 20px;
}

@media (max-width: 767px) {
  .technology-stack {
    gap: 12px;
    margin-top: 40px;
  }

  .tech-badge {
    padding: 12px 18px;
    font-size: 15px;
    gap: 8px;
    min-height: 50px;
  }

  .tech-badge i {
    font-size: 17px;
  }
}
.section-description {
  max-width: 700px;
  margin: 20px auto 0;
  color: #d8d8d8;
  line-height: 1.8;
}
.section-description-light {
  color: #5f6b72;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.3;
  margin-bottom: 25px;
}

.cta-content p {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #d9d9d9;
  font-size: 18px;
  line-height: 1.8;
}
.trading-workflow-section {
  padding: 80px 60px;
  background: #f8f9fb;
}

.trading-pipeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 70px;
}

.pipeline-line {
  position: absolute;
  top: 40px;
  left: 8%;
  right: 8%;
  height: 4px;
  background: #eb6e25;
  z-index: 1;
  transform-origin: left;
  animation: lineGrow 0.8s ease forwards;
}
@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.pipeline-line::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f26722;
  top: 50%;
  transform: translateY(-50%);
  animation: flowMove 4s linear infinite;
}

@keyframes flowMove {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 12px);
  }
}
.pipeline-step {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.pipeline-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eb6e25;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 6px solid #f5f5f5; /* same as section background */
}
.pipeline-icon {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.pipeline-step:hover .pipeline-icon {
  transform: scale(1.08);
  background: #ff7a32;
  box-shadow: 0 12px 30px rgba(242, 103, 34, 0.35);
}
.pipeline-step h5 {
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 700;
}
.pipeline-step:hover ~ .pipeline-line::after {
  animation-play-state: paused;
}
@media (max-width: 767px) {
  .trading-workflow-section {
    padding: 60px 20px;
  }

  .trading-pipeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
    margin-top: 50px;
  }

  /* Vertical line */
  .pipeline-line {
    width: 4px;
    height: calc(100% - 76px);
    top: 40px;
    left: 38px;
    right: auto;
  }

  .pipeline-step {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 18px;
  }

  .pipeline-icon {
    width: 76px;
    height: 76px;
    margin: 0;
    flex-shrink: 0;
    font-size: 28px;
  }

  .pipeline-step h5 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
  }

  .pipeline-line::after {
    left: 50%;
    transform: translateX(-50%);
    animation: flowVertical 4s linear infinite;
  }

  @keyframes flowVertical {
    from {
      top: 0;
    }
    to {
      top: calc(100% - 12px);
    }
  }
  .section-description {
    font-size: 15px;
  }
}

.engineering-section {
  padding: 80px 60px;
  background: #2e3538;
}
.engineering-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.engineering-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px 28px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}
.engineering-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #f26722;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.35s ease;
}
.engineering-card:hover {
  transform: translateY(-10px);
  border-color: #f26722;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}
.engineering-card:hover::before {
  transform: scaleX(1);
}

.engineering-icon {
  width: 75px;
  height: 75px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #f26722;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.engineering-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.engineering-card p {
  color: #666;
  line-height: 1.7;
  margin: 0;
  font-size: 17px;
}

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

@media (max-width: 767px) {
  .engineering-grid {
    grid-template-columns: 1fr;
  }
  .engineering-card p {
    font-size: 14px;
  }
}
.impact-section-light {
  padding: 80px 60px;
  background: #f8f9fb;
}

.connectivity-section {
  background: #fff;
  padding: 80px 60px;
}

.connectivity-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.connectivity-item {
  background: #fcfcfc;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);

  transition: all 0.35s ease;
}

.connectivity-item:hover {
  transform: translateY(-8px);
  background: #fff;
  border-color: #f26722;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.connectivity-item i {
  font-size: 34px;
  color: #f26722;
  margin-bottom: 18px;
}

.connectivity-item span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #2e3538;
}

@media (max-width: 991px) {
  .connectivity-section {
    padding: 70px 30px;
  }

  .connectivity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .connectivity-item span {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .connectivity-section {
    padding: 60px 20px;
  }

  .connectivity-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 40px;
  }
}

.architecture-flow-section {
  padding: 80px 60px;
  background: #f8f9fb;
}

.architecture-flow {
  max-width: 900px;
  margin: 70px auto 0;
}

.flow-layer {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 140px;
  background: #fff;

  padding: 28px 35px;

  border-radius: 22px;

  border: 1px solid #ececec;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);

  transition: 0.35s ease;
}

.flow-layer:hover {
  transform: translateX(12px);

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.layer-icon {
  width: 80px;
  height: 80px;

  border-radius: 20px;

  background: #f26722;

  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;

  flex-shrink: 0;

  transition: 0.35s;
}

.flow-layer:hover .layer-icon {
  transform: rotate(-8deg) scale(1.08);
}

.layer-content {
  flex: 1;
}

.layer-content h4 {
  font-size: 20px;

  margin-bottom: 8px;

  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
  color: #2e3538;
}

.layer-content p {
  margin: 0;

  color: #5f6b72;

  font-size: 16px;

  line-height: 1.7;
}

.flow-connector {
  text-align: center;

  font-size: 30px;

  color: #f26722;

  margin: 18px 0;
}
@media (max-width: 767px) {
  .architecture-flow-section {
    padding: 60px 20px;
  }

  .flow-layer {
    gap: 18px;

    padding: 22px;
  }

  .layer-icon {
    width: 65px;
    height: 65px;
    font-size: 28px;
  }

  .layer-content h4 {
    font-size: 16px !important;
  }

  .layer-content p {
    font-size: 15px;
  }

  .flow-connector {
    font-size: 24px;
  }

  .flow-layer {
    min-height: 200px;
  }
}

.architecture-section {
  padding: 80px 60px;
  background: #f8f9fb;
}
.architecture-header {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  gap: 25px;
  max-width: 1100px;
  margin: 60px auto 35px;
}

.header-challenge,
.header-solution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 16px;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-challenge {
  background: #fff3f3;
  color: #dc3545;
  border: 2px solid rgba(220, 53, 69, 0.15);
}

.header-solution {
  background: #f2fcf5;
  color: #28a745;
  border: 2px solid rgba(40, 167, 69, 0.15);
}

.header-challenge i,
.header-solution i {
  font-size: 22px;
}

.header-arrow {
  text-align: center;
  font-size: 34px;
  color: #f26722;
}
@media (max-width: 991px) {
  .architecture-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 40px auto 25px;
  }

  .header-arrow {
    transform: rotate(90deg);
  }
}

.architecture-table {
  max-width: 1100px;
  margin: 70px auto 0;
}

.architecture-row {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.architecture-challenge,
.architecture-solution {
  display: flex;
  align-items: center;
  gap: 20px;

  min-height: 170px;
  padding: 26px;

  border-radius: 20px;

  background: #fff;

  transition: 0.35s ease;

  border: 1px solid #ececec;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.architecture-challenge {
  border-left: 5px solid #dc3545;
}

.architecture-solution {
  border-left: 5px solid #28a745;
}

.architecture-challenge:hover,
.architecture-solution:hover {
  transform: translateY(-6px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.architecture-icon {
  width: 70px;
  height: 70px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;

  font-size: 28px;

  flex-shrink: 0;
}

.jp-challenge-icon {
  background: #dc3545;
}

.solution-icon {
  background: #28a745;
}

.architecture-arrow {
  text-align: center;

  font-size: 34px;

  color: #f26722;
}

.architecture-row h4 {
  font-size: clamp(18px, 1.5vw, 22px);

  font-weight: 700;
  min-height: 52px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #2e3538;
}

.architecture-row p {
  margin: 0;

  color: #5f6b72;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 991px) {
  .architecture-section {
    padding: 70px 30px;
  }

  .architecture-row {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .architecture-arrow {
    transform: rotate(90deg);

    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .architecture-section {
    padding: 60px 20px;
  }

  .architecture-challenge,
  .architecture-solution {
    padding: 22px;
    gap: 16px;
  }

  .architecture-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  .architecture-challenge,
  .architecture-solution {
    min-height: 190px;
  }
}

.bizlaw-challenges-section {
  background: #f8f9fb;
  padding: 80px 60px;
}

.bizlaw-challenge-grid {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.bizlaw-challenge-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  transition: 0.35s ease;
}

.bizlaw-challenge-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.bi-challenge-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 18px;
  background: #f26722;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: 0.35s;
}

.bizlaw-challenge-card:hover .challenge-icon {
  transform: rotate(-8deg) scale(1.08);
}

.challenge-content h4 {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #2e3538;
}

.challenge-content p {
  margin: 0;
  color: #5f6b72;
  line-height: 1.7;
  font-size: clamp(14px, 1.3vw, 18px);
}

@media (max-width: 991px) {
  .bizlaw-challenge-grid {
    grid-template-columns: 1fr;
  }

  .bizlaw-challenge-card {
    padding: 28px;
  }
}

@media (max-width: 576px) {
  .bizlaw-challenge-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

.crm-recommendation-section {
  padding: 90px 60px;
  background: #2e3538;
}

.crm-options {
  margin-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.crm-options::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(242, 103, 34, 0.4),
    transparent
  );
}
.crm-option-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  max-width: 480px;
  background: #fff;
  border-radius: 24px;
  padding: 36px 42px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: 0.45s ease;
}

.crm-option-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.crm-option-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: #f26722;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  transition: 0.35s;
}
.crm-option-card:hover .crm-option-icon {
  transform: scale(1.12) rotate(8deg);
}
.crm-option-card h3 {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 700;
  margin-bottom: 24px;
  color: #2e3538;
}

.crm-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.crm-feature-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 17px;
  margin-bottom: 18px;
  color: #5f6b72;
}

.crm-feature-list i {
  color: #f26722;
  font-size: 18px;
  transition: 0.3s;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.crm-feature-list li:hover i {
  color: #f26722;
  transform: scale(1.25) rotate(-10deg);
}
.crm-vs {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f26722;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(242, 103, 34, 0.35);
  animation: pulseVs 3s ease-in-out infinite;
}

@keyframes pulseVs {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(242, 103, 34, 0);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(242, 103, 34, 0.35);
  }
}
@media (max-width: 991px) {
  .crm-options {
    flex-direction: column;
    gap: 30px;
  }

  .crm-vs {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }

  .crm-option-card {
    width: 100%;
    max-width: 500px;
  }
}
@media (max-width: 360px) {
  .crm-options::before {
    top: 52%; /* try 53%–56% until it looks centered */
  }
}
@media (max-width: 576px) {
  .crm-recommendation-section {
    padding: 60px 20px;
  }

  .crm-option-card {
    padding: 30px;
  }

  .crm-feature-list li {
    font-size: 16px;
  }
}

.decision-matrix-section {
  padding: 90px 60px;
  background: #f8f9fb;
}

.decision-matrix {
  max-width: 1050px;
  margin: 70px auto 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.decision-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 30px;
  background: #fff;
  border-radius: 22px;
  padding: 28px 32px;
  border: 1px solid #ececec;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  transition: 0.35s ease;
}

.decision-row:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.12);
}

.decision-priority,
.decision-result {
  display: flex;
  align-items: center;
  gap: 20px;
}

.decision-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #f26722;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  transition: 0.35s;
}

.decision-row:hover .decision-icon {
  transform: scale(1.08) rotate(5deg);
}

.recommendation {
  background: #2e3538;
}

.decision-label {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
  font-weight: 600;
}

.decision-priority h4,
.decision-result h4 {
  margin: 0;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: #2e3538;
}

.decision-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  color: #f26722;
}

@media (max-width: 991px) {
  .decision-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }

  .decision-priority,
  .decision-result {
    justify-content: center;
    flex-direction: column;
  }

  .decision-arrow {
    transform: rotate(90deg);
  }
}

.crm-ecosystem-section {
  padding: 80px 60px;
  background: #2e3538;
}

.crm-flow {
  max-width: 1100px;
  margin: 70px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.crm-top {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.crm-node {
  position: relative;
  z-index: 5;
  text-align: center;
  flex: 1;
}
.crm-icon {
  width: 95px;
  height: 95px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f26722;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 38px;
  border: 6px solid #f8f9fb;
  transition: 0.35s;
  box-shadow: 0 10px 30px rgba(242, 103, 34, 0.18);
}

.crm-node:hover .crm-icon {
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 20px 45px rgba(242, 103, 34, 0.3);
}

.crm-node h5 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.center-node .crm-icon {
  width: 140px;
  height: 140px;
  font-size: 48px;
  background: #2e3538;
  box-shadow:
    0 0 0 12px rgba(242, 103, 34, 0.08),
    0 20px 45px rgba(242, 103, 34, 0.25);
}

.center-node h5 {
  font-size: 28px;
  margin-top: 10px;
}
.left-node .crm-icon {
  background: #25d366;
}

.right-node .crm-icon {
  background: #3b82f6;
}

.flow-arrow {
  margin: 28px 0;
  color: #f26722;
  font-size: 34px;
  animation: bounceArrow 1.8s infinite;
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.chatbot-node {
  max-width: 260px;
  margin-bottom: 10px;
}

.chatbot-node .crm-icon {
  background: #6d28d9;
}
.feature-line {
  width: 4px;
  height: 45px;
  background: #f26722;
  margin: 15px auto;
  position: relative;
}

.feature-line::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #f26722;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: flowDown 2.5s linear infinite;
}

@keyframes flowDown {
  from {
    top: -6px;
  }

  to {
    top: 100%;
  }
}
.crm-features {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 15px;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-card {
  position: relative;
  flex: 1;
  width: 220px;
  min-height: 130px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  color: #2e3538;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.35s;
}
.feature-card h5 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #2e3538;
}

.feature-card p {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.5;
}

.feature-card:first-child::before {
  display: none;
}

.features-wrapper::before {
  animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
  0% {
    box-shadow: 0 -40px 0 #f26722;
  }
  100% {
    box-shadow: 0 40px 0 transparent;
  }
}

.feature-card i {
  display: block;
  color: #f26722;
  font-size: 30px;
  margin-bottom: 15px;
}
.feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}
.features-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-top: 40px;
}

.feature-svg {
  width: 100%;
  height: 60px;
  display: block;
  margin-top: -32px;
}

.crm-svg {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 1;
}

/* -------------------- */
/* Responsive */
/* -------------------- */
/* ==========================================
   Tablet (768px - 991px)
========================================== */
@media (min-width: 768px) and (max-width: 991px) {
  /* Keep desktop layout */
  .crm-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }

  .crm-svg,
  .feature-svg {
    display: block;
  }

  .feature-line {
    display: block;
    width: 4px;
    height: 35px;
    margin: 10px auto;
  }

  .crm-node {
    flex: 1;
    width: auto;
  }

  .crm-icon {
    width: 80px;
    height: 80px;
    font-size: 30px;
  }

  .center-node .crm-icon {
    width: 100px;
    height: 100px;
    font-size: 38px;
  }

  .crm-node h5 {
    font-size: 20px;
  }

  .center-node h5 {
    font-size: 24px;
  }

  .crm-features {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
  }

  .feature-card {
    flex: 1;
    min-width: 0;
    max-width: none;
    min-height: 120px;
    padding: 18px 14px;
    font-size: 16px;
  }

  .feature-card i {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .feature-svg {
    height: 55px;
  }

  .crm-svg {
    height: 150px;
  }
}
/* ==========================================
   Mobile (<768px)
========================================== */
@media (max-width: 767px) {
  .crm-ecosystem-section {
    padding: 60px 20px;
  }

  .crm-svg,
  .feature-svg {
    display: none;
  }

  .crm-top {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  .crm-node {
    width: 100%;
  }

  .crm-icon {
    width: 80px;
    height: 80px;
    font-size: 30px;
  }

  .center-node .crm-icon {
    width: 90px;
    height: 90px;
    font-size: 34px;
  }

  .crm-node h5 {
    font-size: 18px;
  }

  .feature-line {
    display: block;
    width: 4px;
    height: 40px;
    margin: 0 auto 20px;
  }

  .crm-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .feature-card {
    width: 100%;
    max-width: 420px;
    min-height: 120px;
    font-size: 16px;
    padding: 18px;
  }
  .feature-card h5 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 14px;
  }
}
/* ===========================
   Desktop Default
=========================== */

.desktop-line {
  display: block;
}

.mobile-line {
  display: none;
}

/* ===========================
   Tablet (768-991)
=========================== */

@media (max-width: 991px) {
  .desktop-line {
    display: block;
  }

  .mobile-line {
    display: none;
  }
}

/* ===========================
   Mobile
=========================== */

@media (max-width: 767px) {
  .desktop-line {
    display: block;
  }

  .mobile-line {
    display: block;
  }
  .desktop-line {
    margin: 15px auto 30px;
  }
}
