

  .flow{
    --ink: #0b1220;
    --muted: #6b7280;
    --bg: #f7f8fc;
    --surface: #ffffff;
    --border: #e6e8f2;
    --p1: #3b5bfd;
    --p2: #6c4cf1;

    background: var(--bg);
    padding: 80px 24px;
    
  }
  .flow *{ box-sizing: border-box; }

  .flow-inner{ max-width: 1160px; margin: 0 auto; }

  .flow-head{ text-align: center; max-width: 540px; margin: 0 auto 64px; }
  .flow-tag{
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--p1);
    background: linear-gradient(90deg, rgba(59,91,253,.1), rgba(108,76,241,.1));
    border: 1px solid rgba(59,91,253,.18);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
  }
  .flow-title{
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 10px;
  }
  .flow-desc{
    font-size: 15.5px;
    color: var(--muted);
    line-height: 1.9;
    margin: 0;
  }

  .flow-track{
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 8px;
  }

  .flow-rail{
    position: absolute;
    top: 30px;
    right: calc(10% + 30px);
    left: calc(10% + 30px);
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }
  .flow-rail-fill{
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--p2), var(--p1));
    transform-origin: right;
    animation: fill-rail 1.1s ease .3s both;
  }
  @keyframes fill-rail{
    from{ transform: scaleX(0); }
    to{ transform: scaleX(1); }
  }

  .flow-step{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
    opacity: 0;
    transform: translateY(14px);
    animation: step-in .55s ease forwards;
  }
  .flow-step:nth-child(2){ animation-delay: .05s; }
  .flow-step:nth-child(3){ animation-delay: .15s; }
  .flow-step:nth-child(4){ animation-delay: .25s; }
  .flow-step:nth-child(5){ animation-delay: .35s; }
  .flow-step:nth-child(6){ animation-delay: .45s; }

  @keyframes step-in{ to{ opacity: 1; transform: translateY(0); } }

  .flow-dot{
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--p1);
    z-index: 1;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease, color .25s ease;
  }
  .flow-dot svg{ width: 22px; height: 22px; }

  .flow-dot-index{
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p1), var(--p2));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px var(--bg);
  }

  .flow-step:hover .flow-dot{
    border-color: var(--p1);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -10px rgba(59,91,253,.45);
  }

  .flow-name{
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
  }

  .flow-text{
    font-size: 13px;
    color: var(--muted);
    line-height: 1.85;
    margin: 0;
    max-width: 190px;
  }

  @media (prefers-reduced-motion: reduce){
    .flow-step{ animation: none; opacity: 1; transform: none; }
    .flow-rail-fill{ animation: none; transform: none; }
    .flow-dot{ transition: none; }
  }

  /* Tablet */
  @media (max-width: 991px){
    .flow-track{ grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
    .flow-rail{ display: none; }
  }

  /* Mobile: vertical stepper */
  @media (max-width: 575px){
    .flow{ padding: 60px 18px; }
    .flow-track{ grid-template-columns: 1fr; row-gap: 0; }
    .flow-step{
      flex-direction: row;
      text-align: right;
      align-items: flex-start;
      padding: 0 0 32px;
      gap: 18px;
    }
    .flow-step:not(:last-child){ position: relative; }
    .flow-step:not(:last-child)::before{
      content: '';
      position: absolute;
      top: 60px;
      bottom: 0;
      right: 29px;
      width: 2px;
      background: var(--border);
    }
    .flow-dot{ margin-bottom: 0; flex-shrink: 0; }
    .flow-text{ max-width: none; }
  }
